- This lab is available online at https://github.com/brandonekins/stoplight2
- The write up is also hosted at http://brandonekins.com
The purpose of this guide is to recreate the stoplight built in the previous walkthrough but on an Arduino microcontroller.
The needed materials for this lab are:
- Wemos d1 mini (Arduino board)
- jumper wires
- 1 breadboard
- 1 x red LED
- 1 x yellow LED
- 1 x green LED
- 3 x 220 ohm resistors (RRBLBLBR)
- Arduino IDE and necessary drivers
I used the following references in the creation of this guide
- Setup Arduino environment on local machine according to this
- Wire board similarly to how it was done with the raspberry pi tutorial. Choosing 3 GPIO pins for the 3 lights and the ground pin in order to complete the circuit. Diagram:
- Plug in Arduino with micro usb connector and follow this template to test connecting to your local Wi-Fi
- Once connected follow this guide and this guide to setup a web server.
- Initialize the GPIO pins in code and then connect them to the web interface.
- What are some key differences between developing this lab on a Raspberry Pi, and developing on Arduino? First of all with the Raspberry Pi I was running a Linux operating system where I was able to do the development directly on the board, the Arduino I could not. Second Arduino was in the C language and did not allow for multithreading in the same way the rPi did.
- What are the strengths and tradeoffs of each of these platforms? The Raspberry Pi is great for development and more complicated systems. The Arduino is super cheap and simple so it’s great for remote sensors and simple applications.
- How familiar were you with the Arduino platform prior to this lab? I had never touched the Arduino platform before.
- What was the biggest challenge you overcame in this lab? The biggest challenge for me was getting the development environment working on my computer.
- Please estimate the total time you spent on this lab and report. Lab: 3 hours Report: 1 hour