Control a servo motor with your Arduino and a potentiometer.

The housing of a servomotor contains an electric motor, an electronic control unit to determine the position, and a gear system for high performance. The servo axis can be rotated to 180°.

The servo motor has a cable with three wires. The red wire in the middle must be connected to the +5 V, the brown (or black) to GND and the orange (or yellow) to a digital pin on the Arduino. It is important to connect the servo correctly, otherwise it will be damaged.

Login to post a comment...

JohanArshad 5 years, 11 months ago

Greetings Nushin Yazdani. Im currently doing my mini project on Sound Localization using microphones array. This project briefly will work when the mic detect the highest sound amplitude and they will move to that sound by using servo motor. I have done my circuit and arduino coding. But the servo does not move as the coding. I think maybe there is something wrong on my circuit or my coding. Appreciated if you could help me on this. Please reply directly to my email here [email protected] Have a nice day. Regards, Johan