Continuous Rotation Servos
Mikerocontroller
Posts: 310
··· I'm driving two continuous rotation servos (GWS S35/STD) using the PULSOUT command.·· It seems that if
I add a 20ms. PAUSE within my loops I only get a slower rotation.· I get the highest rotation speed when I do away with the delay altogether.· I've tried different PULSOUT values above and below 750(1500us.) and I get my highest speeds at 1000 and 2000us.·Both servos idle at·1500us. ·Everything I've read so far seems to say pulse the servo every 20 ms. at a pulse-width of 1000 to 2000us.· I'm powering the servos with a seperate six volt supply (battery) ·and using a Basic Stamp2 Homework Board with the nine volt battery.· I tied both power supply grounds together.· This example code will rotate the servos about twice as fast without the PAUSE 20 added.
··'servo three-wire connections: brown/ground· red/+6v.· orange/signal
· 'servo at pin 15· 1ms. pulse / servo at pin 14 2ms. pulse··/ no pause
···· DO······················
···· PULSOUT 15,500
···· PULSOUT 14,1000
···· LOOP
· Why is this?
I was considering using motors instead of servos because they seem·so slow (30 r.p.m. with fresh
batteries).
··
············· THANKS M.J.D
·
I add a 20ms. PAUSE within my loops I only get a slower rotation.· I get the highest rotation speed when I do away with the delay altogether.· I've tried different PULSOUT values above and below 750(1500us.) and I get my highest speeds at 1000 and 2000us.·Both servos idle at·1500us. ·Everything I've read so far seems to say pulse the servo every 20 ms. at a pulse-width of 1000 to 2000us.· I'm powering the servos with a seperate six volt supply (battery) ·and using a Basic Stamp2 Homework Board with the nine volt battery.· I tied both power supply grounds together.· This example code will rotate the servos about twice as fast without the PAUSE 20 added.
··'servo three-wire connections: brown/ground· red/+6v.· orange/signal
· 'servo at pin 15· 1ms. pulse / servo at pin 14 2ms. pulse··/ no pause
···· DO······················
···· PULSOUT 15,500
···· PULSOUT 14,1000
···· LOOP
· Why is this?
I was considering using motors instead of servos because they seem·so slow (30 r.p.m. with fresh
batteries).
··
············· THANKS M.J.D
·
Comments
2) Most servos won't work well without the PAUSE. They really do better (and are specified) for control pulses roughly 50 times a second. Perhaps the GWS servo uses a slightly different control circuit than most servos and a side effect of that is the behavior you've seen. In any event, the standard is a control pulse with a width from 1ms to 2ms centered at 1.5ms and repeated 50 times a second.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Parallax.· I forgot to mention that I drove the servos from the 9v. unregulated terminals of
the Homework Board before I wired in a seperate 6v. supply.· That was probably a bad idea.· I'm using the servos on a TankBot (Budget Robotics) and it really c-r-a-w-l-s· with· the 1" drive sprockets at 30 rpm (unloaded without treads).··If the new servos turn at 50-60 rpm i'll be happy enough.· I'm using a fixed PING sensor only·but the tank navigates impressively well.·· I'll post the completed project soon.· Thank-you again.