Traffic Light
Traffic Light | |
---|---|
Name | Traffic Light |
Zone | Infrastructure
|
Owner | i3Detroit |
Make Model | Traffic control technologies plastic light with LED mod and nodemcu controller |
Part Number | n/a |
Date Acquired | 2014-02 |
Storage Location | Hanging over the fab lab door |
Authorization Required | No |
Status | Running |
Value | $200 |
IP Address | 10.13.107.56 |
MAC Address | 18:FE:34:FA:3C:8E |
Hostname | commons-traffic-light |
Documentation | https://github.com/i3detroit/Sonoff-Tasmota/blob/i3/sonoff/sonoff_template.h |
Other References |
Intro
Can be used to describe the state of the space, has not been decided what it means yet. Controller added September 08 2017
Rules
Anyone is allowed to develop code to talk to this.
Instructions
Send commands via MQTT to control, view responses to get the state. Alternatively there is a web server hosted on this IP that will let you control the relays
tele/i3/inside/commons/traffic-light/STATE
Maintenance Info
8p8c pinout:
1 - Orange/White - ground
2 - Orange - ?
3 - Green/White - NC
4 - Blue - +12vdc
5 - Blue/White - green light (active high)
6 - Green - NC
7 - Brown/White - yellow light (active high)
8 - Brown - red light (active high)
Module GPIO pinout
0 - Button (internal, on nodemcu v1.0)
1 - Serial RXD and Optional sensor
2 - Optional sensor
3 - Serial TXD and Optional sensor
4 - Relay 3 (1 = Off, 0 = On)
5 - Relay 2 (1 = Off, 0 = On)
6 - Flash
7 - Flash
8 - Flash
9 - Flash
10 - Flash
11 - Flash
12 - Relay 1 (1 = Off, 0 = On)
13 - Optional sensor
14 - DHT22
15 - Relay 4 (1 = Off, 0 = On)
16 - Blue Led (0 = On, 1 = Off)
ADC - NC
To setup after programming:
mosquitto_pub -t 'cmnd/i3/inside/commons/traffic-light/GPIO14' -m '3'
FAQ
ToDo
make PWM capable