Trafficlight: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
No edit summary
(reworked to be up to date)
 
Line 1: Line 1:
{{outdated|type=member project|moretext=The traffic light is using a [[Multiswitch]] and LEDs were retrofit.}}
{{ThingInfoBox
{{project
|status      = working
|name= Internet of Trafficlights (IoT)
|name       = Internet of Trafficlights (IoT)
|status= beta
|image      = Traffic_light.jpg
|author=[[User:Tiefpunkt|tiefpunkt]]
|owner      = Tiefpunkt
|description=A trafficlight connected to the internet
|username    = tiefpunkt
|download=[https://github.com/munichmakerlab/trafficlight GitHub Repository]
|description = A trafficlight connected to the internet
}}
}}
We have a traffic light in the space that can be controlled via the internet.
We have a traffic light in the space that can be controlled via the internet.


== Hardware ==
==Hardware==
* Trafficlight
* Trafficlight
* 3 12V motorcycle lamps (2x25W)
*3 5V LED Lamps (voltage uncertain)
* 8-channel relais board
*4-channel relais board
* nodeMCU (ESP-12) WiFi microcontroller
* [https://newbiely.com/tutorials/esp8266/esp8266-pinout esp8266]
* PC powersupply
*Barreljack Power Supply (the small white thing in the top of the Photo)
* A PC fan to put some load on the PSU even if all lights are off (otherwise it would just shut off)
*The [[Multiswitch]] board
* Circuit: [[Media:WiFi_Ampel_MuMaLab.pdf|WiFi_Ampel_MuMaLab.pdf]]
[[File:Traffic light pcb front.jpg|center|thumb|The PCB]]
[[File:WiFi_Ampel_MuMaLab_Foto_klein.jpg]]
[[File:Traffic light pcb back.jpg|center|thumb|the back of the pcb]]


==Software==
*Running [https://esphome.io/ ESP Home]


== Software ==
== Control ==
* Written with Arduino for ESP
Use [[Homeassistant]] to control the lights either directly or via automations
* Connects to [[MuMaBus]] via MQTT
* On Github: https://github.com/munichmakerlab/trafficlight


=== MQTT Topics ===
It's currently tied to the status - closed is red and open is green :)
All lights can be switched via a 1 or a 0 to the following topics:


* mumalab/room/trafficlight/red
ESP Home also provides a webinterface which is currently reachable at http://10.10.10.253/ (that's a DHCP IP so it will possibly change soon => TODO: Fix IP Address)
* mumalab/room/trafficlight/yellow
 
* mumalab/room/trafficlight/green
== Pinout ==
You can find the pinout for the ESP [https://newbiely.com/tutorials/esp8266/esp8266-pinout here].
 
 
name: red
 
pin: GPIO5 (D1)
 
 
name: yellow
 
pin: GPIO4 (D2)
 
 
name: green
 
pin: GPIO14 (D5)


[[Category:Project]]
[[Category:Project]]

Latest revision as of 03:14, 24 November 2024

   
Internet of Trafficlights (IoT)

Status: working [box doku]

Traffic light.jpg
Description A trafficlight connected to the internet
Owner  Tiefpunkt (tiefpunkt)

We have a traffic light in the space that can be controlled via the internet.

Hardware

  • Trafficlight
  • 3 5V LED Lamps (voltage uncertain)
  • 4-channel relais board
  • esp8266
  • Barreljack Power Supply (the small white thing in the top of the Photo)
  • The Multiswitch board
The PCB
the back of the pcb

Software

Control

Use Homeassistant to control the lights either directly or via automations

It's currently tied to the status - closed is red and open is green :)

ESP Home also provides a webinterface which is currently reachable at http://10.10.10.253/ (that's a DHCP IP so it will possibly change soon => TODO: Fix IP Address)

Pinout

You can find the pinout for the ESP here.


name: red

pin: GPIO5 (D1)


name: yellow

pin: GPIO4 (D2)


name: green

pin: GPIO14 (D5)