Wake ESP by GPIO input

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
technotools
Normal user
Posts: 11
Joined: 10 Oct 2016, 00:45

Wake ESP by GPIO input

#1 Post by technotools » 18 Nov 2016, 17:21

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

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: Wake ESP by GPIO input

#2 Post by Drum » 20 Nov 2016, 07:24

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: Anthropic Claude Bot [bot] and 5 guests