https://github.com/makefu/deepsleep-button
esp8266 button with deepsleep and ArduinoOTA for infinite battery life
https://github.com/makefu/deepsleep-button
Last synced: 8 months ago
JSON representation
esp8266 button with deepsleep and ArduinoOTA for infinite battery life
- Host: GitHub
- URL: https://github.com/makefu/deepsleep-button
- Owner: makefu
- License: mit
- Created: 2018-03-16T03:00:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T03:01:42.000Z (over 8 years ago)
- Last Synced: 2024-12-27T16:30:51.302Z (over 1 year ago)
- Language: C++
- Size: 307 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deepsleep button
a button with an LED.
1. connect to wifi (or fallback to softap)
2. enable arduinoOTA
3. do your thing (send http request)
4. deepsleep
# build
## USB-TTL
```
platformio run --target upload --environment esp12e --upload-port /dev/ttyUSB0
```
## OTA
1. connect to wifi
2. check ip in your router
3. reset and wait 5 seconds
4. :
```
platformio run --target upload --environment esp12e --upload-port
```
# wiring
RST -> Button -> GND
GPIO5 -> LED -> GND