555 timer circuit for servos

This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
Post Reply
MoC
Posts: 1
Joined: Wed Mar 17, 2010 10:23 am
Contact:

555 timer circuit for servos

Post by MoC »

Hi everyone,

This is my first post here so hello to everybody.

I am working on a university project which conists of building a robot that can climb stairs without using wheels or caterpillar tracks. I've come up with a design but I am stuck at the electronics part.

Effectively I am looking to build (what i thought would be) a very simple control circuit for the servo motors. Here's the circuit diagram I am using.

Image

I've currently got C1 as 0.47uF, R2 as 56K and R1 is a 1K resistor with a 47K pot in series. The diode is a 1N4148. This gives me a great circuit with a constant "low" time of (ln(2)*56000*(470E-9) =18ms) and "high" time that can vary by adjusting the pot at R1. Vs is 5V.

I connected up an old (spare) futaba servo to this circuit and got the servo to move as I moved the potentiometer; just as I had wanted. Great! Or so I thought....

When I then tried to connect the higher torque digital servo (a Towardpro MG996R) that I will use in the robot it won't work. The servo kinda jitters around and barely responds to signal changes. I have access to an oscilloscope and can observe the waveform as I connect the servo. At first I have a clear distinct digital pulse (width ~1.5ms with rest time ~18.5ms). When I connect the control wire of the MG996R (with the oscilloscope probe at the junction of pin 3 (out of 555) and control wire from servo) the signal goes crazy! It appears that the overall high voltage level drops but the signal no longer contains any sort of regular pulse. Instead the signal looks messy with random (lower) high voltage pulses all over the place. The servo begins to shake and jitter randomly.

I am running the servo of a completely different power supply to the circuit.

I have read, on another forum, that apparently this is a known problem. See this quote.
The problem with 555-based controllers is jitter with some high-end servos, namely the digital servos. I have not had that problem with a 16F628 PIC controller.

link to thread:
http://forum.allaboutcircuits.com/showt ... post104945

I have went back to test the circuit with the older futaba servo again and it still works great. I just can't get it to work with the MG996R.

One theory I've had was that possibly the control wire from the servo was attempting to draw (too much) current from the output (pin 3) of the 555. The 555 is apparently rated as being able to supply a max of 200ma from its output though the more current you draw from its output the lower the voltage of the "high" pulse. I therefore attempted to run the control circuit at 15V while maintaining 5V across the servo from a different power supply. This may have made things slightly better (hard to tell really) but things are still jittery and not good enough.

Any ideas on how I could control this servo (the Towardpro MG996R) using this 555 timer circuit? I'm begining to get very nervous. I have to present this robot to the rest of my year next wednesday and at the moment I have nothing to show. User jpanhalt suggested using PICs instead but I don't think I have enough time for this. More importantly, I had a budget for this project which I blew on buying 12 MG996R servos, 20 555 chips, resistor, pots, capacitors, boards etc. Once I get this one circuit working I will need to make 11 more as the final design will consist of 12 interlocked modules each with a seperate servo and controller circuit. I don't think I have enough money/time to start from scratch using PICs.

One more thing: I had a spare 8 channel serial port servo driver board lying around. Both the old futaba servo and the new MG996R run very smoothly when controlling them from this board (via a computer program). I checked the output of this board (using the oscilloscope) and it's virtually identical to the output of my timmer circuit. Yet somehow my timmer circuit won't run the MG996R. Odd ey?

Any suggestions on things I could try to make it work? Or perhaps a link to a location where I can find out more about the control wire and how much current a servo is likely to draw via the control wire? Or perhaps you know how important it really is to have a constant 50Hz refresh rate on the pulses. In the current circuit (using only one 555) the overall frequency of the signal varies slightly as the pulse width is varied. The older futaba servo doesn't seem to mind though. I've really hit a brick wall here. I don't understand what's happening

Thank you very much for reading and thank you even more for posting a reply,

MoC
desy2820
Posts: 24
Joined: Sat Aug 25, 2007 7:54 pm
Contact:

Re: 555 timer circuit for servos

Post by desy2820 »

Just a couple of ideas. First, you may need to look at your power supply. I'm thinking the new servo is just a little more than your supply can handle. Can you measure your power voltage with no load, then with the new servo moving? If you see a large drop, you need a higher-current supply. (Or your batteries are dead/weak and need to be replaced or charged.)

My other idea is power-supply noise induced by the new servo. Try a couple of 10uF capacitors from VSS to 0 volts. Also, do you have a small capacitor right at the 555 timer, pin 8 to pin 1, about 0.01 to 0.1uF? This is common practice for digital logic, and may help.

Hope this helps!
sghioto
Posts: 326
Joined: Wed Dec 26, 2007 5:16 pm
Location: Colorado
Contact:

Re: 555 timer circuit for servos

Post by sghioto »

MoC,

The control lead on the servo generally draws only a few milliamps, so the 555 should handle that with ease. I would use a regulated 5 volt supply for the 555 circuit and a .1uf cap on pin #5 as well as a 10uf or larger on pin#8 to ground as desy2820 suggested. However I think your main problem may be the refresh rate.
Maybe try this same thread in the Robotics Forum.

Steve G.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests