Iain
Published © MIT

React and Johnny-Five Traffic Lights

A small JavaScript project for controlling and animating a set of LEDs that act like Traffic Lights via a Microcontroller.

BeginnerProtip1 hour7,809
React and Johnny-Five Traffic Lights

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LED (generic)
LED (generic)
Preferably, one red LED, one yellow LED, and one green LED.
×3
Resistor 330 ohm
Resistor 330 ohm
220 Ohm Resistors also work fine!
×3
Jumper wires (generic)
Jumper wires (generic)
×8

Software apps and online services

Johnny-Five
Johnny-Five
React
React is what we're using for our app's interface.

Story

Read more

Schematics

Traffic Lights Circuit

A very simple setup — wire up a red LED, a yellow LED, and a green LED. Be sure to remember a 220 Ohm resistor for each light!

Code

Github

https://github.com/IainIsCreative/react-johnny-five-traffic-lights

Credits

Iain

Iain

5 projects • 71 followers
Hello! I'm Iain, a digital creator. I like making projects with code, art, and robots. Follow me for awesome projects and fun tidbits!

Comments