main copy copy.jpg
This tutorial provides sample circuits to set up a 555 timer in monostable, astable, and bistable modes as well as an in depth discussion of how the 555 timer works and how to choose components to use with it.  The 555 timer is a chip that can be used to create pulses of various durations, to output a continuous pulse waveform of adjustable pulse width and frequency, and to toggle between high and low states in response to inputs.  By wiring the 555 timer with resistors and capacitors in various ways, you can get it to operate in three different modes:

Monostable Mode is great for creating time delays.  In this mode an external trigger causes the 555 timer to output a pulse of an adjustable duration.  Jump straight to an example circuit for monostable mode here.

Astable Mode outputs an oscillating pulse signal/waveform.  In this mode the output of the 555 timer is switching between high and low states at a tunable frequency and pulse width.  Jump straight to an example circuit for astable mode here.

Bistable Mode causes the 555 timer to toggle its output between high and low states depending on the state of two inputs.  Jump straight to an example circuit for bistable mode here.

Some applications that come to mind include:

- a steady clock/trigger to keep time in a circuit (astable mode)
- the core oscillator of an analog synthesizer, with the addition of some op amps and other components this pulse wave can be shaped into a triangle, saw, and even sine shapes
- a very basic chiptune style noise maker (see atari punk console)
- time delay for an incoming signal (monostable mode)
- very basic storage of input data/management of two button control system (bistable mode)

The 555 timer is flexible, cheap, and easy to find (you can even pick them up at Radioshack).  It's also a great starting point for audio projects because its output can be wired directly to a speaker.  Feel free to use any of the info or example circuits I've provided in this tutorial as a starting point for an entry in the DIY Audio Contest! We're giving away an HDTV, DSLR cameras and tons of other great stuff!  (ends November 26)
 
Remove these adsRemove these ads by Signing Up

Step 1: 555 Timer Pin Diagram

Screen shot 2012-09-11 at 1.36.19 PM.png
Screen shot 2012-09-11 at 12.26.08 PM.jpg
Screen shot 2012-09-11 at 12.37.55 PM.png
Fig 1 shows the pin connections to the 555 timer, it was take directly from the 555 timer datasheet.  The power connections to the chip are through pins 1 (ground) and 8 (+Vcc).  The positive supply voltage (+Vcc) should be between 5 and 15V.

The second image is a close up of the diagram depicting the internal functional components of the chip.  This consists of a few different elements: resistors, transistors, comparators, a flip flop, and an output stage.

All three resistors diagrammed in fig 2 are 5kOhm (see image notes in fig 3).  The purpose of these resistors is to set up a voltage divider between Vcc and ground.  Since all resistors are the same value we know that the voltage at the junction between the resistors are 2/3Vcc and 1/3Vcc (see image notes in fig 2).  These voltages are used as reference voltages for the comparators.

A comparator is a circuit which compares an input with a reference voltage and outputs a LOW or HIGH signal based on whether the input is a higher or lower voltage than the reference.  The 555 timer uses several transistors to construct its comparators (see the image notes in fig 3), so in the simplified functional diagram in fig 2 they are represented by boxes labelled "comparator."  The comparator connected to pin 2 compares the "trigger" input to a reference voltage of 1/3Vcc and the comparator connected in pin 6 compares the "threshold" input to a reference voltage of 2/3Vcc from the voltage divider.

A flip flop is circuit that switches between two stable states based on the state of its inputs.  The 555 flip flop outputs a high or low based on the states of the two comparators.  When the trigger comparator is outputting a low signal (regardless of the state of the threshold comparator), the flip flop switches high, when both comparators are outputting a high signal, the flip flop switches low.  The timing of a high pulse output from the flip flop can also be manually reset (the beginning of a pulse can be triggered) by pulsing the reset pin low.

The functional diagram in fig 2 also includes two transistors.  The transistor attached to pin 7 is an NPN transistor.  Since pin 7 is connected to the collector pin of the NPN transistor, this type of configuration is called open collector or open drain.  This pin is usually connected to a capacitor and is used to discharge the capacitor each time the output pin goes low.  The transistor attached to pin 4 is a PNP transistor.  The purpose of this transistor is to buffer the reset pin, so the 555 does not source current from this pin and cause it to sag in voltage.

The output stage of the 555 timer is indicated in the image notes of fig 3.  Its purpose is to act as a buffer between the 555 timer and any loads that may be attached to its output pin.  The output stage supplies current to the output pin so that the other functional component of the 555 timer don't have to.
blaze.ninja42.0 says: Jan 30, 2013. 9:08 AM
do you have any idea how to install into a XBOX360 Controller? can it be a two or three wire hookup?
amandaghassaei (author) in reply to blaze.ninja42.0Feb 4, 2013. 11:10 PM
no idea, can you give me any more info? what are you trying to do?
blaze.ninja42.0 in reply to amandaghassaeiFeb 5, 2013. 8:05 AM
trying to hook it up so i have a rapid fire controller using a momentary on button, but no idea where to wire in the 555 timer at :/ since my controller doesn't have a crystal oscillator.
amandaghassaei (author) in reply to blaze.ninja42.0Feb 6, 2013. 6:22 AM
I've never tried modding a controller like that, but I know it's possible, do you have a schematic?
blaze.ninja42.0 in reply to amandaghassaeiFeb 6, 2013. 10:32 AM
no lol i don't, that sure would be helpful though.
hollingsworthdan says: Jan 11, 2013. 1:20 PM
"In the equation above, when RA is much larger than RB (you can ignore the RB terms) you end up with a duty cycle ~= 1 and when RB is much larger than RA (you can ignore the RA terms) you get a duty cycle =~ 1/2. So the limits of the duty cycle with the circuit shown in fig 2 are 50% to 100"

