User Tools

Site Tools


projets:fuz:piedthon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projets:fuz:piedthon [2019/12/04 19:26]
lomanic [Hardware] document connections
projets:fuz:piedthon [2020/05/11 00:17] (current)
lomanic [Software] minor typos
Line 27: Line 27:
 Code: https://​git.interhacker.space/​jeanjack/​piedthon Code: https://​git.interhacker.space/​jeanjack/​piedthon
  
-The eps listens to MQTT channel at ''​sonic.fuz.re'',​ described in [[:​infra:​mqtt]].+The ESP listens to an MQTT channel at ''​sonic.fuz.re'',​ described in [[:​infra:​mqtt]].
  
 For testing, using [[https://​github.com/​shirou/​mqttcli|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%%''​ For testing, using [[https://​github.com/​shirou/​mqttcli|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%%''​
  
 ===== Hardware ===== ===== Hardware =====
 +
 +:!: **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…) (Describe pinout here, components…)
  
Line 40: Line 43:
 GND                   GND GND                   GND
 VCC                   3.3V VCC                   3.3V
-IN1                   14 +IN1                   ​14 ​(relay controlling the green light) 
-IN2                   16+IN2                   ​16 ​(relay controlling the red light)
 </​code>​ </​code>​
  
projets/fuz/piedthon.1575483963.txt.gz · Last modified: 2019/12/04 19:26 by lomanic