The 555 astable from November 19 blinks an LED at a fixed frequency. Feed a voltage into pin 5, the control pin, and the same chip becomes a voltage-controlled oscillator (VCO): the frequency follows the voltage. That trick is the heart of FM transmitters, tone generators, phase-locked loops and electronic music — one control voltage sweeps the pitch. This article turns the 555 astable into a VCO and works out the numbers.
Figure 1: A 555 VCO (a) — the control voltage on pin 5 sets both switching thresholds, so the frequency follows Vctl. Higher control voltage means lower frequency (b). (Schematic, not to scale.)
How it works — the formula
Inside the 555, three 5 kΩ resistors divide the supply into the two switching thresholds: the upper threshold is normally 2/3 Vcc and the lower one 1/3 Vcc. Pin 5 connects straight to the top of that divider, so an external Vctl overrides the upper threshold and sets it to Vctl, and the lower threshold follows at Vctl/2. The capacitor still charges through R1 + R2 and discharges through R2, but now between Vctl/2 and Vctl instead of between 1/3 Vcc and 2/3 Vcc:
t(high) = (R1 + R2) × C × ln[(Vcc − Vctl/2) / (Vcc − Vctl)]
t(low) = R2 × C × ln 2
Only the charge time changes — the discharge time is fixed, because the capacitor always discharges from Vctl down to Vctl/2, a ratio of 2, so t(low) is always R2 × C × 0.693. With R1 = 1 kΩ, R2 = 10 kΩ and C = 10 nF, t(low) = 10,000 × 10 × 10−9 × 0.693 = 69.3 µs at every control voltage. The frequency is 1 / (t(high) + t(low)).
Worked example — 3 V, 6 V and 9 V of control
With Vcc = 12 V, the three control voltages give:
Vctl = 3 V: t(high) = 11 kΩ × 10 nF × ln(10.5 / 9) = 110 µs × 0.154 = 17.0 µs; T = 17.0 + 69.3 = 86.3 µs; f = 11.59 kHz; duty cycle 17.0 / 86.3 = 19.7%.
Vctl = 6 V: t(high) = 110 µs × ln(9 / 6) = 110 µs × 0.405 = 44.6 µs; T = 113.9 µs; f = 8.78 kHz; duty cycle 39.2%.
Vctl = 9 V: t(high) = 110 µs × ln(7.5 / 3) = 110 µs × 0.916 = 100.8 µs; T = 170.1 µs; f = 5.88 kHz; duty cycle 59.3%.
Doubling the control voltage from 3 V to 6 V drops the frequency by 2.81 kHz, and raising it to 9 V drops it by another 2.90 kHz — the tuning slope is roughly −0.95 kHz per volt across this range, nearly linear. As a check, at Vctl = 8 V — exactly 2/3 of the 12 V supply — the circuit is just the plain astable, and the familiar formula gives f = 1.44 / ((R1 + 2R2) × C) = 1.44 / (21 kΩ × 10 nF) = 6.86 kHz, which matches the threshold formulas (t(high) = 76.2 µs, T = 145.5 µs).
The catch — the duty cycle moves too
Notice that t(low) never changes while t(high) grows with Vctl, so the duty cycle sweeps from 19.7% to 59.3% along with the frequency. That is fine for a tone generator, but if you need a clean 50% square wave at every frequency, feed the VCO output into a divide-by-two flip-flop — the flip-flop toggles once per cycle, so its output is always exactly 50% at half the frequency. Two more practical limits: keep Vctl between about 1 V and Vcc − 1 V — below 1 V the lower threshold gets too close to 0 V and the timing becomes unreliable — and drive pin 5 from a low-impedance source, such as an op-amp or a potentiometer buffered by a voltage follower, because any noise on pin 5 becomes frequency noise (jitter) on the output.
Designing a 1 kHz VCO centred on 6 V
Suppose you need a VCO that runs at 1 kHz when Vctl = 6 V. Keep R1 = 1 kΩ and choose C = 100 nF. At Vctl = 6 V the period must be 1 ms, and t(low) = R2 × 100 nF × 0.693 while t(high) = (1 kΩ + R2) × 100 nF × 0.405. Solving, R2 = 8.7 kΩ: t(low) = 8.7 kΩ × 100 nF × 0.693 = 603 µs, t(high) = 9.7 kΩ × 100 nF × 0.405 = 393 µs, T = 996 µs, f = 1.00 kHz. The same circuit then gives 1.33 kHz at Vctl = 3 V and 0.67 kHz at Vctl = 9 V — a 2:1 tuning range from a 3 V to 9 V control swing, which is a useful audio-frequency VCO from five parts.
Key points to remember
- Pin 5 overrides the 555's upper threshold: the capacitor swings between Vctl/2 and Vctl, so t(high) = (R1+R2)C × ln[(Vcc − Vctl/2)/(Vcc − Vctl)] while t(low) = R2C × ln 2 stays fixed.
- Worked example: R1 = 1 kΩ, R2 = 10 kΩ, C = 10 nF, Vcc = 12 V → 11.59 kHz at 3 V, 8.78 kHz at 6 V, 5.88 kHz at 9 V — about −0.95 kHz per volt.
- At Vctl = 2/3 Vcc the circuit is the plain astable: f = 1.44/((R1+2R2)C) = 6.86 kHz here, matching the threshold formulas.
- The duty cycle sweeps with the frequency (19.7% to 59.3% here) — divide by two with a flip-flop for a constant 50% square wave; keep Vctl between ~1 V and Vcc − 1 V and drive pin 5 from a low-impedance source.
- Design rule: for 1 kHz at Vctl = 6 V, use C = 100 nF, R1 = 1 kΩ, R2 = 8.7 kΩ — it tunes 1.33 kHz to 0.67 kHz over a 3 V to 9 V control swing.
