555 Timer Tutorial - The Monostable Multivibrator

Advertisement

555 Timer Tutorial

555 Timer Tutorial

The 555 Timer is a commonly used IC designed to produce a variety of output waveforms with the addition of an external RC network

We have seen that Multivibrators and CMOS Oscillators can be easily constructed from discrete components to produce relaxation oscillators for generating basic square wave output waveforms. But there are also dedicated IC’s such as the 555 timer especially designed to accurately produce the required output waveform with the addition of just a few extra timing components.

One such device that has been around since the early days of IC’s and has itself become something of an industry “standard” is the 555 Timer Oscillator which is more commonly called the “555 Timer”.

The basic 555 timer gets its name from the fact that there are three internally connected 5kΩ resistors which it uses to generate the two comparators reference voltages. The 555 timer IC is a very cheap, popular and useful precision timing device which can act as either a simple timer to generate single pulses or long time delays, or as a relaxation oscillator producing a string of stabilised waveforms of varying duty cycles from 50 to 100%.

The 555 timer chip is extremely robust and stable 8-pin device that can be operated either as a very accurate Monostable, Bistable or Astable Multivibrator to produce a variety of applications such as one-shot or delay timers, pulse generation, LED and lamp flashers, alarms and tone generation, logic clocks, frequency division, power supplies and converters etc, in fact any circuit that requires some form of time control as the list is endless.

The single 555 Timer chip in its basic form is a Bipolar 8-pin mini Dual-in-line Package (DIP) device consisting of some 25 transistors, 2 diodes and about 16 resistors arranged to form two comparators, a flip-flop and a high current output stage as shown below. As well as the 555 Timer there is also available the NE556 Timer Oscillator which combines TWO individual 555’s within a single 14-pin DIP package and low power CMOS versions of the single 555 timer such as the 7555 and LMC555 which use MOSFET transistors instead.

A simplified “block diagram” representing the internal circuitry of the 555 timer is given below with a brief explanation of each of its connecting pins to help provide a clearer understanding of how it works.

555 Timer Block Diagram

555 timer block diagram

  • • Pin 1. – Ground, The ground pin connects the 555 timer to the negative (0v) supply rail.
  • • Pin 2. – Trigger, The negative input to comparator No 1. A negative pulse on this pin “sets” the internal Flip-flop when the voltage drops below 1/3Vcc causing the output to switch from a “LOW” to a “HIGH” state.
  • • Pin 3. – Output, The output pin can drive any TTL circuit and is capable of sourcing or sinking up to 200mA of current at an output voltage equal to approximately Vcc – 1.5V so small speakers, LEDs or motors can be connected directly to the output.
  • • Pin 4. – Reset, This pin is used to “reset” the internal Flip-flop controlling the state of the output, pin 3. This is an active-low input and is generally connected to a logic “1” level when not used to prevent any unwanted resetting of the output.
  • • Pin 5. – Control Voltage, This pin controls the timing of the 555 by overriding the 2/3Vcc level of the voltage divider network. By applying a voltage to this pin the width of the output signal can be varied independently of the RC timing network. When not used it is connected to ground via a 10nF capacitor to eliminate any noise.
  • • Pin 6. – Threshold, The positive input to comparator No 2. This pin is used to reset the Flip-flop when the voltage applied to it exceeds 2/3Vcc causing the output to switch from “HIGH” to “LOW” state. This pin connects directly to the RC timing circuit.
  • • Pin 7. – Discharge, The discharge pin is connected directly to the Collector of an internal NPN transistor which is used to “discharge” the timing capacitor to ground when the output at pin 3 switches “LOW”.
  • • Pin 8. – Supply +Vcc, This is the power supply pin and for general purpose TTL 555 timers is between 4.5V and 15V.

The 555 Timers name comes from the fact that there are three 5kΩ resistors connected together internally producing a voltage divider network between the supply voltage at pin 8 and ground at pin 1. The voltage across this series resistive network holds the negative inverting input of comparator two at 2/3Vcc and the positive non-inverting input to comparator one at 1/3Vcc.

