555 Timer Tutorial and Circuits

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12
At a glance
Powered by AI
Some key takeaways from the document are that the 555 timer can be used as an oscillator to blink lights or create sounds. It can also be used to control motors or other devices. The 555 timer can operate in astable, monostable, and bistable modes to produce different output patterns.

The 555 timer can operate in three different modes - astable, monostable, and bistable mode. Astable mode produces a toggling output, monostable mode produces a single pulse, and bistable mode acts as a flip-flop circuit.

The 555 timer has 8 pins - Pin 1 is ground, Pin 2 is trigger, Pin 3 is output, Pin 4 is reset, Pin 5 is control voltage, Pin 6 is threshold, Pin 7 is discharge, and Pin 8 is VCC. These pins allow it to be used in timing and pulse generation circuits.

555 Timer Tutorial and Circuits

In this 555 Timer tutorial, you’ll learn how to use the 555 timer to do fun things.

One of the first things many do with it is to create a blinking light. But that’s just
one simple example of the many things you can do with this chip. You can also

 control motors,

 create an alarm,

 create a musical instrument, and much more.

Let’s start with an overview of the pins.

555 Timer Pinout


Pin 1 Ground
This pin connects to the negative side of the battery.

Pin 2 Trigger
When this pin goes low (less than one-third of VCC), the output goes high.

Pin 3 Output
The output voltage from the chip is around 1.5 V lower than VCC when high and
around 0 V when low. A 555 timer can give out only 100 to 200 mA in total. Check
your chip’s datasheet for the exact value.

Pin 4 Reset
This pin resets the whole circuit. It’s an “inverted” pin, which means it resets when
the pin goes low. This means the pin must be high normally so that the chip isn’t in a
“reset” state.

Pin 5 Control Voltage


This pin is used to control the threshold voltage of the Threshold pin. This can be
useful when you want to adjust the frequency of the circuit without changing the
values of R1, R2, and C1. Sometimes you’ll see this pin connected with a capacitor
(0.01 µF/10 nF) to ground; this is a way to keep any noise on it from influencing the
frequency. Sometimes you’ll see it disconnected.

Note: I’ve heard from people not able to get their circuit working without this
capacitor. So you can try adding a capacitor between this pin and ground if your
circuit is not working.

Pin 6 Threshold
This pin sets the output back to low when the voltage goes high (above two-thirds of
VCC).

Pin 7 Discharge
This pin is unconnected when output is high, and it’s connected to ground when
output is low.

Pin 8 VCC Supply


This is the positive power supply pin and can take a voltage between 5 and 15 V.
Astable Mode

When the 555 Timer is in astable mode it means that the output will never be stable.
The output will keep switching between HIGH and LOW forever. That means it
works as an oscillator.

You can use this to blink a light, create sound, control motors, and much more!

555 Timer Astable Circuit Example


Our first example is how to blink an LED with the 555 Timer. This is like the “hello
world” equivalent of this IC.
Component List
This circuit is simple enough to build on a breadboard. To build it, you need the
following components:

 9V Battery
 555 Timer IC
 R1-R3: Resistor, 1 kΩ
 LED1: Red 5mm LED or similar
 C1: Capacitor, 1000 µF
 C2: Capacitor, 10 nF (it usually works without this)

You don’t need exact values for the resistors and capacitors. But if you use the values
listed above, your LED should blink about once every other second. Use the 555
Timer calculator to find the blinking frequency for other values.
Monostable Mode

Monostable means the output is stable in one state, and it will always come back to
this state. You can push it out of that state, but it will always return back to its stable
state after a certain time.

The output from the 555 Timer in monostable mode is normally LOW. When you
trigger the circuit, the output goes HIGH for a certain amount of time before it goes
back to LOW again.

This is sometimes called a one-shot circuit.

The time it stays HIGH is decided by the size of a resistor and a capacitor. The higher
the values, the longer it stays HIGH.

