ServoPAL pulse timing
The ServoPAL doc specifies the time between servo pulses is fixed at 10-15ms while operating. The continuous rotation servos from Parallax require an optimum delay between pulses of 20 ms, although they will function somewhat outside this range. However, I'm finding that the servo speed control - especially at very low speeds around PULSOUT 750 - is irratic and undependable. For instance, I can't get a Boe-Bot to travel a straight line no matter how I fine tune the pulse widths. I suspect it's because of the tighter than optimum separation of pulses. Is this true, and is it correctable?
Comments
I was a little surprised to read your comment and looked at the ServoPal documentation, and you're right that it says the pulses repeat every 10-15ms. While there really isn't an "optimal" refresh rate (more like in- and out- of spec), faster refreshes consumes more current, because in analog servos the motor is driven more often. This is how digital servos work, and one reason they have higher torque. They may be directed by standard servo pulses, but internally the motors are driven at a much higher pulse rate.
The better servos -- and the Futaba-made CR servo that Parallax sells is in this group -- are made to tolerate a very wide range of input variables. But some brands may not be so cooperative. Given refresh rates of up to 100 Hz they start to get the heebie-jeebies.
Finally, consider that the slower speeds the torque of the motor is very, very low. At low torque the motors give way to the friction effects of the wheels over whatever ground they're traveling over. Even the direction of the nap of the carpet can have a difference. The slower the bot, the more you need encoders to keep things in a straight line.
-- Gordon
I was surprised at the 10-15ms too. The servos I'm using for the Bot have been calibrated from 750ms up and down in 5ms increments, so I have a really accurate graph of their performance. The Bot runs predictably straight on my hardwood floors, so I'll probably do what you suggested and program a variable refresh time (without the ServoPal) and see what effect it has on their predicted RPM. Thanks for the idea...
Was that term covered in the RBB4 glossary... ?
I don't recall seeing Robie R carrying that, er..., girl in any of his movies. Which one was that? :-)
This scene wasn't in that other movie, either:
http://en.wikipedia.org/wiki/File:Day_the_Earth_Stood_Still_1951.jpg
-- Gordon
"The Day the Earth Stood Still"!!! Excellent movie. I bought the Blu-ray of the 2008 version (Kind of okay) and it included a dvd of the original movie. Sweet!
@
Of course, now I just buy the testers from Ebay for $3...
http://www.robotoid.com/appnotes/circuits-servo-control-with-555-timer.html
This one has a nominal 50 Hz refresh (I recall it changes from about 45 to 55 Hz as you rotate the pot), and a range about .8 to 2.2 ms, depending on the tolerance of the components. It uses the old diode trick. That said, depending on construction, there's a lot of jitter, so it's good only for general experimenting. More filtering would help, too.
I've tried some &^@%#&^ brand servos at about 90-95 Hz and they just feebly wiggled into position, rather than moved there in a smooth sweep. Really fast and the servo heats up considerably, and draws a lot of current. Unless the servo has some circuit in it to reject excess pulses, I really doubt many would survive a refresh rate of 250 to 500 Hz.
-- Gordon
99 cents: http://www.ebay.com/itm/20K-Ohm-B20K-Taper-Potentiometer-Pot-17mm-Shaft-/140607732877
4 for $1, and a nice cozy trip to the Valley:
http://www.allelectronics.com/make-a-store/item/TPS-20K/20K-SINGLE-TURN-TRIMPOT/1.html
<---- This single 555 based servo tester has a frame rate close to 50 Hz. It's been a while since I designed it so I don't remember the specifics but I have been very pleased with the results - no jitter at all.
Here's a dual 10K slider pot for a buck. http://www.goldmine-elec-products.com/prodinfo.asp?number=g18660&utm_source=Goldmine&utm_campaign=06c741845d-Jan18-2012&utm_medium=email
Lots of uses, including connecting both in series to make a 20K pot.
This one is a $1.20 on Digikey, for the next time you go mail ordering within the US:
http://search.digikey.com/us/en/products/EVU-F3MFL3B24/P3E5203-ND/243614
I saw some cheaper ones -- 85 cents or so -- but they don't have a bushing. I like my pots to have bushings.
There. Happy now?
-- Gordon