Stoplight 2

Online Link


The purpose of this guide is to recreate the stoplight built in the previous walkthrough but on an Arduino microcontroller.

Needed Materials

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)
  • Computer
  • Arduino IDE and necessary drivers


I used the following references in the creation of this guide


  1. Setup Arduino environment on local machine according to this
  2. 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:
  3. Plug in Arduino with micro usb connector and follow this template to test connecting to your local Wi-Fi
  4. Once connected follow this guide and this guide to setup a web server.
  5. Initialize the GPIO pins in code and then connect them to the web interface.

Thought Questions

  1. 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.
  2. 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.
  3. How familiar were you with the Arduino platform prior to this lab? I had never touched the Arduino platform before.
  4. What was the biggest challenge you overcame in this lab? The biggest challenge for me was getting the development environment working on my computer.
  5. Please estimate the total time you spent on this lab and report. Lab: 3 hours Report: 1 hour


Posted in IOT

Leave a Reply

Your email address will not be published. Required fields are marked *