How to DIY a CR servo?
rwgast_logicdesign
Posts: 1,464
So I was playing with my BS2 and somehow the electronics in my servo. I checked in to the the data sheets for a BAL6686 and BAL6688 which are what is used in the parallax servos, they arent very usefull.
I put the servo back together and, cut the stops and greased it up really good. It makes a nice gear motor! It looks like it would be easy to stick a mechanical encoder where the pot use to be, and fit a few 2n2222 in there to make an h-bridge. I was wondering if anyone could explain the electronics involved in servo pulsing, I mean just running a regular PWM line to it seems like the easy thing to do but Id like it to work like a servo again, exactly how does the servo controller know what pulses turn a motor forward or back, how does 750 stop the servo etc.
I put the servo back together and, cut the stops and greased it up really good. It makes a nice gear motor! It looks like it would be easy to stick a mechanical encoder where the pot use to be, and fit a few 2n2222 in there to make an h-bridge. I was wondering if anyone could explain the electronics involved in servo pulsing, I mean just running a regular PWM line to it seems like the easy thing to do but Id like it to work like a servo again, exactly how does the servo controller know what pulses turn a motor forward or back, how does 750 stop the servo etc.
Comments
Google's your friend.
So where's the pot now? There are a zillion instructions online on how to convert a servo to CR, many retain the original pot, some methods use a pair of resistors (not the good ones though) and some use a different pot than the original to allow finer control of the center position.
I put the thing back togather and threw a rotary encoder in it to make a nice little gear motor, what I want to know is the easiest way to make a controller that will convert RC pulses to into RC style motor control, I figured id uses a transistor based h bridge, but I have know Idea how to make a 1.5ms pulse equate to stop, or a 2ms second pulse go forward .5md go back like a servo. This could all be done using a micro but if a servo can do it using a few analog parts id think it wouldnt be that hard. Basically I want to make my own servo controller with a mechanical quadrature encoder. Id like to have a singal signal wire to pulse it like the original servo, I dont mind having the other two wires for the encoder
What im really trying to figure out is how RC pulses are converted in to usable motion and position. Unfourtantely tearing the guts out of one wasn't as helpful as I thought it could be!! The two chips used in the servo have very limited data sheets, It shows there pin outs and gives about a sentence description of there function.. I also have an RC speed control I was hoping would help me solve the problem but the chip numbers are worn off, and it doesnt seem to pulse just like a servo 1.5ms stops it but I have to pulse between 2 and 4mS to set the speed and if I start at full speed I cant drop down any lower its very strange!
http://www.princeton.edu/~mae412/TEXT/NTRAK2002/292-302.pdf
CR servos cannot be positioned with a PWM signal hence the name; Continuous Rotation.
D
EDIT:
@MIKE that PDF is extremely helpful and ive never been able to find something like that... This basically explains what I want to know, although it may be a little over my head
Ive tried the how does a servo work search many times with only vague information about how to control the servo not the kind of info posted in the quote below.
http://www.seattlerobotics.org/encoder/200304/Futaba%20S148%20Servo%20mod%20for%20PWM.htm
Note that the circuit at the bottom of page is not correct.
As far as the rest of the info on the page even though its the exact opposite of what im trying to do its still very useful!
The PWM control signal acts as a reference voltage. The control signal (Vref) is compared to the voltage across the feedback POT. If Vref is larger than the POT feedback voltage the motor will turn one direction. If Vref is less than the feedback voltage the motor will turn in the other direction.
When the voltages are equal, POT voltage equals Vref, nothing happens.
The control signal is required for the servo to hold position as the circuit is always active.
Sometimes servos twitch while holding position. That's because the internal circuit is always trying to reach equilibrium. If the PWM control signal, servos electronics, POT, or gearing are not good quality (or old) the servo might twitch as it tries to correct itself.