If you connect a buzzer to the output, you can create an alarm circuit that is triggered
for example by a window being opened.
555 Timer Monostable Example Circuit
The following circuit turns on an LED when you push the button. After about 10
seconds, the LED turns off.

Component List
 9V Battery
 555 Timer IC
 R1: Resistor, 100 kΩ
 R2: Resistor, 5kΩ to 1 MΩ (this is a pull-up resistor)
 R3: Resistor, 1 kΩ
 LED1: Red 5mm LED or similar
 C1: Capacitor, 100 µF
 C2: Capacitor, 10 nF
 S1: Pushbutton, normally open

For longer delays, increase C1 and/or R1. If you want an adjustable delay, replace R1
with a potentiometer. Use the 555 Timer calculator to find the values you need.

The output is connected to control an LED, but could easily be modified to control a
motor, a lamp, a coffee maker, or anything else. Just replace R3 and the LED with
a transistor. See how in the section Driving Higher Loads below.
Bistable (Flip-Flop) Mode
Bistable means the output is stable in both states (HIGH and LOW). It will stay in one
state until you push it over to the other state. Then it stays in the other state. You push
it from one state to the other with the Trigger and Threshold pins.

This mode isn’t a timer function at all, and it’s not a common way to use the 555
Timer. In this mode, the 555 Timer works as a flip-flop.

You can for example use it to reverse the direction of a robot when it bumps into a
wall. Or separate the ON and OFF switch for a machine.

555 Timer Bistable Example Circuit


The following example shows the 555 Timer in bistable mode. Here you have
separate ON and OFF buttons to control an LED.

Component List
 9V Battery
 555 Timer IC
 S1, S2: Pushbutton, normally open
 R1, R2: Resistor, 5kΩ to 1 MΩ (these are pullup resistors)
 Resistor (R3): 1 kΩ
 LED: Red 5mm LED or similar
 Capacitor (C1): 10 nF
The output is connected to control an LED, but could easily be modified to control a
motor, a lamp, or anything else by connecting a transistor. See section Driving Higher
Loads below for examples.

555 Timer Output Current


The output of the 555 Timer can sink and source current of up to 200 mA.

Sourcing is when the output is HIGH and you’ve connected something from the
output down to ground:

In the above circuit, the LED turns on when the output is HIGH.
Sinking is when the output is LOW and you’ve connected something from VCC to the
output:

In the above circuit, the LED turns on when the output is LOW.

If you use both sourcing and sinking in your circuit, you can make a cool emergency
vehicle light effect by connecting two LEDs; a blue one that is sourcing current and a
red one that is sinking current.
Or how about connecting two buzzers with different frequencies to create a siren?

Circuit Example: Police Car Emergency Lights

Component List
 9V Battery
 555 Timer IC
 R1-R2: Resistor, 1 kΩ
 R3: Resistor, 470 Ω
 R4: Resistor, 330 Ω
 LED1: Red LED
 LED2: Blue LED
 C1: Capacitor, 1000 µF
 C2: Capacitor, 10 nF (it usually works without this)

R1, R2, and C1 controls the blinking speed. R3 and R4 sets the brightness of the
LEDs.

Driving Higher Loads


If you want to control motors, LED strips, or other things that need more than 200 mA
of current, you can connect a transistor to the output.

If you want to use an NPN transistor, you’ll need to connect a resistor between the
output and the base to limit the base current. 1 kΩ will probably work fine as a
starting point.
Driving higher loads from a 555 Timer with an NPN transistor

If you want to use a MOSFET on the output, make sure you use a MOSFET with a
VGS that is lower than the output voltage from your 555 timer.

The resistor is there to protect the output pin from high spikes of current when the
MOSFET is being turned on. But given that the 555 Timer supports 200 mA, it will
most likely work without it in most cases.
Driving higher loads from a 555 Timer with an MOSFET transistor

You might also like