Physics, asked by selvalakshmisakthi34, 6 hours ago

Connect three led with Arduino and write a program to simulate traffic

signal​

Answers

Answered by sureshtudu176
0

Explanation:

This simple little project uses an Arduino and some LEDs to replicate a traffic light signal.

The materials are here as follows:

1. Arduino/Genuino/Geekcreit/Whatever Uno

1. Arduino/Genuino/Geekcreit/Whatever Uno2. Breadboard

1. Arduino/Genuino/Geekcreit/Whatever Uno2. Breadboard3. Jumper Wires

1. Arduino/Genuino/Geekcreit/Whatever Uno2. Breadboard3. Jumper Wires4. Red, Yellow, and Green LED lights

1. Arduino/Genuino/Geekcreit/Whatever Uno2. Breadboard3. Jumper Wires4. Red, Yellow, and Green LED lights5. Arduino USB 2.0 Cable

Step 1: Supply power to the breadboard

Yes, I know that there's only one wire where there would usually be two, but trust me: Follow this exactly the way you see it. I've revised this post over and over, it's completely correct.

Yes, I know that there's only one wire where there would usually be two, but trust me: Follow this exactly the way you see it. I've revised this post over and over, it's completely correct.Insert one side of the jumper wire into GND on the board. Lead the other side to the breadboard. Put it on the far right column on the breadboard, at the top. This is the ground column. ALL the way to the right. Take a look at the picture and/or the schematics if you don't understand.

Step two: Adding the LEDs

Take out your LEDs and resistors. Place one end of the resistor in the column on the right, the same column we connected our jumper wire to. Extend the other end of the breadboard into the main part of the breadboard. Attach the resistor to any row you like. Our LEDs will go on the same row. We will stick one end of the LED on one side of the breadboard, and the other end on the other side of the breadboard. The short end of the LED will go on the side your resistors are on, the right side. Extend the other end of the LED to the right side of the breadboard. (If you don't put the LEDs in correctly, the project will not work.)

Step three: Completing the circuit

Alright. This is the last part. Take another jumper wire, put it on the same row that you have an LED on. This is where the wires will go:

Alright. This is the last part. Take another jumper wire, put it on the same row that you have an LED on. This is where the wires will go:Green LED: Port 2, Digital PWM section

Alright. This is the last part. Take another jumper wire, put it on the same row that you have an LED on. This is where the wires will go:Green LED: Port 2, Digital PWM sectionYellow LED, Port 3, Digital PWM section

Alright. This is the last part. Take another jumper wire, put it on the same row that you have an LED on. This is where the wires will go:Green LED: Port 2, Digital PWM sectionYellow LED, Port 3, Digital PWM sectionRed LED, Port 4, Digital PWM section

Similar questions