Site icon Homemade Circuit Projects

Traffic Light Controller Circuit [Signal Red, Green, Amber]

A traffic light controller circuit can be used for controlling the sequential illumination of the RED, ORANGE and GREEN traffic signal lamps, by maintaining appropriate delays between the illumination sequence.

In real traffic signal light system we all have seen how the red, orange and green lamps switch ON/OFF in sequence with specific amount of time delay between each lamps.

How Traffic Signal Light Sequencing Works

Basically, the traffic lights that we see on roads and highways illuminate with a specific sequence, as I have explained below:

In this post I have explained how to build a realistic 3 color traffic light model, which will replicate the standard traffic light sequencing operation, as seen on roads and highways.

How the Circuit Works

As shown in the following figure we can see an IC 4017 which is 10 stage johnsons decade counter is used for executing the red, green, orange light sequencing operation.

Traffic light controller
traffic signal light GIF

In one our previous articles we have already learned how the IC 4017 outputs could be used to generate sequencing high logic pulses from one pinout to the other in response to clock pulses at its pin14.

Here we employ exactly the same working principle, which could be understood from the following explanation:

For feeding clock pulses to pin14 of the IC 4017, a basic astable oscillator is required which is fulfilled using the ubiquitous IC 555.

With each clock pulse from the IC 555's pin#3 to IC 4017's pin#14, causes the output of IC 4017 to create high logic shifts from one pinout to the next in the order of: 3, 2, 4, 7, 10, 1, 5, 6, 9, 11, and back to 3.

Meaning, initially a logic high is available at pin#3 of the IC 4017. With the first clock pulse at pin14, this logic high at pin3 will jump to pin2, then with the next clock at pin14, the logic pulse will jump from pin2 to pin4 and so on.

We can see that these outputs of the IC 4017 are configured with parallel diodes in order to create extended delays on the illumination of the red and the green LED lamps.

Let's say, each pulse from IC 555 has a delay of 2 seconds (this can be changed as desired), would mean that the logic at the IC 4017 outputs would shift with a delay of 2 seconds from one pinout to the other.

Since pin3 and pin2 are tied together with diodes, the total delay across these pinouts will 2+2 = 4 seconds. This means that the orange LEDs would remain switched ON for 4 seconds.

Similarly, the diode connection across pins4,7,10,1, and pins5,6,9,11 ensure that even while the logic sequence are shifting across these pinouts the output across these pinouts keep the red and the green LEDs switched ON for 2+2+2+2 = 8 seconds.

LED Lamps

Each of the lamps (red, green, amber) are built using 3 LEDs in series. In the diagram, the each of these LEDs are 1 watt 3.3V type high bright white LEDs, which must be connected in series for making each of the lamps, as shown in the diagram.

Parts List (BOM)

Calculations

LED Module Calculations

Each lamp module consists of 3 LEDs in series and each LED is rated at 3.3V, 1W, 300 mA.

Total Forward Voltage (Vf):

For 3 LEDs in series:

Vf = 3 × 3.3 = 9.9V

Voltage Across Resistor (Vr):

The supply voltage is 12V so the voltage drop across the resistor:

Vr = Vsupply - Vf = 12 - 9.9 = 2.1V

Resistor Value (R):

The resistor must limit the current to 300 mA:

R = Vr / I = 2.1 / 0.3 = 7Ω

A 22Ω 1W resistor is used in the circuit likely for additional safety margin because a higher resistance will slightly reduce the current preventing LED overheating.

Resistor Power Dissipation

The power dissipation in the resistor:

Pr = Vr × I = 2.1 × 0.3 = 0.63W

A 1W resistor is used which is sufficient to handle the dissipation with a safety margin.

NE555 Timer Frequency Calculation

The NE555 timer (IC1) is configured in astable mode to generate clock pulses for IC2 (4017).

Frequency Formula for NE555:

f = 1.44 / ((R1 + 2R2) × C1)

Using the given values:

R1 = 1MΩ

R2 = 1kΩ

C1 = 47μF

Substitute:

f = 1.44 / ((1 × 10^6 + 2 × 103) × 47 × 10-6)

f ≈ 0.030 Hz

Time Period (T):

T = 1 / f ≈ 1 / 0.030 ≈ 33 seconds

This means each cycle lasts approximately 33 seconds which is divided into steps by IC2 (4017).

CD4017 Decade Counter

The CD4017 (IC2) divides the NE555 clock pulses into sequential outputs.

Each output turns ON sequentially, lighting the RED, AMBER, and GREEN LEDs through transistors (TIP122).

The diodes (1N4148) ensure only one transistor activates at a time.

Cycle Timing for Each Output:

If the NE555 produces pulses every 33 seconds, and IC2 has 10 outputs:

Toutput = T / 10 = 33 / 10 = 3.3 seconds per output.

In this configuration specific diodes group outputs to match the timing requirements of the traffic light sequence.

Transistor Selection (TIP122)

The TIP122 is a Darlington transistor with:

Max current rating: 5A (well above the 300 mA required by LEDs).

Base Resistor (R3, R4, R5): Limits current to protect the base of the TIP122.

Base Current Calculation:

The required base current (Ib) for a Darlington transistor:

Ib = Ic / β

Base Resistor Value:

Rb = (Vin - Vbe) / Ib

The circuit uses 1kΩ base resistors for simplicity because the TIP122 does not require precise base current due to high gain.

Exit mobile version