How does the NE555 timer IC work?
Introduction
In this post I will explain how the 555 timer works. The NE555 IC is one of the most popular ICs ever made, and due to its versatility of application, it can be found in countless electronic devices. This integrated circuit allows operations to be carried out at regular intervals like in timers, pulse generation and oscillators. It's popular because it's cheap, easy to understand, and very stable over time. It can operate in three modes: astable, monostable, and bistable.
I've been diving deeper into analog electronics lately, and the 555 is one of those components you just can't escape. It's been around since 1971 and it's still everywhere. So I figured it was time to really understand what's going on inside this little 8-pin chip instead of just blindly following circuit diagrams.
Quick note: Like my other posts, I'm not going to spoon-feed you every detail. I'll give you the core concepts and show you how things work, but I expect you to experiment and break things on your own. That's how you actually learn.
Block Diagram
Without further ado, let's see a block diagram of this IC:
VCC (Pin 8)
│
┌───────────────┼───────────────┐
│ │ │
│ ┌───┴───┐ │
│ │ 5V │ │
│ │ REG. │ │
│ └───┬───┘ │
│ │ │
│ CTRL (Pin 5) │
│ │ │
│ ┌──────┴──────┐ │
│ │ VOLTAGE │ │
THRES├────────►│ DIVIDER │ │
(Pin 6)│ │ (3 x 5K) │ │
│ └──────┬──────┘ │
│ │ │
│ ┌──────┴──────┐ │
│ │ COMPARATORS │ │
TRIG ├────────►│ (Upper & │ │
(Pin 2)│ │ Lower) │ │
│ └──────┬──────┘ │
│ │ │
│ ┌──────┴──────┐ │
│ │ FLIP │ │
│ │ FLOP │◄───────┤ RESET
│ │ (SR) │ (Pin 4)
│ └──────┬──────┘ │
│ │ │
│ ┌──────┴──────┐ │
│ │ OUTPUT │ │
│ │ STAGE ├────────┤ OUTPUT
│ │ │ (Pin 3)
│ └──────┬──────┘ │
│ │ │
DISCH ├───────────────┤ │
(Pin 7) │ │ │
│ ┌──────┴──────┐ │
│ │ DISCHARGE │ │
│ │ TRANSISTOR │ │
│ └─────────────┘ │
│ │
└───────────────┬───────────────┘
GND (Pin 1)
Internal Components
The 555 timer has several key components that work together. Let me break them down:
Voltage Divider Network
Inside the chip, there are three 5kΩ resistors connected in series between VCC and ground. This creates two reference voltages:
- Upper threshold: 2/3 VCC (around 6.67V if VCC = 10V)
- Lower threshold: 1/3 VCC (around 3.33V if VCC = 10V)
These reference voltages are crucial because they determine when the timer switches states. The voltage divider is why the chip is called "555" - three 5kΩ resistors.
Comparators
There are two comparators inside:
Upper Comparator: Compares the voltage at the THRESHOLD pin (Pin 6) with 2/3 VCC. When the threshold voltage exceeds 2/3 VCC, this comparator outputs HIGH.
Lower Comparator: Compares the voltage at the TRIGGER pin (Pin 2) with 1/3 VCC. When the trigger voltage falls below 1/3 VCC, this comparator outputs HIGH.
SR Flip-Flop
The outputs from both comparators feed into an SR (Set-Reset) flip-flop. This is the "memory" of the circuit:
- When the TRIGGER goes below 1/3 VCC, the flip-flop is SET, and the output goes HIGH
- When the THRESHOLD exceeds 2/3 VCC, the flip-flop is RESET, and the output goes LOW
- The RESET pin (Pin 4) can force the output LOW regardless of other inputs
Output Stage
The output stage can source or sink up to 200mA, which is pretty good for driving LEDs, small relays, or even speakers directly. The output is also inverted and connected to the DISCHARGE pin (Pin 7) through a transistor.
Discharge Transistor
This is an NPN transistor that connects Pin 7 to ground when the output is LOW. This is useful for timing circuits because it can discharge a capacitor when needed.
Operating Modes
Now that we understand the internals, let's look at how we actually use this thing.
Monostable Mode (One-Shot)
In monostable mode, the 555 generates a single pulse of a specific duration when triggered. Think of it like a timer that turns on for a set amount of time and then turns off.
Basic Circuit:
VCC
│
├──────────┬──────── Pin 8 (VCC)
│ │
┌┴┐ │
│ │ R │
│ │ │
└┬┘ │
├──────────┼──────── Pin 7 (DISCHARGE)
│ │
├──────────┼──────── Pin 6 (THRESHOLD)
│ │
═╪═ C │
│ │
GND ┌──┴──┐
│ │ 555 │
│ │ │──────── Pin 3 (OUTPUT)
├───────┤ │
│ └─────┘
GND
How it works:
- Initially, the capacitor C is discharged and the output is LOW
- When you apply a negative pulse (< 1/3 VCC) to the TRIGGER pin, the output goes HIGH
- The discharge transistor turns off, allowing the capacitor to charge through resistor R
- When the capacitor voltage reaches 2/3 VCC, the output goes LOW and the discharge transistor turns on
- The capacitor discharges and waits for the next trigger
Timing formula: T = 1.1 × R × C
Where T is in seconds, R in ohms, and C in farads.
For example, if R = 10kΩ and C = 100µF:
T = 1.1 × 10,000 × 0.0001 = 1.1 seconds
Astable Mode (Free-Running Oscillator)
In astable mode, the 555 continuously oscillates between HIGH and LOW without any external trigger. This is perfect for generating clock signals, flashing LEDs, or making beeping sounds.
Basic Circuit:
VCC
│
├──────────┬──────── Pin 8 (VCC)
│ │
┌┴┐ │
│ │ R1 │
│ │ │
└┬┘ │
├──────────┼──────── Pin 7 (DISCHARGE)
│ │
┌┴┐ │
│ │ R2 │
│ │ │
└┬┘ │
├──────────┼──────── Pin 6 (THRESHOLD)
│ │ & Pin 2 (TRIGGER)
═╪═ C │
│ │
GND ┌──┴──┐
│ │ 555 │
│ │ │──────── Pin 3 (OUTPUT)
├───────┤ │
│ └─────┘
GND
How it works:
- The capacitor charges through R1 and R2 until it reaches 2/3 VCC
- The output goes LOW and the discharge transistor turns on
- The capacitor discharges through R2 only until it reaches 1/3 VCC
- The output goes HIGH again and the cycle repeats
Timing formulas:
- High time:
T_high = 0.693 × (R1 + R2) × C - Low time:
T_low = 0.693 × R2 × C - Total period:
T = T_high + T_low = 0.693 × (R1 + 2×R2) × C - Frequency:
f = 1.44 / ((R1 + 2×R2) × C)
Notice that T_high is always longer than T_low because the capacitor charges through both resistors but discharges through only R2. If you want a 50% duty cycle (equal HIGH and LOW times), you need to add a diode to bypass R1 during discharge.
Bistable Mode (Flip-Flop)
In bistable mode, the 555 acts like a basic flip-flop or latch. It has two stable states and switches between them based on trigger and reset inputs. This mode is less common because there are better ICs for flip-flop applications, but it's still useful to understand.
Basic Circuit: Similar to monostable but without the timing capacitor. The THRESHOLD pin is connected to VCC through a pull-up resistor.
Practical Considerations
Power Supply
The 555 can operate from 4.5V to 16V, which makes it very flexible. However, keep in mind:
- Higher voltages give you more output current capability
- Lower voltages reduce power consumption
- The timing is stable across the voltage range (that's one reason it's so popular)
Control Voltage Pin (Pin 5)
This pin provides access to the internal 2/3 VCC reference voltage. You can:
- Add a capacitor (typically 10nF) to ground to reduce noise
- Apply an external voltage to modulate the timing (useful for voltage-controlled oscillators)
- Leave it floating in simple circuits (though adding the bypass cap is good practice)
Reset Pin (Pin 4)
This pin overrides everything and forces the output LOW when pulled below ~0.7V. Always:
- Connect it to VCC if you don't need the reset function
- Add a pull-up resistor if you're using a switch for reset
- Never leave it floating
Output Characteristics
The output can source or sink 200mA, but don't push it to the limit:
- Add a resistor when driving LEDs (calculate for about 10-20mA)
- Use a transistor or MOSFET for driving heavy loads
- The output swings between ground and VCC - 1.7V (not quite rail-to-rail)
Common Applications
Here are some things you can build with a 555:
- LED flasher: Simple astable circuit with an LED in series with a resistor
- Touch switch: Use your body capacitance to trigger a monostable circuit
- PWM controller: Modulate the control voltage pin to vary the duty cycle
- Sound generator: Astable mode at audio frequencies (a few hundred Hz to a few kHz)
- Timeout circuit: Monostable mode to turn something off after a delay
- Pulse generator: Clean up noisy switch inputs with a monostable circuit
Why It's Still Relevant
You might wonder why we still use a chip from the 1970s. Here's why:
Simplicity: You can understand the entire circuit in an afternoon. Try doing that with a microcontroller.
Cost: They're dirt cheap - often less than $0.50 in quantity.
Reliability: No software to crash, no programming needed. It just works.
Analog friendly: It's easy to interface with analog sensors and actuators without ADCs or DACs.
Teaching: Perfect for learning fundamental analog concepts like RC timing, comparators, and flip-flops.
That said, for complex timing or if you need precise frequencies, a microcontroller or dedicated timer IC might be better. But for simple tasks? The 555 is still king.
Conclusion
The NE555 is a masterpiece of analog design. It takes a few simple building blocks - resistors, comparators, a flip-flop, and an output driver - and combines them in a way that's been useful for over 50 years.
What I love about it is that once you understand how it works internally, you can predict its behavior in any circuit without memorizing formulas. The voltage divider sets the thresholds, the comparators detect when those thresholds are crossed, the flip-flop remembers the state, and the discharge transistor controls the timing capacitor. That's it.
If you're learning electronics, I highly recommend breadboarding some 555 circuits. Start with a simple LED flasher in astable mode, measure the voltages at different pins, and see how changing R and C values affects the frequency. Break it, fix it, and really understand what's happening.
And if you're already experienced, the 555 is still a great tool to keep in your arsenal for quick prototypes and simple tasks where you don't want to write firmware.
Now go build something that blinks!