Hi guys
This is my situation
ESP-01 (actually essay firmware)
GPIO0 on my PIR sensor (modified to run at 3.3v)
GPIO2 on my door contact.
MQTT Protocol to send the state (0-1) to openHAB
Everything is ok
i want to use the module with batteries so i need to enable deep sleep.
My question is how can i do to wake up the ESP-01 (i can also modify the wiring if the chip to enable the function) every times the door and the Pir change?
i can't valid sketches to help me to solve the question
Wake ESP by GPIO input
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 300
- Joined: 07 Feb 2016, 11:56
Re: Wake ESP by GPIO input
If I understand it correctly, waking from deepsleep is basicly caused by resetting the esp. Gpio16 is connected to rst - when gpio16 pulls rst to ground it "wakes up". In order for the esp to sense a change to any device it must be awake. I think you could, as an example, have the door contact ground the rst pin to wake up the esp and send a msg via rule but then you are limited to 1 sensor per esp. There are applications where battery power and deep sleep just don't work well.
Who is online
Users browsing this forum: opensiteexplorer.org/dotbot [bot], Perplexity.ai [bot] and 8 guests