Note that this is not true.

You can set r1 to 0, and this gives you a %50 duty cycle. The only reason to have a resistor at R1 is to modify the duty cycle, and to keep a straight VCC from burning up the internal transistor at pin 7. This can be rectified by adding a resistor at GND. giving you a pure 50% duty cycle for the full range of r2.

Note that output is HIGH while charging through R1 + R2, and low while discharging through R2 only. IE the High duty time can never be smaller than the low duty time. limiting the duty cycle to greater than %50.
jojokeo says: Oct 1, 2012. 7:28 AM
Why doesn't the "print pdf" or save file to .pdf functions ever work for this site!???
geraldpaxton in reply to jojokeoDec 27, 2012. 5:59 PM
scroll down on the page...were you signed in?
dstahl3 says: Nov 29, 2012. 9:33 AM
Thank you for this. This compliments the datasheet nicely...
Does step 6 have the wrong schematic? How you have it wired and how the schematic says to wire it, appear to be different. (I am still a complete noob when it comes to a lot of this, so I could be completely wrong)
Shouldn't the variable resistor be tied directly to to pin 6 without the 10k ohm resistor in series? And the 10k ohm resistor should be between pin 6 and pin 7. At least that is how fig 14 of the datasheet appears to wire it.
11-29-2012 11-32-19 AM.png
amandaghassaei (author) in reply to dstahl3Nov 29, 2012. 10:59 AM
great question, this schematic is for the 50% duty cycle oscillator, which is a type of astable mode. This circuit is great if you really need a square wave output (50% high, 50% low) as opposed to a pulse output, but one annoying thing about it is that the frequency is given by:

f = 1/(Ra+Rb)

so in order to change the frequency of the timer you have to increase both Ra and Rb, in the circuit I provided you increase Ra and/r decrease Rb and vice versa to change the frequency, which makes it easy to use a single potentiometer as both Ra and Rb so you can physically dial in your frequency by turning a knob. But if you want to learn more about the 555 timer I'd recommend trying this schematic out and seeing what happens when you start changing things!
Mark Rehorst says: Sep 27, 2012. 10:19 AM
Great 'ible, even if the part is older than the hills.

