Arseniy Nechaev
Published © GPL3+

LED Traffic Light

Make an LED traffic light!

BeginnerProtip1,020
LED Traffic Light

Things used in this project

Hardware components

Resistor 220 ohm
Resistor 220 ohm
×3
SparkFun Assorted LEDs
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Arduino UNO
Arduino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Hands

Story

Read more

Schematics

20181226_114227_FGa4nlP9kh.jpg

Code

Untitled file

C/C++
// created by Arseniy Nechaev
void setup() {     // This is to set up the pins on your Arduino UNO
  pinMode(13, OUTPUT)
;  pinMode(12, OUTPUT)
;  pinMode(11, OUTPUT)

;}

void loop() { // Code put in here will run over and over again
  digitalWrite(13, HIGH)
;  delay(2000)
 ; digitalWrite(13, LOW)
 ; digitalWrite(12, HIGH)
 ; delay(1000)
 ; digitalWrite(12, LOW)
 ; digitalWrite(11, HIGH)
 ; delay(2000)
 ; digitalWrite(11, LOW)
  

;}

Credits

Arseniy Nechaev
6 projects • 12 followers
I am 12 years old, and a newbie to engineering. I started doing this because I love to look at circuits, PCBs, and inside electronics.
Contact

Comments

Please log in or sign up to comment.