555 ASTABLE

Photo of author

By Jackson Taylor

As an Amazon Associate we earn from qualifying purchases.

The 555 timer is one of the most widely used chips in hobby electronics, and its astable mode is the reason why. In astable mode the chip has no stable state. The output switches between high and low by itself, which gives you a continuous square or rectangular wave without a microcontroller or any code.

This article explains how a 555 astable circuit works, how to calculate its frequency and duty cycle, and what you should see at each important pin. The example below is a circuit running at about 10 kHz, with oscilloscope captures at pins 3, 2/6, 7 and 5.

How the 555 astable circuit works

An astable 555 circuit needs only two resistors (R1 and R2) and one timing capacitor (C), plus a supply and a small bypass capacitor. The capacitor charges and discharges between two thresholds set inside the chip: one-third and two-thirds of the supply voltage.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video
  1. The capacitor charges through R1 and R2. The output at pin 3 is high during this time.
  2. When the capacitor voltage reaches two-thirds of the supply, the threshold comparator (pin 6) flips the internal latch. The output goes low, and the internal discharge transistor at pin 7 turns on.
  3. The capacitor now discharges through R2 only, into pin 7.
  4. When the voltage falls to one-third of the supply, the trigger comparator (pin 2) flips the latch back. The output goes high and the cycle repeats.

Pins 2 and 6 are normally tied together so that the capacitor voltage is watched by both comparators. That is why the original captures label them as “pin 2 or 6”.

Basic connections

  • Pin 1: ground.
  • Pin 2 and pin 6: tied together and connected to the timing capacitor.
  • Pin 3: the output.
  • Pin 4: reset, connected to the supply if you do not need to stop the oscillator.
  • Pin 5: control voltage, usually decoupled to ground with a small capacitor (10 nF is a common choice).
  • Pin 7: discharge, connected to the junction of R1 and R2.
  • Pin 8: positive supply.
  • R1 runs from the supply to pin 7, and R2 runs from pin 7 to the capacitor node on pins 2 and 6.
See also
Essential Tools & Equipment for Electronic Repair

Frequency and duty cycle formulas

These are the standard equations for the astable 555:

  • High time: 0.693 × (R1 + R2) × C
  • Low time: 0.693 × R2 × C
  • Frequency: 1.44 / ((R1 + 2 × R2) × C)
  • Duty cycle: (R1 + R2) / (R1 + 2 × R2)

Because the capacitor charges through both resistors but discharges through only one, the output is high for longer than it is low. The duty cycle in this basic circuit is therefore always above 50%. Making R1 much smaller than R2 brings it close to 50%.

A worked example for about 10 kHz

As an illustration, take C = 10 nF. For 10 kHz, R1 + 2 × R2 needs to be about 14.4 kΩ. Choosing R1 = 1 kΩ and R2 = 6.8 kΩ gives a total of 14.6 kΩ, which is roughly 9.9 kHz. The duty cycle works out to about 53%. Real components have tolerances, so expect the measured frequency to differ a little from the calculation.

These values are only an example of how to use the formulas. Use the component values shown on your own schematic when you build the circuit.

10 kHz example circuit and waveforms

The first image below shows the circuit used in this example, set up for an output frequency of about 10 kHz. The captures that follow show what appears at each pin.

555 timer astable circuit diagram set up for 10 kHz output

Output at pin 3

Pin 3 gives the rectangular output wave, switching between roughly the supply level and ground. This is the signal you would use to drive an LED, a small speaker through a suitable stage, or a logic input.

Oscilloscope capture of the 555 astable square wave at pin 3
OUTPUT AT PIN 3

Output at pin 2 or 6

Pins 2 and 6 show the voltage across the timing capacitor. Instead of a square wave you see a curved, triangle-like waveform that rises and falls between one-third and two-thirds of the supply. It rises more slowly than it falls, which matches the duty cycle above 50%.

Oscilloscope capture of the capacitor voltage at pins 2 and 6 of the 555
OUTPUT AT PIN 2 OR 6

Output at pin 7

Pin 7 is the discharge pin. It is pulled low when the internal discharge transistor turns on, and it follows the charging phase otherwise. It is mainly useful for checking that the timing network behaves as expected.

See also
MSP430-TIMER
Oscilloscope capture of the discharge waveform at pin 7 of the 555 timer
OUTPUT PIN 7

Output at pin 5

Pin 5 is the control voltage input, which sits at about two-thirds of the supply. With a bypass capacitor fitted, the signal here should be mostly steady, with at most some small ripple from the switching. If you drive this pin with an external voltage instead, you shift the thresholds and change the frequency, which is how frequency modulation with a 555 works.

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works
Oscilloscope capture of the control voltage at pin 5 of the 555 timer
OUTPUT PIN 5

Practical tips

  • Place a 100 nF capacitor across the supply pins, close to the chip, to avoid noise and false triggering.
  • Use a stable capacitor type, such as film or C0G ceramic, if frequency accuracy matters. Some ceramic types change value with temperature and voltage.
  • Keep R1 above a few hundred ohms so the discharge pin is not overloaded.
  • For a duty cycle at or below 50%, add a diode across R2 so the capacitor charges only through R1 and discharges through R2.
  • Check the datasheet of your specific part. The bipolar NE555 and the CMOS versions have different supply ranges, current draw and maximum frequencies.

Where the astable 555 is used

Typical uses include blinking LEDs, simple tone generators, clock signals for counters, and pulse sources for testing other circuits. The same oscillator can also drive power circuits, such as a 555 based boost converter, where the output pulses switch a transistor. Because the chip is cheap and tolerant, it is a good first oscillator to build and measure.

FAQ

What does astable mean in a 555 timer?

Astable means the circuit has no stable output state. It keeps switching between high and low on its own, producing a continuous pulse train until power is removed.

Why is the duty cycle above 50%?

The capacitor charges through R1 and R2 but discharges only through R2, so the high time is always longer than the low time. Using a diode across R2 or making R1 very small changes this.

See also
555 BASED BOOST CONVERTER

How do I change the frequency of a 555 astable?

Change R1, R2 or the timing capacitor. Larger values give a lower frequency, and smaller values give a higher one. A potentiometer in place of R2 gives an adjustable frequency.

Do pins 2 and 6 have to be connected together?

In the standard astable circuit, yes. Joining them lets the capacitor voltage trigger both the lower and upper thresholds, so the circuit retriggers itself.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works