Trafficlight: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
(Created page with "{{project |name= Internet of Trafficlights (IoT) |status= beta |author=tiefpunkt |description=A trafficlight connected to the internet |download=[https://gi...")
 
mNo edit summary
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{project
{{ThingInfoBox
|name= Internet of Trafficlights (IoT)
|status      = working
|status= beta
|name       = Internet of Trafficlights (IoT)
|author=[[User:Tiefpunkt|tiefpunkt]]
|image      = Traffic_light.jpg
|description=A trafficlight connected to the internet
|owner      = Tiefpunkt
|download=[https://github.com/munichmakerlab/trafficlight GitHub Repository]
|username    = tiefpunkt
|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
{|-
| [[File:Traffic light pcb front.jpg|center|thumb|The PCB]] || [[File:Traffic light pcb back.jpg|center|thumb|the back of the pcb]]
|}


== Software ==
==Software==  
* Written with Arduino for ESP
*Running [https://esphome.io/ ESP Home]
* Connects to [[MuMaBus]] via MQTT
* On Github: https://github.com/munichmakerlab/trafficlight


=== MQTT Topics ===
== Control ==
All lights can be switched via a 1 or a 0 to the following topics:
Use [[Homeassistant]] to control the lights either directly or via automations


* mumalab/room/trafficlight/red
It's currently tied to the status - closed is red and open is green :)
* mumalab/room/trafficlight/yellow
 
* mumalab/room/trafficlight/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 [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 22:47, 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)