Arduino Traffic Light

Let's start small. A basic, single traffic light is a good place to start.

Jun 1, 2021

22544 views

7 respects

Components and supplies

1

Arduino UNO

7

Male/Male Jumper Wires

1

5 mm LED: Red

3

Resistor 220 ohm

1

5 mm LED: Green

1

Breadboard (generic)

1

5 mm LED: Yellow

Project description

Code

Traffic Light Code

python

Arduino Traffic Light Project Code

Traffic Light Code

python

Arduino Traffic Light Project Code

Downloadable files

Circuit Diagram

Arduino Traffic Light Project Diagram

Circuit Diagram

Comments

Only logged in users can leave comments

iliadi

a month ago

good but it needs more work surya 2097

Anonymous user

3 years ago

The 5V (RED) wire from the Arduino to the breadboard is not necessary. The PWM gives the LED the power. [edit] You forgot to erase the unecessary 5v wires from original sketch... when you removed the original author's sketch's push button.[/edit]