An Adafruit Huzzah ESP8266-based pushbutton for OctoPrint
Push a big red button (BRB), pause running print job in OctoPrint. A low-power, portable BRB as a panic switch to quickly pause a job without having to open a browser, connect to the OctoPrint web application and then press that virtual button.
- Adafruit HUZZAH ESP8266 Breakout $9.95
- LITHIUM ION POLYMER BATTERY - 3.7V 150MAH $3.95
- Velleman VMA321 Lithium Battery Charging Board for Arduino, Quantity two - $4.15
- Philmore Push Button Red Game Switch $5.19
- FTDI Serial TTL-232 USB Cable $17.95
- A spare two-wire header connector with red/black or white/black wires @ 3" or longer
- Soldering iron, solder, flux and a small breadboard to temporarily hold the project
In order to program the ESP8266, it will be necessary to solder a six-pin section of the included header to the short end and a small four-pin header beginning on the GND/BAT+ long end. This should make it over to GPIO 13, the config pin for this project.
When running, only the smaller header is in use with two pins going to the Velleman VMA321 charging board. The leads from the battery are soldered to this charging board as well. Make sure to get the polarity correct: connectors marked with "+" are the powered side.
I'll write up these instructions soon. They're a bit involved and I'll need to do some screencaps to make this easy.
More documentation on Instructables.
- GET Requests
- Trigger Action
- Monitor Battery
- Power Saving
- Reconfigurable
Inspired by Bitluni's Lab. This is a tiny dashbutton. That connects to IFTTT, and saves battery. The code has been extended to make it easy to use and universally configurable without the need for re-programming. Just flash the .bin
file from the releases page and the SPIFFS data, enter configuration mode, set it up and you are ready to go.
When the button is pushed a GET request is made to a webpage.
Depending on the webpage, many different actions can be triggered by the button. I suggest hooking it up to the IFTTT Maker WebHooks.
When a request is made, if the setting is set, the button will also pass on the battery voltage with your web request. This way you can monitor the battery's charge. The server will recieve:
yoururl.com/yourrequest/?VCC_Param.=VCC_Voltage
To keep the button down to a small size, a small battery needs to be used. To maintain a decent battery life, the ESP is almost always in deep-sleep mode. Pressing the button resets the ESP. The ESP reboots, makes a GET request and goes back to deep-sleep.
You dont need to take apart your button to re-program the url or action. If you connect GPIO_13
to GND
during startup the button will enter configuration mode. Then you can
- Connect to 'BRB-IFTTT' WiFi Access Point, with the password '123987654'
- Visit http://192.168.4.1 to open the configuration page
- After setting your values, click on the 'Save' button then the 'Restart'
Description | Version | Author (Fork) | Last Update |
---|---|---|---|
IFTTT-Dash-Button | v1.0.1 | OutsourcedGuru | July 12, 2018 |
Donate | Cryptocurrency | |
---|---|---|
Ethereum | Bitcoin |