React and Johnny-Five Traffic Lights
The circuit is very simple for this — it consists of 3 LEDs (red, yellow, and green) to act like a set of traffic lights.
- Arduino Uno (any Arduino would do, actually)
- Breadboard (Prefereably one with side rails for the power)
- 3 LEDs (1 red, 1 yellow, 1 green)
- 3 220Ohm Resistors
- 8 coloured jumper cables (5 black jumper cables for ground connection)
The diagram is pretty simple — connect up each LED to pins 11, 10, and 9, respectively, along with the 220Ohm resistors for each LED. Remember to attach the Ground so the circuit can work! All in all, the circuit is very simple to put together.
You can use NPM or Yarn to install and use the application, though I recommend yarn, it's pretty good for dependency management.
You can do
to download all the app's dependencies.
There are various commands you can use to work the app, from building, to development, to testing. Again, you can use Yarn or NPM to run the app.
— Start the app Server (note: run
— Build the app for a production environment
— Start the app server under the development environment
— Runs the Webpack development server for the client-side React app
— Build the Application styles (uses PostCSS)
— Runs ESlint and Flow to check the code for issues.
Iain is a developer, designer, and artist with Asperger's Syndrome who makes things and has a fascination with all things creative. He likes to experiment with code, boards, and digital art.