Why?
I wanted to play with nodeMCU during weekend, but I had no buttons for reset / flash and I found shorting pins with a piece of wire very annoying. There were pieces of wires cutted from resistors (used for RESET pullup and GPIO15 pulldown) on the table infront of me... Why not use them to make very simple buttons?
How?
This is exactly the case when picture is better than thousand words - 3 pictures = 3000 words? :-)
Idea is simple - metal case of the ESP is grounded, piece of wire is making "a button". In default positions wire shoud be just above the metal case, but not touching it. When you press the wire, it simply touches the ESP's metal case and pin become LOW. If you release it, it stops touching the metal case and pin become HIGH again :-)
Links
- MQTT LED light controller in Buger's foto gallery - this hack was used in this project for the first time
Like my blog? Want to buy me coffee or beer?
LTC (litecoin): LeWzkcV2ArRv7Bi7TmrTpwkp6j2CZSLwfY
BTC (bitcoin): 1LzmUcwHK5Ys4zGPRoxYodjzpJsWiG61JY
DOGE (dogecoin): DQmS6EdDXssriDgSBpQMxYicHTiji6kMhx
ETH (ethereum): 0x387ff39c66e71c454ce5844c188c1a87835d2263
USDT (tether@ETH): 0xa69cae5a1da5ff5fb226e4bc87fe5d0f8c45908a
MANA (decentraland): 0xa69cae5a1da5ff5fb226e4bc87fe5d0f8c45908a
XMR (monero): 4JUdGzvrMFDWrUUwY3toJATSeNwjn54LkCnKBPRzDuhzi5vSepHfUckJNxRL2gjkNrSqtCoRUrEDAgRwsQvVCjZbRxBb8sEWJB1SCCuUEa