Skip to content

Code for controlling an IKEA decorative traffic light over a network using MQTT, an ESP3266 running NodeMCU, and AC relay boards.

Notifications You must be signed in to change notification settings

EchoLynx/traffic-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traffic-light

Code for controlling an IKEA decorative traffic light (discontinued) over a network using MQTT, an ESP8266 running NodeMCU, and AC relay boards.

Necessary Hardware

  • A Linux computer with bash, mosquitto, and python3. (flasher may work on Windows, but that was not tested)
  • IKEA decorative traffic light (discontinued)
  • An ESP8266
  • A wifi network
  • Three AC relay boards controllable with 3.3V TTL
  • Small 5V DC power supply that runs on 120V AC

Quickstart

  1. Wire the AC relay boards inline with each light, connecting the control pins to the ESP8266.
  2. Connect the ESP8266 and relay boards to the power supply.
  3. Use the flasher to flash the included NodeMCU build to an ESP8266.
  4. Update init.lua with your wifi network credentials and load init.lua onto the ESP8266.
  5. Start mosquitto on your computer.
  6. Run the bash scripts and watch the traffic light blink!
  7. Modify the bash script as necessary.

About

Code for controlling an IKEA decorative traffic light over a network using MQTT, an ESP3266 running NodeMCU, and AC relay boards.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published