PSC with digital servos?
Seairth
Posts: 2,474
in Accessories
A search of the forums hasn't turned up an answer, so... are there any known issues using digital servos with the Propeller Servo Controller? The behavior I'm seeing is that the position jumps erratically instead of staying at the commanded position. This is more than jitter. My guess is that the servo is seeing erratic or noisy pulses on the input, but I don't have a scope or logic analyzer available at the moment. I'm assuming the PWM is at 50Hz, which both brands of digital servos I tested indicated should be fine. I can't be the first person to have used digital servos with the PSC, so what am I missing?
(pre-answered questions: yes, I have the latest firmware installed. yes, it works fine with analog servos.)
(pre-answered questions: yes, I have the latest firmware installed. yes, it works fine with analog servos.)
Comments
http://forums.parallax.com/discussion/122926/i-need-help-with-the-propeller-servo-controller
http://forums.parallax.com/discussion/118121/digital-servo-s-on-usb-servocontroller
(Did you just happen to have those bookmarked? Or did you do a search also?)
also, I just did a quick test with some 2.2K resistors I had laying around. worked like a champ! thanks again!
One reason a digital servo would have trouble where an analog servo works fine is in the way the digital servo applies full power to the motor even when the servo is close to the target position. Since digital servos often require a higher current than their analog counter parts, your problem could be caused by not having an adequate power supply.
How many servos are you using? Have you tried just one servo?
Besides trying the resistor trick, you could also try adding a big capacitor to the servos' power lines. The cap smooths out the voltage dips caused by initial servo movements. I've also seen a video showing how looping the servo lead through a ferrite bead can clean up servo jitter.
IMO, the best way to reduce jitter, is to use a power supply capable of providing a lot of instantaneous current. A good battery pack generally makes a better power supply than a wall wart. I've had trouble powering servos from my bench top power supply but the same servos worked fine when powered from a good battery pack.
There are times when servo jitter is caused by the potentiometer wearing out. This happens regularly with my hexapods. The worn pot causes the servo to start to oscillate a small amount and this oscillation causes increased wear on the pot. Once a pot is worn enough to oscillate, a feedback loop starts which quickly destroys the pot. Once a pot is worn out, you either need to replace the pot, if you can find an appropriate replacement, or you need to replace the whole servo. I've found servos are consumable items on robots like a hexapod.
What are you using as a power supply? Which digital servos are you using?
The default servo library for the Prop won't do it, but there are a few others around that will.
Yeah, I had thought about trying a higher PWM frequency. However, the servos are destined for a FIRST robotics platform, which means they are being controlled by a RoboRIO at 50Hz. In this case, my use of the PSC was just for proof-of-concept.
That's very useful info, Jason. I see many circuits for 555-based "servo testers" that generate a steady 50% PWM signal at 1-2 ms servo pulsewidths, so that would range from 500-250 Hz. A far cry from 50 Hz.
What's up with those circuits? Are they being suggested by the guys selling replacement servos?