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 [2020-10-12 21:39] – [Software] replace links to discontinued glitch.com 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)
  
 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 24:
 ===== 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)
projets/fuz/presence_button.txt · Last modified: 2023-02-02 22:06 by 127.0.0.1