User Tools

Site Tools


projets:fuz:presence_button

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
projets:fuz:presence_button [2020-10-11 21:18] – [Current status] update all of this with current state and architecture Lomanicprojets:fuz:presence_button [2021-02-04 18:35] – [Hardware] mention revolving light Lomanic
Line 8: Line 8:
  
 ===== Hardware ===== ===== Hardware =====
-  * some glorious esp8266 in a Sonoff S20 power plug (NodeMCU v0.9 for development)+  * some glorious esp8266 in a [[https://sonoff.tech/product/wifi-smart-plugs/s20|Sonoff S20 power plug]] (NodeMCU v0.9 for development) 
 +  * something to turn on/off that may get attendants attention, that they would want to turn off. We chose a revolving light that we already had, an off-the-shelf lamp (like [[https://www.amazon.fr/Eurolite-060090-Police-Lumi%C3%A8re-Rouge/dp/B000TGOGRS/|this one]]) which plugs to main via the Sonoff 
  
 To flash a Sonoff S20, solder the pins on the left of the push button, connect your USB-to-Serial convertor (RobotDyn CH340G in this case) to the headers like in the image below (from top to bottom, GND, TX, RX, 3.3v VCC), push Sonoff button while plugging in your USB-to-Serial convertor in your PC and then release the push button after a few seconds (check out [[https://medium.com/@jeffreyroshan/flashing-a-custom-firmware-to-sonoff-wifi-switch-with-arduino-ide-402e5a2f77b|this link]] and [[http://blinkingled.cc/update-firmware-of-smart-switch-sonoff-s20/|that one]]). Don't forget about the SPIFFS setting in Arduino IDE as we are using it to store custom settings via WifiManager (see step 6 below). To flash a Sonoff S20, solder the pins on the left of the push button, connect your USB-to-Serial convertor (RobotDyn CH340G in this case) to the headers like in the image below (from top to bottom, GND, TX, RX, 3.3v VCC), push Sonoff button while plugging in your USB-to-Serial convertor in your PC and then release the push button after a few seconds (check out [[https://medium.com/@jeffreyroshan/flashing-a-custom-firmware-to-sonoff-wifi-switch-with-arduino-ide-402e5a2f77b|this link]] and [[http://blinkingled.cc/update-firmware-of-smart-switch-sonoff-s20/|that one]]). Don't forget about the SPIFFS setting in Arduino IDE as we are using it to store custom settings via WifiManager (see step 6 below).
Line 24: Line 25:
 ===== Software ===== ===== Software =====
  
-See [[https://github.com/Lomanic/presence-button|Lomanic/presence-button]] on Github.+See [[https://github.com/Lomanic/presence-button|Lomanic/presence-button]] on Github ([[https://git.interhacker.space/Lomanic/presence-button|sourcecode mirror]]).
  
-See [[https://glitch.com/edit/#!/presence-button|presence-button project]] on glitch.com for the remote server part ([[https://git.interhacker.space/Lomanic/presence-button-web|sourcecode mirror]]).+See [[https://github.com/Lomanic/presence-button-web|Lomanic/presence-button-web]] on Github for the remote server part ([[https://git.interhacker.space/Lomanic/presence-button-web|sourcecode mirror]]).
 ===== Roadmap ===== ===== Roadmap =====
   - make the LED blink (GPIO 13 is the green LED, **not 12** as it's the relay and blue LED)   - make the LED blink (GPIO 13 is the green LED, **not 12** as it's the relay and blue LED)
Line 67: Line 68:
  
 ===== Resources ===== ===== Resources =====
 +==== Sonoff ====
  
   * https://blog.thesen.eu/itead-sonoff-switch-und-s20-steckdose-programmieren-esp8266/ GPIOs of Sonoff S20   * https://blog.thesen.eu/itead-sonoff-switch-und-s20-steckdose-programmieren-esp8266/ GPIOs of Sonoff S20
Line 77: Line 79:
   * https://www.letscontrolit.com/forum/viewtopic.php?t=3263#p17124 GPIO15 physical location on Sonoff S20 PCB   * https://www.letscontrolit.com/forum/viewtopic.php?t=3263#p17124 GPIO15 physical location on Sonoff S20 PCB
   * http://blog.zener.free.fr/index.php?post/2018/10/07/ESPEasy-et-le-Sonoff-S26 (french) how to flash Sonoff S26   * http://blog.zener.free.fr/index.php?post/2018/10/07/ESPEasy-et-le-Sonoff-S26 (french) how to flash Sonoff S26
 +
 +==== Misc ====
 +
 +  * https://wiki.das-labor.org/w/Status-Bot this German hackerpace has its own presence button, really similar design
 +  * https://www.iot-experiments.com/esp32-warning-light/ An old school warning light connected to an MQTT server thanks to an ESP32. Uses veroboard, a 12v warning light, an ESP32 (or an ESP8266), a IRF3205 MOSFET and 2N2222 NPN to drive the light+motor. Pretty cool build.
  
  
projets/fuz/presence_button.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1