-->
Page 7 of 7

Re: ESP-01 + PIR sensor

PostPosted: Wed Apr 15, 2015 8:26 pm
by to1140
Anyone tried using PIR to wake up ESP? Which pin did you use to do that? Thanks.

Re: ESP-01 + PIR sensor

PostPosted: Wed Apr 15, 2015 11:00 pm
by trackerj
to1140 wrote:Anyone tried using PIR to wake up ESP? Which pin did you use to do that? Thanks.


RST

Re: ESP-01 + PIR sensor

PostPosted: Mon Mar 20, 2017 2:05 am
by Shivarama
currently i am also working on the same project as u did back then ....so can you lease provide me the code of esp+pir sensor...please it can help me a lot...

Re: ESP-01 + PIR sensor

PostPosted: Mon Mar 20, 2017 10:10 am
by GeoNomad
I have made a pile of PIR triggered ESP8266 boards for various purposes and they are all done the same way.

The code is the same as my button, which simply pings a server when the board is turned on. It could go straight to IFTTT if desired.

The PIR is like this one from Amazon or from eBay, that will turn on any device 5V-24V up to 5A, so can easily connect a USB wallwart to a 5V powered ESP8266 board. They stay on about 30 seconds, which is plenty to make a connection.

Image

That way, there is no need to use interrupts or have any fancy code on the ESP8266 and no power is being used except that needed for the PIR.

It has been ultra-reliable.

One has been operating for 2 years at my 96 year old mother-in-law's house, and tells us when she is in the kitchen so we know every day that she is up and active. She lives alone. I should write up that project one of these days as it is super simple and reliable.

Peter