Chat freely about anything...

User avatar
By spants
#14406
Sprite_tm wrote:Now to clean up the code a bit and do a small-ish writeup on how it works.


Please dont forget about this! I'm trying to build a button and need the poweroff circuit (oh - and an idea on the software!!!).

Love your website btw - lots of amazing stuff!
Tony
User avatar
By Sprite_tm
#14409
spants wrote:
Sprite_tm wrote:Now to clean up the code a bit and do a small-ish writeup on how it works.


Please dont forget about this! I'm trying to build a button and need the poweroff circuit (oh - and an idea on the software!!!).

Love your website btw - lots of amazing stuff!
Tony



I'm not - I just have another article in the queue that I need to finish first. I'm documenting as quickly as I can ;)

The button schematic basically is this: http://j0h.nl/-1QB
The IRLM is the main switch and when the button is pressed, the gate of it will be pulled down through the diode (which is some kind of schottky - I forgot which, but it probably doesn't matter) and gives power to the ESP. The 'power on' line is a GPIO which does have a pull-up that's already enabled in the boot ROM of the ESP - I think it's GPIO2. This will turn on the BSH111, which will keep the power flowing. Because of the diode, when the button is released the BTN input of the ESP will get high as soon as the button is released, which is how I can detect if the button is pressed only once or is kept pressed. I can also detect a new button press to cancel whatever's going on and go back to sleep.
User avatar
By Sprite_tm
#14431
jonsmirl wrote:Maybe something like this for a boost supply to use a Lithium coin cell?
http://www.skyworksinc.com/uploads/docu ... 02050B.pdf

$0.35 at Digikey


I'm not sure if a coin cell would work at all. According to http://www.ti.com/lit/wp/swra349/swra349.pdf , you should expect a max current draw of 30mA or so max from a CR2032.