- Tue Dec 22, 2015 10:05 am
#36965
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.