Ok i am having troubles working with this servo on my robot. It is the same as the start here robot. i type in the code
Servo 0,150
ans it barely moves then i type in
Servo 0,225
and it barely moves then i type in the whole code and it keeps turning and turning and it won't stop.
The servo is a parallax continous rotation one. I played around with the screw on the bottom and it has slowed it down and turned directions but nothing really.
Actually i read over the the start here robot and its saids need a standard servo so i am going to get a standard servo but if anyone knows how to control it please tell me.
So what micro are you using? What battery? Or batteries? How is everything hooked up?
If this is a PICAxe, I think some have said that 150 is a sort of center position, where not much movement should be expected if the servo is “centered” with the pot adjustment. “Servo 0, 150” can be used to initialize pin 0 to output pulses continuously, and should be close to a stop, or at least adjust the pot so it is stopped at this pulse width. But after that I think there is one more thing that must be done, using the statement “Servopos 0, 225” to drive the servo one direction, then “Servopos 0, 75” to turn the wheel the other direction.
init: servo 4,75 ‘ initialise servo main: servopos 4,75 ‘ move servo to one end pause 2000 ‘ wait 2 seconds servopos 4,225 ‘ move servo to other end pause 2000 ‘ wait 2 seconds goto main ‘ loop back to start
Regular or continuous An unmodified servo can be used to point the sensor different directions, but a continuous servo can be used to drive the wheels that moves the robot around. BOth would be driven with similar commands.