The two comparators produce an output voltage dependent upon the voltage difference at their inputs which is determined by the charging and discharging action of the externally connected RC network. The outputs from both comparators are connected to the two inputs of the flip-flop which in turn produces either a “HIGH” or “LOW” level output at Q based on the states of its inputs. The output from the flip-flop is used to control a high current output switching stage to drive the connected load producing either a “HIGH” or “LOW” voltage level at the output pin.

The most common use of the 555 timer oscillator is as a simple astable oscillator by connecting two resistors and a capacitor across its terminals to generate a fixed pulse train with a time period determined by the time constant of the RC network. But the 555 timer oscillator chip can also be connected in a variety of different ways to produce Monostable or Bistable multivibrators as well as the more common Astable Multivibrator.

The Monostable 555 Timer

The operation and output of the 555 timer monostable is exactly the same as that for the transistorised one we look at previously in the Monostable Multivibrators tutorial. The difference this time is that the two transistors have been replaced by the 555 timer device. Consider the 555 timer monostable circuit below.

Monostable 555 Timer

monostable 555 timer

When a negative ( 0V ) pulse is applied to the trigger input (pin 2) of the Monostable configured 555 Timer oscillator, the internal comparator, (comparator No1) detects this input and “sets” the state of the flip-flop, changing the output from a “LOW” state to a “HIGH” state. This action in turn turns “OFF” the discharge transistor connected to pin 7, thereby removing the short circuit across the external timing capacitor, C1.

This action allows the timing capacitor to start to charge up through resistor, R1 until the voltage across the capacitor reaches the threshold (pin 6) voltage of 2/3Vcc set up by the internal voltage divider network. At this point the comparators output goes “HIGH” and “resets” the flip-flop back to its original state which in turn turns “ON” the transistor and discharges the capacitor to ground through pin 7. This causes the output to change its state back to the original stable “LOW” value awaiting another trigger pulse to start the timing process over again. Then as before, the Monostable Multivibrator has only “ONE” stable state.

The Monostable 555 Timer circuit triggers on a negative-going pulse applied to pin 2 and this trigger pulse must be much shorter than the output pulse width allowing time for the timing capacitor to charge and then discharge fully. Once triggered, the 555 Monostable will remain in this “HIGH” unstable output state until the time period set up by the R1 x C1 network has elapsed. The amount of time that the output voltage remains “HIGH” or at a logic “1” level, is given by the following time constant equation.

555 timer equation

Where, t is in seconds, R is in Ω and C in Farads.

555 Timer Example No1

A Monostable 555 Timer is required to produce a time delay within a circuit. If a 10uF timing capacitor is used, calculate the value of the resistor required to produce a minimum output time delay of 500ms.

500ms is the same as saying 0.5s so by rearranging the formula above, we get the calculated value for the resistor, R as:

555 monostable timer example

The calculated value for the timing resistor required to produce the required time constant of 500ms is therefore, 45.5KΩ. However, the resistor value of 45.5KΩ does not exist as a standard value resistor, so we would need to select the nearest preferred value resistor of 47kΩ which is available in all the standard ranges of tolerance from the E12 (10%) to the E96 (1%), giving us a new recalculated time delay of 517ms.

If this time difference of 17ms (500 – 517ms) is unacceptable instead of one single timing resistor, two different value resistor could be connected together in series to adjust the pulse width to the exact desired value, or a different timing capacitor value chosen.

We now know that the time delay or output pulse width of a monostable 555 timer is determined by the time constant of the connected RC network. If long time delays are required in the 10’s of seconds, it is not always advisable to use high value timing capacitors as they can be physically large, expensive and have large value tolerances, e.g, ±20%.

One alternative solution is to use a small value timing capacitor and a much larger value resistor up to about 20MΩ’s to produce the require time delay. Also by using one smaller value timing capacitor and different resistor values connected to it through a multi-position rotary switch, we can produce a Monostable 555 timer oscillator circuit that can produce different pulse widths at each switch rotation such as the switchable Monostable 555 timer circuit shown below.

A Switchable Monostable Circuit

switchable monostable 555 timer

