-->
Page 1 of 1

Esp826-01 to sleep and wake up

PostPosted: Tue Dec 22, 2015 10:05 am
by josephchrzempiec
Hello I'm using the arduino ide to program my esp module. I'm not good at working with coding but I'm trying. The problem I'm having with my esp is that I'm running it on batteries With a PIR sensor right now it's just lighting up a led on Gpio0 pin and PIr sensor is on Gpio2 pin they work but the thing i want to do is put the Esp to sleep because of the batteries and only have it wake up When something goes past the PIR sensor and turn on the led then wake for 10 seconds and put the Esp back into sleep mode. I'm not sure how to put the Esp in what i have seen Deep Sleep Can someone please help me out?


I don't want it to go to sleep and wake up on it's own Just to only wake up when something triggers the PIR sensor. Thank you.

Re: Esp826-01 to sleep and wake up

PostPosted: Tue Dec 22, 2015 10:39 am
by torntrousers
Sounds like this is what you want - PIR sensor - wake and sleep using CH_PD

Re: Esp826-01 to sleep and wake up

PostPosted: Tue Dec 22, 2015 11:00 pm
by josephchrzempiec
Hello torntrousers thank you for the reply back i was looking into it some I don't know much about coding but from what I'm seeing. It's not sleep or power down mode. What i think they are doing is taking the CH_PD pin from high to low in coding that turns off the wifi but the Processor it's self. Is still fully awake and can take some power. Not sure how much because every time i put my meter to it the esp freaks out.

Re: Esp826-01 to sleep and wake up

PostPosted: Wed Dec 23, 2015 5:21 am
by schufti
the ESP8266 knows several "energy saving" modes. The ultimate state is with PD=low, reducing current consumption to ~0.5µA. The next state ist deep sleep with ~10µA and so on. see here: http://bbs.espressif.com/viewtopic.php?t=133