im using the servomotor for a bipedal robot, could you please help about some simple program, for example just making the servo go to center, or go clockwise.
which lng. you are using for programming?
http://www.rentron.com/servo.htm http://www.toddlertime.com/robotics/servo.htm http://www.electronickits.com/kit/complete/motor/ck1403.pdf http://www.epanorama.net/documents/motor/rcservos.html http://www.digitalnemesis.com/info/projects/picservo/ http://www.rentron.com/PICX5.htm http://www.parallax.com/dl/docs/article/IntSum02.pdf i don't know how to program PIC with pic basic pro,
programmed using mikroc for dsPIC.
shaft movement of servo motor is from 0-180 deg.
servo motor driving can be explained in following steps:
>Config. any pin of mcu as o/p.
>Use timer to generate delay of 20ms.
>when you require shaft @ 0 deg ---------->pin is low
>when you require shaft @ 180 deg ----------> pin is high for 2 ms followed by 20ms low period [pulse of 2/20=0.1ms duty cycle]
>pulse in the range of 1/20= 5% to 10% duty cycle will made servo to move from 0 deg to 180 deg respectively.[range of 1ms to 2ms]
___________
| |
_______| |_____________________________
/< 1 to 2ms> /
<---------------------------------------------------->|
total 20 ms