We can manually calculate the values of R and C for the individual components required as we did in the example above. However, the choice of components needed to obtain the desired time delay requires us to calculate with either kilohm’s (KΩ), Megaohm’s (MΩ), microfarad’s (μF) or picafarad’s (pF) and it is very easy to end up with a time delay that is out by a factor of ten or even a hundred.

We can make our life a little easier by using a type of chart called a “Nomograph” that will help us to find the monostable multivibrators expected frequency output for different combinations or values of both the R and C. For example,

Monostable Nomograph

555 timer nomograph

So by selecting suitable values of C and R in the ranges of 0.001uF to 100uF and 1kΩ to 10MΩ respectively, we can read the expected output frequency directly from the nomograph graph thereby eliminating any error in the calculations. In practice the value of the timing resistor for a monostable 555 timer should not be less than 1kΩ or greater than 20MΩ.

Bistable 555 Timer

As well as the one shot 555 Monostable configuration above, we can also produce a Bistable (two stable states) device with the operation and output of the 555 Bistable being similar to the transistorised one we look at previously in the Bistable Multivibrators tutorial.

The 555 Bistable is one of the simplest circuits we can build using the 555 timer oscillator chip. This bistable configuration does not use any RC timing network to produce an output waveform so no equations are required to calculate the time period of the circuit. Consider the Bistable 555 Timer circuit below.

Bistable Flip-flop Circuit

bistable 555 timer

The switching of the output waveform is achieved by controlling the trigger and reset inputs of the 555 timer which are held “HIGH” by the two pull-up resistors, R1 and R2. By taking the trigger input (pin 2) “LOW”, switch in set position, changes the output state into the “HIGH” state and by taking the reset input (pin 4) “LOW”, switch in reset position, changes the output into the “LOW” state.

This 555 timer circuit will remain in either state indefinitely and is therefore bistable. Then the Bistable 555 timer is stable in both states, “HIGH” and “LOW”. The threshold input (pin 6) is connected to ground to ensure that it cannot reset the bistable circuit as it would in a normal timing application.

555 Timer Output

We could not finish this 555 Timer tutorial without discussing something about the switching and drive capabilities of the 555 timer or indeed the dual 556 Timer IC.

The output (pin 3) of the standard 555 timer or the 556 timer, has the ability to either “Sink” or “Source” a load current of up to a maximum of 200mA, which is sufficient to directly drive output transducers such as relays, filament lamps, LED’s motors, or speakers etc, with the aid of series resistors or diode protection.

This ability of the 555 timer to both “Sink” (absorb) and “Source” (supply) current means that the output device can be connected between the output terminal of the 555 timer and the supply to sink the load current or between the output terminal and ground to source the load current. For example.

Sinking and Sourcing the 555 Timer Output

device output drive

sinking and sourcing

In the first circuit above, the LED is connected between the positive supply rail ( +Vcc ) and the output pin 3. This means that the current will “Sink” (absorb) or flow into the 555 timer output terminal and the LED will be “ON” when the output is “LOW”.

The second circuit above shows that the LED is connected between the output pin 3 and ground ( 0v ). This means that the current will “Source” (supply) or flow out of the 555 timers output terminal and the LED will be “ON” when the output is “HIGH”.

The ability of the 555 timer to both sink and source its output load current means that both LED’s can be connected to the output terminal at the same time but only one will be switched “ON” depending whether the output state is “HIGH” or “LOW”. The circuit to the left shows an example of this. the two LED’s will be alternatively switched “ON” and “OFF” depending upon the output. Resistor, R is used to limit the LED current to below 20mA.

We said earlier that the maximum output current to either sink or source the load current via pin 3 is about 200mA at the maximum supply voltage, and this value is more than enough to drive or switch other logic IC’s, LED’s or small lamps, etc. But what if we wanted to switch or control higher power devices such as motors, electromagnets, relays or loudspeakers. Then we would need to use a Transistor to amplify the 555 timers output in order to provide a sufficiently high enough power to drive the load.

555 Timer Transistor Driver

output driver