All these circuits can be easily simulated using the free (as in beer) LT Spice circuit simulator (get it here: http://www.linear.com/designtools/software/ ) . You'll find the NE555 chip in the "misc" catalog of components.

In recent years it has been possible to do most of the 555 's functions (plus many more) using low pin count (6-8 pins) uCs. It frequently takes fewer components and performance is less variable with temperature than a 555 circuit. Of course, uCs require a programmer of some sort, but once you have that you usually find all sorts of uses for uCs.

nravi1 in reply to Mark RehorstOct 4, 2012. 10:03 AM
Dear sir,
In LT spice link u given it has many appli to download. in that which i need to download for this type simulation.(my id r.navaneethan1991@gmail.com)
PenguinsInAZ in reply to Mark RehorstSep 27, 2012. 4:49 PM
Also, if you have an iPad, I highly recommend iCircuit. It has most basic passives and several popular and useful ICs, including the 555, and a scope to watch what's going on in your circuits. They make a Mac desktop version, as well.
alzie in reply to Mark RehorstSep 27, 2012. 4:25 PM
Big Ditto re. LTspice!
Been using it for 10yrs now, awesome!
It does everything, free!
I highly recommend it.

Actually, a great way to wet yer feet in controllers is Arduino.
Ive been playing with the Uno and Rainbowduino for a year now, and
the development tool is Way easier than
the other mfrs tools.
I wont go back if i can help it.

Real coders scoff at it, but
its very easy to use.
That coming from a long time analog weenie.
Mark Rehorst in reply to alzieSep 27, 2012. 6:57 PM
I'm a PIC man.

I have limited experience with Arduino and it hasn't been very good. I am building a 3D printer that uses an Arduino ATMega2560 controller board. The firmware was developed by others, apparently on an outdated version of the Arduino IDE. The lastest Arduino IDE broke a lot of older Arduino stuff. I had to hunt down an old copy of the IDE, then I had to hunt down and fix an error because the mathematical function "round" was being defined in two places and the compiler didn't like it. All that screwing around was just so I could modify the source code for the printer firmware and upload it to the Arduino board. Documentation is practically nonexistent, so I had to wade through hundreds of posts on dozens of internet forums to find out what to do to solve the problem.

PICs are well documented, the IDE works, the programmers work. Assembly language is extremely efficient, though it can be tedious. C compilers are available if you don't like the work required to program in assembly.

I've seen too many Arduino projects where someone uses an Arduino to read a switch and turn on a light. Some people seem to use them as a matter of fashion rather than because their application actually requires some sort of intelligence. Meh!
pfred2 says: Oct 2, 2012. 5:32 PM
Guess what IC is supplying the step pulses in this circuit?

http://www.youtube.com/watch?v=GU2GaSMPxNI

I'll give you a hint, the number starts with a 5, ends with a 5, and has a 5 in the middle too. Over the years I've come up with a number of other clock generation circuits but none as easy to make, and control as the good old 555.
swander says: Sep 27, 2012. 6:10 PM
can anyone whip up a 5vdc fuel injector pulse generator for cycling/calibrating cleaner through said injectors? Ideally it would consist of 4-8 channels outputting 5vdc at about a 10ms pulse, frequency about 10 cycles per second? Im no where close to designing this but it would be cool to have to bench test your injectors, along with an old fuel rail, an EFI pump and 4-8 graduated cylinders.
jangeleri in reply to swanderSep 30, 2012. 11:59 AM
OTC makes one. And its not that pricy.
Modscientist in reply to swanderSep 28, 2012. 9:27 PM
To do any kind of projects spiecaly electronic it takes trail and era. For something that your looking for first design the circuit for one injector. Then bench test it (keep it running ) 24/7.Thats were the fun starts. You might want to use a pic chip but first you have to learn how to program it. Or go back to electronic 101 lookup different circuit with simular result. You probly find you'll have to use a cobination of different circuits.don't be supprisedto find the 555 in the circuit somewere if not the heart. 10HZ is a low frequecy so it possible that that it might not tak to long to come up with somethig. Rember looking at diferent circuits doesn't always mean if it a circuit that count screws thats what you got to use it for. Unless anyone out there made this devise already all you'll get are suggestion. GOOD LUCK ! Designing and finally commingup with a workikng product is a lot of work and love and patience.
alan5252 says: Sep 28, 2012. 6:59 AM
Great! Wow what a great project!!!!!!!!!!!!!
devalpha_1 says: Sep 28, 2012. 6:22 AM
555 has all the nostalgic value. 30 years, start any project 555 is a must. Great article Thanks.
bricmic says: Sep 27, 2012. 12:32 PM
Yes
The 555 as The 741 is the best integrated circuits, they still exist !!!
t.rohner in reply to bricmicSep 28, 2012. 4:11 AM
I'd say, that the 741 has many limitations, compared to modern Opamps.
gregnier says: Sep 28, 2012. 2:04 AM
This looks suspiciously like something that Hans Camenzind, the inventor of the 555 timer, would write. As usual, you write a very comprehensive and well written article, I recognize your style, well done.

From A long past acquaintance from the Interdesign days,
Kind Regards,
Gerard Regnier
amandaghassaei (author) in reply to gregnierSep 28, 2012. 2:20 AM
thanks! really good to hear!
dcoman says: Sep 27, 2012. 1:08 PM
isn't this a better use of the lm555 timer :

http://www.overclockers.com/pwm-fan-controller
amandaghassaei (author) in reply to dcomanSep 27, 2012. 1:47 PM
you could do lots of things with this pwm signal: change the speed of motors, dim leds... this is just an example circuit.
ynze says: Sep 25, 2012. 11:40 AM
Pretty cool crash course to 555 timers :-)

Idea: To stimulate Makers to actually use the 555 in a project, you could add a list of Instructables that make good use of 555's.

Cheers,

Y.
oddWires in reply to ynzeSep 27, 2012. 10:49 AM
Ten pack of 555 timers available here
MadCobbler says: Sep 27, 2012. 7:54 AM
I think every electronic hobbyist has built numerous projects with the 555. I have built several items. From a pulse width dew heater for my telescope, to a modulation circuit for a tremolo pedal for my guitar.
amaze1 says: Sep 27, 2012. 7:08 AM
A 555 instructable is always welcome.

Sadly I have to report that on august 8th the inventor of such genial piece of hardware, Hans Camenzind, has died.

His invention has now 40 years but it is still alive and kicking for all us of electronics enthusiasts.
t.rohner in reply to amaze1Sep 27, 2012. 7:37 AM
I played around with this chip 30 years ago.
I built a pulse packet modulated heater plate for thick film circuits.

40 years is a truly biblical age for a chip.
t.rohner in reply to t.rohnerSep 27, 2012. 7:42 AM
By the way

This is a fantastic and thorough instructable.
Took you a long time to write up.
5*
Insonicbloom says: Sep 27, 2012. 6:37 AM
nice tutorial, I use a lot of these in my projects too there's a cool stripboard site HERE with a good few 555 based projects
Lindie says: Sep 25, 2012. 6:15 PM
Wow! Impressive!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!