• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » Arduino Based Smart Traffic Light Circuit for Beginners

Arduino Based Smart Traffic Light Circuit for Beginners

Last updated on 28 October 2025 by Admin-Lavi Leave a Comment

Traffic light is one of the best beginner Arduino projects.

It shows how to control LEDs using Arduino.

This project works like a real traffic signal like red for stop, yellow for wait and green for go.

Arduino Based Smart Traffic Light Circuit for Beginners is easy to build and fun to learn.

Coding:

int red = 8;
int yellow = 9;
int green = 10;

void setup() {
pinMode(red, OUTPUT);
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
}

void loop() {
digitalWrite(green, HIGH);
delay(5000);
digitalWrite(green, LOW);

digitalWrite(yellow, HIGH);
delay(2000);
digitalWrite(yellow, LOW);

digitalWrite(red, HIGH);
delay(5000);
digitalWrite(red, LOW);
}

Coding Explanation:

  • Three LEDs connect to pins 8, 9 and 10.
  • In setup part we set them as output.
  • In loop part green LED is on for 5 seconds and then goes OFF.
  • Yellow LED is ON for 2 seconds and then goes OFF.
  • Red LED is ON for 5 seconds and then is OFF.
  • The loop repeats again by making a traffic light sequence.

Circuit Working:

Arduino Based Smart Traffic Light Circuit Diagram for Beginners

Parts List:

Component NameQuantity
Resistors
220Ω 1/4 watt3
Semiconductors
Arduino UNO1
LEDs Red, Yellow and Green1 each

When Arduino starts, green LED turns ON for few seconds.

It means vehicles can go.

After that yellow LED turns ON to show warning or wait.

Then red LED turns ON to stop vehicles.

This cycle repeats again and again.

220Ω resistors are used for safety of LEDs.

Formula with Calculations:

Below is the formula for Smart Traffic Light Circuit.

To limit current for LEDs we have used resistor.

Formula: R = (Vsource – Vled) / Iled

Example: R = (5V – 2V) / 0.015A = 200 ohms (approx)

So we have used 220Ω resistor for safety.

How to Build:

To build a Arduino Based Smart Traffic Light Circuit for Beginners below is the connection steps for connection.

  • Collect all parts same as circuit diagram.
  • Join red LED long leg to pin 8 of Arduino.
  • Join yellow LED long leg to pin 9.
  • Join green LED long leg to pin 10.
  • Short leg of all LEDs go to GND of Arduino with 220Ω resistors.

Conclusion:

This simple Arduino Based Smart Traffic Light Circuit for Beginners helps understand basic LED control.

We learn how to use digital pins, timing and loops.

It is good for beginners and can be expanded with sensors later for smart traffic systems.

References:

Arduino Based Traffic Light System With Integrated LED Advertising Display

Filed Under: Arduino Projects, Indicator Circuits, LED and Lamps

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Solar Tracker Circuit using LDR and Op-Amp
Next Post: Push Button LED Circuit using Arduino »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Categories

  • Alarm Circuits (35)
  • Amplifier Circuits (67)
  • Arduino Projects (63)
  • Audio Circuits (101)
  • Automobile Circuits (19)
  • Battery Charger Circuits (54)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (43)
  • Inverter Circuits (16)
  • LDR Circuits (19)
  • LED and Lamps (127)
  • Meters and Testers (30)
  • Motor Controllers (18)
  • Oscillator Circuits (35)
  • Power Supply Circuits (94)
  • Remote Control Circuits (7)
  • Security and Protection (26)
  • Sensors and Detectors (99)
  • Solar Circuits (23)
  • Timer Circuits (32)
  • Transistor Circuits (65)
  • Transmitter Circuit (14)
  • Tutorials (8)
  • Water Level Controller (4)

Recent Posts

  • Chirping Sound Buzzer Circuit
  • Make Sound with Arduino using Buzzer Circuit
  • Adjust LED Glow with Potentiometer Circuit
  • Arduino Based Control LED Light Circuit with Potentiometer
  • Push Button LED Circuit using Arduino

Recent Comments

  1. Henrik Arboe Jensen on Adjustable Voltage, Current Power Supply Circuit using Transistor 2N3055
  2. Admin-Lavi on FM Transmitter Circuit (100 meters range)
  3. DEVINDER SINGH on FM Transmitter Circuit (100 meters range)
  4. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  5. Bill on Constant Voltage, Constant Current Battery Charger Circuit

Copyright © 2025 | New Circuit Ideas