Traffic Light

From i3Detroit
Jump to: navigation, search
Traffic Light
Traffic Light ESP.jpg
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


Traffic Light Zone: Infrastructure https://www.i3detroit.org/wi/images/4/4f/Authorization_not_required.svg "/> https://www.i3detroit.org/wiki/Traffic_Light