Print the Button to switch your favorite hue lights or scenes, homematic scenes or whatelse you can imagine to do with one click esp-01.
After pressing the Button the esp resets and executes the code ( logging into wlan, searching for bridge, sending data). After that the esp goes into deepsleep again and wait for the next reset. The deep sleep mode don't need much energy so you can use the Button for a long time without changing batteries ( I hope so ;) )
I use it for my lights to switch a good morning scene (lights, coffeemachine) and for some all off buttons.
How it works: https://youtu.be/y_RpBIn9FNE
Instruction Video: https://youtu.be/lTulQg_Kpwo
Electronics: https://youtu.be/mddqEOMAVew
BOM:
print all the parts
buy the electronics
2x 10k resistor
1x 3mm LED (+resistor for the LED) in my case 150Ohm
1x perfboard 6*19 dots
2x battery holders (AAA)
2x 4 pin connectors
1x micro push button (long)
1x M4 nut and screw
2x 5mm Neodym magnets
double sided tape
maybe some small springs
1x esp-01
Electronics:
wire the Electronic
on the picture:
1- 10k resistor
2 - 150Ohm
left side the esp-01 bottom view (means VCC is in upper left corner, GND in lower right)
the hole on the left is for a M4 screw
see picture
Battery saving hint:
some ESP-01 boards have a working red power LED.
"Note: Some batches of this module ship with LED Current limiting resistors of the wrong value (47Ohm vs 4.7KOhm). This usually results in the power LED vanishing in a puff of smoke. "
http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family#esp-01
For our project that fact is good cause we save some power ;)
If the red LED is not destroyed on your board ... destroy it. The LED is also glowing in deep sleep mode so it's draining our battery. I powered mine then I saw where the red LED is located and used a plier to destroy it.
see picture.
you can use the .ino file from my thingiverse link as a start
https://www.thingiverse.com/thing:2122239
some examples for hue lights are in.
From start to action the button needs about 5 secs
maybe you can reduce the time by using static ip adresses
The author hasn't provided the model origin yet.