555 Servo Circuit
Revision as of 11:49, 30 May 2006
This paper describes how to build a circuit for driving an RC Servo motor. It uses two LM555 IC’s to create the pulse train that drives the motor. For an RC Servo, the width of the “high” pulse determines the angle of the rotor. Sample values for creating a working circuit are given.
Two 555 timers are used to create the servo control signal. The pinout for the LM555 is shown below:
The first 555 timer creates a clock signal at our desired frequency. The circuit for this is shown below:
This circuit is referred to as an “Astable Multivibrator” in the LM555 datasheet. The sizes of Ra, Rb, and C1 determine the shape of the clock signal. We want the clock signal to look something like this:
The values of T1 and T are given by
We want T to be around 20ms and T1 to be smaller than the minimum pulse width we will send to the RC Servo (T1≤0.3ms). Here’s some sample values:
Ra=330kΩ, Rb=1.5 kΩ, C1=0.1 μF → T1 = 0.1 ms, T=23 ms
The second 555 Timer circuit is a “pulse width modulator”, shown below:
The combination of Rc and C2 determines the time that the output is high. Good values are
Rc = 15 kΩ C2 = 0.1 μF
which give a time constant of τ = 1.5 ms.
Using the values given in this document, you will get the following relationship:
|Analog In (V)||Control Voltage (V)||Pulse Width (ms)||Servo Position|