Traffic Light using Arduino - A Beginner Project

If you are a beginner this project is for you. In this you will find how to make Arduino Traffic

Apr 17, 2022

•

293278 views

•

28 respects

Components and supplies

1

Jumper wires (generic)

1

5 mm LED: Red

1

5 mm LED: Green

1

Breadboard (generic)

1

Arduino UNO

1

5 mm LED: Yellow

Apps and platforms

1

Arduino IDE

Project description

Code

Code

c_cpp

Downloadable files

Circuit Diagram

Hookup Hook the GND pin (Negative Pin) of all led to Pin GND of Arduino. Connect Red LED VCC Pin (Positive Pin) to Pin 9 of Arduino. Connect Yellow LED VCC Pin (Positive Pin) to Pin 8 of Arduino. Connect Green LED VCC Pin (Positive Pin) to Pin 7 of Arduino.

Circuit Diagram

Circuit Diagram

Hookup Hook the GND pin (Negative Pin) of all led to Pin GND of Arduino. Connect Red LED VCC Pin (Positive Pin) to Pin 9 of Arduino. Connect Yellow LED VCC Pin (Positive Pin) to Pin 8 of Arduino. Connect Green LED VCC Pin (Positive Pin) to Pin 7 of Arduino.

Circuit Diagram

Comments

Only logged in users can leave comments

bob-easyeda

4 months ago

Hi, your project is so amazing! Are you interested in OSHWLab Stars :https://oshwlab.com/activities/spark2023 we are offering up to $5000 in coupons for each entry to cover all your fabrication costs.

surya123sai

5 months ago

Timing screen is posaible for this project

krishna_agarwal

5 months ago

Yes it is possible kindly refer to this. https://projecthub.arduino.cc/krishna_agarwal/arduino-traffic-light-signal-with-lcd-counter-display-f7ad02

surya123sai

5 months ago

Timing screen is posaible for this project

krishna_agarwal

5 months ago

Yes it is possible kindly refer to this. https://projecthub.arduino.cc/krishna_agarwal/arduino-traffic-light-signal-with-lcd-counter-display-f7ad02

ionutmcristescu

5 months ago

Nice project for beginners, you can update this project and put a small display thats shows the remaining seconds. Regards!

krishna_agarwal

5 months ago

Thankyou for your feedback. Please refer to this https://projecthub.arduino.cc/krishna_agarwal/arduino-traffic-light-signal-with-lcd-counter-display-f7ad02

505mcu

6 months ago

The positive rail doesnt connect to anything. This wiring diagram is not accurate.

krishna_agarwal

5 months ago

it is just for reference to check if the led is working or not

maxmattijn

10 months ago

its a working project! but my 2/4 light gives very little light?! how??

krishna_agarwal

10 months ago

Please check your resistors and the power supply also the power rating of your LED

0307605701

a year ago

Thanks

krishna_agarwal

a year ago

My Pleasure

krishna_agarwal

a year ago

My Pleasure

codingkid231

a year ago

good project a good beginners starting project i recommend it

krishna_agarwal

a year ago

Thankyou so much for your feedback :)

angelgodness

a year ago

How do I import the code into the board?

krishna_agarwal

a year ago

BY downloading this software https://www.arduino.cc/en/software/

cuppermo

a year ago

Anyways can I get the Names and how you put it all? Thanks!.

krishna_agarwal

a year ago

Thank you for your inquiry. Kindly review the "Components and Supplies" and "Downloadable Files" sections in the table of contents for pertinent information. I sincerely apologize for the delayed response.

cuppermo

a year ago

I have The Exact same thing I have Uno,Board,Led, Thanks for the Directions Keep up the Fabulicous work.

krishna_agarwal

a year ago

Thanks for your feedback it motivates me a lot to make more projects

krishna_agarwal

a year ago

Thanks for your feedback it motivates me a lot to make more projects

idiaz30

a year ago

can we add more led in

krishna_agarwal

a year ago

Sorry for delay in response Yes you can add as much as led you want depending on your board and you need to modify the code if adjoining to other pin

krishna_agarwal

a year ago

Sorry for delay in response Yes you can add as much as led you want depending on your board and you need to modify the code if adjoining to other pin

milespeterson101

a year ago

Why is the LED blue?? 🔵

cuppermo

a year ago

I think its Around the China and in china Instead of green its Blue so i think its That reason it does not Matter Anyway you can use any Color.

krishna_agarwal

a year ago

Sorry for delay in response Actually that time I was short of LED and my main goal was to explain the concept so I added blue led rather than yellow

krishna_agarwal

a year ago

@cuppermo No I am from India and at that time I was not able to get yellow led

krishna_agarwal

a year ago

@cuppermo No I am from India and at that time I was not able to get yellow led

andersenep

a year ago

if you are using standard LEDs (1.8V - 2V), you should probably add some sort of series resistance to drop the remaining ~3V. no sense in burning out your LEDs.

krishna_agarwal

a year ago

That's absolutely true. But this led can hold upto 9V So in this led I dont require that

krishna_agarwal

3 years ago

For any Query/ Comment/ Problem Comment me. Connect me on Youtube http://bitly.ws/pEbt Connect me on Hackster http://bitly.ws/pEby