This item as been lost somehow around october 2023~~
Code: https://git.interhacker.space/jeanjack/piedthon
The ESP listens to an MQTT channel at sonic.fuz.re
, described in mqtt.
For testing, using mqttcli: while :; do for I in {0..3}; do mqttcli pub --host sonic.fuz.re -m "$I" -t piedthon/input; sleep 0.5; done; done
or mosquitto ( package mosquitto-clients sur ubuntu ) : while :; do for I in {0..3}; do mosquitto_pub -h sonic.fuz.re -m "$I" -t piedthon/input; sleep "$J.5"; J="$I";done; done
RISK OF DEATH OR INJURY: always unplug the traffic light from mains when it is opened as the inside is not insulated at all
(Describe pinout here, components…)
Relay module Webduino GND GND VCC 3.3V IN1 14 (relay controlling the green light) IN2 16 (relay controlling the red light)