In my project I would like to create low power consumption sensor, that react to external event. I can use ESP-12 and ESP-01 (If this is possible on 01) but they behave in same way I suppose. I use NodeMCU firmware. I would like to set up folowing setups:
ESP12 + PIR sensor
ESP12 + magnetic reed sensor
ESP12 + button
ESP will by powered from battery. Battery will be connected via voltage regulator. My intent is to send ESP to deep sleep for maximal amount of time (71 minutes or so). During those 71 minutes, I would like to wake module up, if event occur.
In that case, I perhaps need to connect RST to GPIO16(time interrupt) and also to output of my sensor. I do not know whether I can connect that RST directly to PIR, reed switch or button.
In case of button, my first intent is to connect button directly to regulated 3.3V source and RST pin, if button is pressed, then 3.3V signal will be send to RST pin and ESP should wake up.
Im little bit worried wheter this can work, since one button press can generate more short signals(physical contact problem) - is that problem for ESP? I think that it can receive many signals in short interval - will it reset MCU after every signal? This can cause many restarts under one second - which I think can damage ESP? If so, is there some circut that can regulate those signals from button to exact one correct signal?
This "multiple signal problem" also applies to PIR and magnetic reed sensor.
I am not sure also whether power regulator is ideal solution? If I connect for instance button or magnetic reed to that regulator, does that consume energy also if button/magn contact is disconnected?
Thank you and please ask if something is unclear.