Arduino Traffic Light Tutorial

preview_player
Показать описание
The Arduino traffic light is a fun little project that you can build in under an hour. Here's how to build your own using an Arduino, and how to change the circuit for an advanced variation.

Рекомендации по теме
Комментарии
Автор

thanks man you really are a life saver I am going to have an exam in my embedded class at 8:30 and watch this video at 7:00 I've got a lot from this. Now my exam will be well done!

Beni-cb
Автор

I remember doing this in primary school in 1985 on a C64 computer with some external device attached.I had to add up the binary values to have the lights switched on/off. I had it how you've got with 2 lights immediately swapping but the teacher got me to modify it so both lights were red before either set proceeded to green. Loved it - just wish I knew what that gadget was called?

wag-on
Автор

8:10 when i compile changeLights()" on line 22 gives an error 'expected ')' before ';' token'. does anyone knows how to fix this?

reinsaris
Автор

nice video. for the dual traffic light as done so far, a simple wiring G1 with R2 ; O1 with O2 ; R1 with G2. the ports can still handle the current I guess.

hadireg
Автор

You said 10 kohm resistor at 6:07 but the color band in the picture diagram show only 1 kohm resistor (brown, black, red)... 10 k ohm resistor should be brown, black, yellow

galileibicasiamcyruzstev
Автор

here I am it is me: ) Thanks for creating video about me :)

IOTmug
Автор

You can make a counter feom 1 to 4, one up every 5 seconds for example. Then say that green is on when counter is 1, yellow is on when counter is 2 or 4 and red is on when counter is 3.

onnio
Автор

how can i add another 4 led to make traffic signal?

guruprasadkulkarni
Автор

I don;t know but it is not working with switch

brotherandsisterA.K
Автор

red and yellow not turning on on sametime

AviationMaker
Автор

i remember doing this back in year 7 <33

flowerdefknows
Автор

yellow and red turn on before the green turns on

christiancasasos
Автор

Could we extend the time duration of light

funasfriend
Автор

my red and green come up at d same time how do i fix dis

habibsaliu
Автор

I followed your video & your written version. The Traffic Lights worked, until I installed the button & modified the sketch. Getting an Error Message


"Error compiling for board Arduino Nano". I'm using a Arduino Nano. Any thoughts? Please

dane
Автор

I just bought a real traffic light. As in a full size real stoplight. Could code like this be used to control the lights so that it doea more than just display all the lights on all the time?

AnthonyGoodley
Автор

Nice Video, but do you know how to make a junction with four traffic lights. I have suceed with two lights but i don't know how to make with four.

ahmedkahie
Автор

how does the arduino board know to start with only the green pin at high and then all other pins low for 15s???

louisferreira
Автор

why use 6 resistor 220 when u just use 4 resistor in the video

alifsaifuddin
Автор

I manage to write the code for the two traffic lights and a single button to control them, took me a while to sort the code out though...

BrianJennings-er