High Torque Servo Control?????
Navic
Posts: 38
I have a HS-5645MG high torque servo that I need for a project. I found some general documentation online about the pulses needed to control this servo, but everything I try with the BS2 doesn't work.... Well it turns, but at a pace that is barely visible.
Sites say that this servo takes 0.9mS to 2.1mS, with 1.5mS center, 4.8-6V range. I verified 5 volts and used this code:
What am I doing wrong? How can I get the BS2 to drive this servo as easily as the Parallax standard servo? Thanks in advance!
Sites say that this servo takes 0.9mS to 2.1mS, with 1.5mS center, 4.8-6V range. I verified 5 volts and used this code:
counter VAR Byte FOR counter = 0 TO 7 PULSOUT 10, 450 PAUSE 20 NEXT END
What am I doing wrong? How can I get the BS2 to drive this servo as easily as the Parallax standard servo? Thanks in advance!
Comments
Some metal gear servos cannot be converted to continuous rotation because the output gear does not have teeth all the way around. Something to check before upgrading the BoeBot servos.
Navic, you did make a comparison to the Parallax standard servo but just to verify, the 'standard' servo is one that moves to a commanded position and then stays there. It can only move through approx 180 degrees of arc. The servos used for the wheels of a BoeBot are 'continuous rotation' servos.
In the code above I wold not expect to see any movement of the servo if the servo is already in the position that you are telling it to go to.
What happens when you run this code? (may not be exactly right - haven't programmed a Basic Stamp in a while)
Rich H
edited to correct FOR NEXT loop iterations
Post Edited (W9GFO) : 5/24/2009 4:49:33 PM GMT
Here is an example of one that would NOT work for continuous rotation. Hitec HS-81
Rich H
Post Edited (W9GFO) : 5/23/2009 4:23:20 PM GMT
Uh-oh. It is only going through each FOR.. NEXT loop 8 times which will take only 160 mS. Not enough time for even the fastest servo to reach it's destination. Increase that to 50 so that it allows 1 full second to swing each way.
To keep it still just send the same pulse over and over again, 50 times a second. This is where something like the ServoPAL comes in handy. You send it a single pulse and it continues to send that same pulse every 20 mS.
Next step, if there are still problems, is to verify that you are not experiencing brownout - and put up a picture and/or schematic of your setup.
Rich H
Post Edited (W9GFO) : 5/24/2009 4:52:33 PM GMT
edit: ok ok, you convinced me, dug them out and they are both happy to work with my bs2px (from pulse duration 920 to 2750 if anyone cares) not quiet 180' but better than nothing.
You mentioned they can be modded to be continuous, ill see what i can find about that cause these would be a great addition to my bots [noparse]:)[/noparse] Cheers guys
Post Edited (surgent) : 6/24/2009 2:47:05 PM GMT