Traffic lights are a perfect real-world example of how electronics and logic can control timing sequences. A 4-way traffic junction can be tricky to manage if left uncontrolled, which is why automated lights ensure safety and efficiency.
In this project, we’ll look at a 4-way traffic light controller circuit built with a 555 timer IC and a 4017 decade counter IC. It’s simple to design, efficient, and demonstrates how sequencing logic works in practice. This circuit is often used as a learning project, but with some adjustments, it can scale into real-world prototypes.
Why Use 555 and 4017 for Traffic Lights?
The 555 timer is one of the most versatile ICs in electronics. In this project, it’s used as a clock generator. It produces continuous pulses at a set frequency, which define how long each light stays on.
The 4017 IC is a decade counter. It counts each incoming pulse from the 555 and activates its outputs Q0 to Q9 in sequence. This makes it ideal for sequencing traffic lights automatically without requiring a microcontroller.
Together, these two ICs form a simple, cost-effective way to control a repeating traffic light cycle.
The Core Circuit
Let’s analyze this schematic step by step.

1. The Clock Generator (555 Timer in Astable Mode)
- The 555 timer is configured in astable mode, meaning it generates continuous square pulses.
- Here, a 47k resistor and a 10µF capacitor set the timing interval. These values determine how quickly the signals change and, therefore, how long each traffic light stays green, yellow, or red.
- If you want longer or shorter light cycles, changes to these timing components (R and C) will adjust the frequency.
The output of the 555 (pin 3) is sent directly into the clock input (pin 14) of the 4017.
2. The Counter (4017 Decade Counter)
- The 4017 has 10 outputs (Q0 – Q9). For every pulse it receives from the 555, it shifts the “high” output to the next pin in order.
- In this traffic light design, only certain outputs are used to control the red, yellow, and green lights for North/South (N/S) and East/West (E/W) directions.
- The unused outputs are managed with diodes (here, 1N4148 diodes) to combine logic conditions and ensure proper sequencing.
3. The LEDs as Traffic Lights
Each set of lights has:
- Red LED
- Yellow LED
- Green LED
For N/S, there’s a red, yellow, and green set. For E/W, there’s another complete set.
Resistors (100Ω) are used in series with LEDs to limit current and prevent burning out the LEDs.
Based on the sequencing, when N/S traffic has a green signal, E/W remains red, and after the timer progresses, E/W will get its green while N/S is held at red. The yellow LEDs act as transitional states in between to warn drivers that the signal is about to change.
How the Traffic Light Sequence Works
Here’s the breakdown of how the lights change in this design:
- North/South Green ON, East/West Red ON
- Cars move north-south, while east-west traffic is stopped.
- Controlled by one of the 4017 outputs.
- North/South Yellow ON, E/W Red ON
- Warning north-south that their green is about to end.
- East-west still waits.
- North/South Red ON, East/West Green ON
- Now the east-west traffic moves.
- North-south must wait.
- N/S Red ON, E/W Yellow ON
- Warning east-west that their turn is closing.
Then the sequence repeats.
This alternating pattern ensures smooth two-way control at a 4-way intersection.
Key Components
- 555 Timer IC: Generates the clock pulse (timing of each change).
- 4017 Counter IC: Handles light switching sequences automatically.
- 1N4148 Diodes: Direct current from specific outputs of the 4017 to different LED groups, avoiding unwanted overlaps.
- Resistors (100Ω): Limit current through LEDs.
- Electrolytic Capacitor (10µF): Works with a resistor to set the speed of sequencing.
- LEDs: Represent the real red, yellow, and green lights at each junction.
Practical Applications
This project may seem like a classroom exercise, but traffic light controllers are widely used in real life (with far more complexity, of course). Applications for this design include:
- Education: Perfect for understanding sequential logic and timer circuits.
- Model traffic systems: A Great addition to miniature cities or railway models.
- DIY hobby projects: A simple way to simulate real-world automation.
- Prototyping: As a foundation to scale into microcontroller-based or PLC-based controllers.
Safety and Practical Notes
Since this circuit runs on low-voltage DC (12V), it’s safe to build and experiment with. It’s commonly powered by an adapter or a battery supply. A few notes:
- Use a regulated power supply for stable operation.
- LEDs should be bright enough to distinguish colors clearly. For classroom models, 5mm or 10mm super-bright LEDs are common.
- If you want adjustable timings, replace the 47k resistor with a potentiometer.
Advantages of This Circuit
- Simplicity: Only uses two main ICs. No programming required.
- Cost-effective: Components are inexpensive and widely available.
- Expandable: Can be extended into more complex traffic systems.
- Educational Value: Demonstrates the principle of sequential logic, counters, and real-world automation.
Limitations
- Not suitable for real full-scale intersections — it cannot handle sensors, traffic density adjustments, or pedestrian signals.
- Timing intervals must be set manually by adjusting resistor/capacitor values. No adaptive timing.
- The 4017 has a fixed sequence, so complexity is limited compared to microcontroller-based systems.
Improvements and Variations
If you want to take this project to the next level:
- Replace the 555 with a microcontroller (Arduino or PIC) and code your timing and sequencing.
- Add push-buttons for pedestrian crossing lights.
- Use transistor drivers or relays to control higher power lamps instead of just LEDs.
- Add a digital display that shows countdown timers for each direction.
Conclusion
The 4-way traffic light controller using a 555 timer and a 4017 counter is a brilliant beginner-to-intermediate electronics project. It teaches how timing signals can control outputs, how a counter sequences through states, and how diodes can direct logic to create desired outcomes.
In this design, the 555 generates clock pulses, the 4017 controls the sequence, and LEDs at the outputs simulate the red, yellow, and green cycles for two directions of a traffic intersection.
It’s not ready for real-world road intersections, but as a teaching and hobby project, it strikes a perfect balance of simplicity and functionality. You’ll walk away with a solid understanding of timers, counters, logic sequencing, and how electronics can automate something as complex — and critical — as traffic control.