The transistor in the two examples above, can be replaced with a Power MOSFET device or Darlington transistor if the load current is high. When using an inductive load such as a motor, relay or electromagnet, it is advisable to connect a freewheeling (or flywheel) diode directly across the load terminals to absorb any back emf voltages generated by the inductive device when it changes state.

Thus far we have look at using the 555 Timer to generate monostable and bistable output pulses. In the next tutorial about Waveform Generation we will look at connecting the 555 in an astable multivibrator configuration. When used in the astable mode both the frequency and duty cycle of the output waveform can be accurately controlled to produce a very versatile waveform generator.

259 Comments

Join the conversation

Error! Please fill all fields.

  • Nchumuluh favour

    Very good

  • Abisha

    Understandable notes

    • Gordon Smith

      There are two resistors to charge the cap and one of the two to discharge it. So the discharge (low) period is always shorter than the charge period. You cannot have a 50-50 duty cycle using a 555 although you can get fairly close.

  • Nteziryayo Olivier

    So nice explain and another time can you give us information about logic gate

  • Bert Speggly

    I need a circuit where the output changes state each time a trigger pulse is applied. Is this possible?
    Thanks

    • Osvaldo

      2 transistors and you can do Bistable, monostable or astable vibrators. check this one in particular. specify next time what kind of electronics you want to use if it´s not logic gates or whatsoever.
      check:

      • Gordon Smith

        To toggle the output (lo-to-hi or hi-to-lo) reliably, you need an edge-triggered device. That is, the rising (or falling) edge of your input pulse triggers the change of state at the output. There is a miniscule delay (propagation delay) from input change to output change, by which time the switching-edge has become a steady 5V or 0V. So the input cannot try to re-switch the output continually. The input pulses must be clean and with steep leading and trailing edges.
        Try a D-type latch like 74HC74, connecting the D input to the minus Q output. This device is positive-edge triggered.
        Each input pulse rising edge will toggle the outputs. To generate clean pulses from slow-rising and falling inputs you need a Schmitt Trigger device like 74HC132 or 74HC14. Each gate triggers at a certain input voltage level (maybe 3V) to give a very sharp change at the output, then changes the output back when the input falls to a lower voltage (maybe 2V).
        A mechanical pushbutton will need debouncing with RC time constant around 50mS, then input to HC14 gate, then output to HC74 clock input.

        Hope this helps!

        Gordon.

        • Bert Speggly

          Thanks for your reply. But I don’t want to get into logic circuits. I’ll find another way.

          • Gordon Smith

            What you asked for IS a logic circuit. To switch the output state On then OFF with the same button is more difficult than using separate ON and OFF buttons, but it is a binary function (ON/OFF, 0/1, HI/LO) nevertheless. The simplest circuit using two cross-coupled transistors as a latch, is a logic circuit.
            I did find this mechanical solution on the net. Here is the address, it might help.
            Good luck.

  • williamokeny

    the driving component of monostable mutivibrator

  • Dale Thomas

    I just can’t seem to get this figured out. I’m trying to make a adjustable, auto repeating timer using the ne555 using 12vdc supply. I need 5 seconds on adjustablw and 60 seconds off adjustable then repeat automatically. I can get the on time long and the off time short easily but not the other way around. Any help would be appreciated. Load is small dc motor.

    • Gordon Smith

      Remember that the 555 capacitor charges via two resistors in series, but it discharges through only one of those resistors. The point between the resistors is then grounded and the second resistor prevents the supply being shorted to ground. So the RC time constant during discharge is ALWAYS shorter than the charge time constant.

    • Chuck

      Take the output to drive a 2N2222 inverter with the long on and short off to get a short on and long off. I have done this many time.

      • karl t

        Use a ‘556’ DUAL ‘555’. Since you want adjustable ON time & adjustable OFF time, use an appropriate ‘RC’ time configuration on one of the ‘555’ timers, use another ‘RC’ time configuration for the other adjustment. For both of the ‘R’ components, put a minimal value resistor in series with an appropriately valued potentiometer for each time base. Connect the output from the one timer to the trigger input of the 2nd timer. Then you will get your adjustable ON times & adjustable OFF times. OR, use two independent ‘555’ timer ICs, but connect them in the same configuration.
        You may be better off using the std. ‘555’ or ‘556’, NOT the CMOS version, depending on the rest of your circuit.

  • josepjJOSEPH

    Bonsoir.
    Voudriez vous me partzger l’article qui montre comment connecter le 555 dans une configuration de multivibrateur astable. Lorsqu’il est utilisé en mode astable, la fréquence et le rapport cyclique de la forme d’onde de sortie peuvent être contrôlés avec précision pour produire un générateur de forme d’onde très polyvalent?

    merci

  • Joseph P Campbell

    I once completed an AQA GCE AS Level Electronics course at Wigan and Leigh College in the year 2001; 22 years ago. The 555 Timer proved to be a very versatile circuit, but not as versatile as its successor.

  • Numan

    With 555 timer ic, npn transistor works fine but pnp transistor does not trigger with it.

    • erikdenhouter

      When the output goes off it will be low, and is able to sink current for switching a PNP transistor, but the emitter of the transistor mus be connected to the positive rail, and a current limiting resistor (e.g. 4k7) must be between the base and the output of the 555. In the collector lead you can put a small load, like a LED+current limiting resistor.
      But this way it will trigger ONLY when the output is low (off). So for normal operation better use an NPN.

      • Wayne Storr

        We agree with your comments. The output stage of the 555 forms a totem-pole design which can either source (high-state) or sink (low-state) loads. For PNP transistor operation, the emitter terminal must be more positive than the collector and base so that the emitter-base junction is forward biased

  • Pierre Gaudet

    I have seen many papers about the 555. It is the first time I see a tutorial so well done. Usually, when you finish reading, there is a lot of questions remaining. It is not the case with your tutorial where everything is well explained and in the right place. You don’t need to be an electronic engeneer to understand explanations. BRAVO

  • Xolani

    Marete.

  • Patient Teacher

    Wayne,
    You were a lot more stern in your comment to this person about the 555 timer calculation. I thought of firing off a similar reply, but opted for the ‘teacher’ approach instead.
    Good for you.

  • WHY

    Why put all this effort without filling in all the values.
    What is R2 and C2 in the very first example?
    Why have all this and not have an actual example – i.e. I have a 12V supply and want a 10 second timer; here are the values to do so.
    Waste of time

    • erikdenhouter

      I do not understand. Clearly also an example is provided under “555 Timer Example No1”.

      Why then not put as a question in stead of a comment ?

      And in your comment you mention you want an example with a 12Volt supply, but please read the article, and you will see that Voltage has nothing to do with the timing. It is about reaching 2/3 of the used Voltage, no matter what Voltage used between 4.5V – 15V.

      • Gordon Smith

        OK, let’s stay cool.
        Connect resister R to voltage supply V and capacitor C. Connect the capacitor other lead to ground. Current flows thru R to begin charging C. At the moment of connection this current I is V/R because the cap is at 0V (ie no charge). The cap will charge to 2/3V in CR seconds, where C is in microfarads (uF)and R is in megohms(Mohms). Just remember that 1M and 1uF charge to 2/3V in 1sec. That could be 2/3 of 5V or 2/3 of 500V, it makes no difference. The whole operation is independent of V. As the voltage on C increases, the voltage across R decreases, as a proportion of V. So the current through R also reduces, non-linearly. The charge-time to 2/3V is CR seconds and to V is close to 4CR seconds.
        In the 555, a comparator detects when 2/3V is reached and changes the circuit to now discharge the cap down to 1/3V, when it begins charging again. If memory serves, there are two series resistors charging the cap from V and the junction of the two is grounded to discharge the cap and remove the charging voltage. So the charge time through R1 + R2 is always longer than the discharge time through R2 alone.
        I hope this is helpful.

    • Wayne Storr

      This Electronics Tutorials website is about education and learning. It is not a “copy an electronic circuit and learn nothing” website. There are plenty of those online. Clearly if you are unable or lack the capacity to understand the formulas given to calculate your own R and C values, then maybe Electronics is not for you.

      • Alonso

        What kind of hateful answer is this one?

        • Patient Teacher

          Alonso,
          I completely agree with Wayne’s response to the original comment. The tutorial is very complete, giving the exact equation for calculating the timing period of the 555. The fellow who wrote the snide comment about it being a ‘waste of time’ was too lazy to read the entire tutorial. IF he had, he would have seen the t=1.1RC, and since he wanted a 10 second clock, he could have worked it out very easily. But, instead he chose to post his own stupid comment.

    • Patient Teacher

      You obviously have not studied the 555 in depth with your comment.
      It doesn’t matter what your supply voltage is … 5, 9, 12.
      The basic equation is t =1.1/RC. So, you want 10 second pulses,
      select an even value capacitor …… 1 uf, 2, uF, 10 uF. Then do the arithmetic, solving for the R value. IF you need a very precise 10 second pulse, use a multi-turn potentiometer instead of a fixed resistor. Use a calibrated counter, and adjust the ‘pot’ until the output is exactly 10 seconds.
      IF you must have more precision, maybe you should consider a TCXO, and scale the output to your needs.

  • Eugene

    What is an RC network? Radio Control? Recursive Control? Resistance-Capacitance? Reflection Coefficient? Radiation Counter? Read Cycle? Redistribution Control? Regeneration Clamp? Ribbon Cable? Room Controller? Resolution Calibration?

    • Gordon

      you forgot the KISS principle

      • Gordon Smith

        Start with RC network. A capacitor charges via a resistor. Think of a bucket filling with water from a pipe. The narrower the pipe the longer it takes to fill. The capacitor charges to 66% of the supply voltage in CxR seconds. C is capacitance in microfarad (uF) and R is in megohms (Mohm). So with a 5V supply it charges to 3.3V in 1sec if C = 1uF and R = 1Mohm. At that point the upper threshold 555 comparator triggers, and the capacitor starts to discharge down to the lower threshold of 33% or 1.65V. Get a book on basic electronics. The 555 is a good example to learn with.

    • erikdenhouter

      RC means Resistor and Capacitor; two (or more) of these components that are connected external of the 555 chip to regulate what the chip is going do for you. Many combinations possible.

  • MIA SUFEE

    Thanks

  • Stuart Barker

    Really bad practice to just use pin numbers on IC’s shown in circuits without any indication of pin functionality. You have to repeatedly cross reference the IC pinout with the circuit. This leads to reduced understanding of the circuit and increases the likelihood of errors.

  • Chamu Muchenje

    How can I use a 555 timer to produce a short high pulse (1 second) on pin 3 when I trigger pin 2 low permanently?

    • Gary

      Wayne’s response is only partly true. Several companies make 555 timers, unlike most other IC’s their internal design varies. Some brands will generate one pulse, and stop. Other brands will continuously retrigger. Unfortunately, I don’t recall which are which. You will have to buy several brands and experiment.

      • karl

        I disagree with your statement. I have used the basic ‘555’ timer for decades, going back to the original SIGNETICS-manufactured devices. There are two primary ways to use this IC, either as a one-shot triggered pulse device, or as a multivibrator, where it continues to trigger negative-going pulses until pin 4, the RESET pin is grounded.
        Now, while I agree that it is a very useful device, since it can be controlled in many ways, and can produce a plethora of out signals frequency, duty cycle, etc., it’s still primarily only a one-shot OR multi-vibrator capable device.
        To the other point made recently, about not just putting pin numbers on schematics, but also furnishing pin functions, I also agree. Any schematic with a multi-pin device, when it’s NOT immediately evident (such as a NAND gate), should have each pin identified for its functionality. no questions about that.

    • Wayne Storr

      You can configure a 555 timer to however you want it to operate

  • Joel Ozigi

    pls can you help me with name of the engineering writer of this website i want to use for project reference. this site is very educating

    • Wayne Storr

      Hello, you can use the name of the website “Basic Electronics Tutorials” or the tutorial URL itself as your reference

  • gurunaath

    well, i need a component which replace the camera in tinkercad circuit. what will be that component

  • Nitin

    It was like a story telling and most simple way to expalin ,understood all ,thanks