How servo motor work


#1

I am making a project on servo motor so please help me out how to join it with Arduino and how to do coding


#2

Hi shashank,

to connect servo with arduino you need just connect voltage and ground and on cable data
data cable must to be a PWM pin, because servo need 20 micro second to change the angle
example: if you give for servo 1.5 micro sec high voltage then 18.5 micro low voltage the servo will go to 0 degree and if you give 2 micro high and 18 low will go to 180 degree .

put in arduino you can use a servo library and connect with PWM pin and just in code put your angle and the srevo moved.

i wish that can help you.