-->
Page 5 of 7

Re: ESP-01 + PIR sensor

PostPosted: Sat Mar 28, 2015 1:56 pm
by terenceang
Ok, thanks.. interesting, I will try that..

On the new SDK, you can put the ESP into deep sleep (everything off except RTC) then boot it up with a signal from pin. I have yet to test it as I am trying to get the REST client working., there might be a solution for you there.

Re: ESP-01 + PIR sensor

PostPosted: Sat Mar 28, 2015 2:20 pm
by Mikejstb
I've got some temperature sensors where I do deep sleep, wake up ever 30 minutes and lot to mqtt.
Works great, I think the Lipo battery is going to last for months.

I haven't had much luck waking the ESP up via the PIR to reset, but I haven't tried doing it for a while.

Re: ESP-01 + PIR sensor

PostPosted: Sat Mar 28, 2015 6:02 pm
by Mikejstb
Well I made an interim fix while I hopefully figure out the 5 minute mystery.
I just set an additional timer to send a message of "keep alive" every 3 minutes.
So far it's been running for over an hour so I think it's doing what I need.
I use Node Red to process my mqtt stuff so it's easy enough to either log or ignore the keep alive messages.

I've been playing with the brand new ESP Arduino IDE, trying to decide whether to move everything over to that environment.
It looks like it's less prone to memory problems than Lua.

Re: ESP-01 + PIR sensor

PostPosted: Sat Mar 28, 2015 11:37 pm
by terenceang
won't send the keep alive packet triggers the PIR?