Hackster is hosting Impact Spotlights: Smart Home. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Smart Home. Stream on Thursday!
SandroMesquitaPixelsEscola
Published © GPL3+

Traffic light full size for cars

Complete design of a traffic light using 250 high brightness LED, learn the electronic circuit and have fun controlling it with your Arduino

IntermediateFull instructions provided5,122
Traffic light full size for cars

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
Original Arduino Uno Atmega 328P.
×1
Resistor 220 ohm
Resistor 220 ohm
Ceramic resistor of 220Ohm and 2W of power.
×3
Resistor 3900 Ohm
×3
General Purpose Transistor NPN
General Purpose Transistor NPN
BC548
×9
5 mm LED: Red
5 mm LED: Red
High brightness led red
×63
5 mm LED: Yellow
5 mm LED: Yellow
High brightness led yellow
×63
5 mm LED: Green
5 mm LED: Green
High brightness led green
×63
DC Power Connector, Jack
DC Power Connector, Jack
×1

Story

Read more

Schematics

Full Circuit of Traffic Light

Code

Code Traffic Light

Arduino
//SEMFORO REAL
int vermelho = 4;
int amarelo =  3;
int verde =    2;

void setup() {
  pinMode(vermelho, OUTPUT);
  pinMode(amarelo, OUTPUT);
  pinMode(verde, OUTPUT);

}

void loop() {
  digitalWrite(vermelho, HIGH);
  digitalWrite(amarelo,  LOW);
  digitalWrite(verde,    LOW);
  delay(7000);
  digitalWrite(vermelho, LOW);
  digitalWrite(amarelo,  LOW);
  digitalWrite(verde,    HIGH);
  delay(5000);
  digitalWrite(vermelho, LOW);
  digitalWrite(amarelo,  HIGH);
  digitalWrite(verde,    LOW);
  delay(2000);

}

Credits

SandroMesquita
14 projects • 113 followers
Professor de robótica com Arduino e Raspberry, estudando e aplicando conhecimentos de I.A. usando a Linguagem Python como base.
Contact
PixelsEscola
14 projects • 69 followers
Contact

Comments

Please log in or sign up to comment.