-->
Page 1 of 2

Detecting door state

PostPosted: Tue Apr 26, 2016 11:56 am
by Chris Ryan
I was wondering if anyone knows of a way to wake an esp8266 from deep sleep and also determine the state of a reed switch using only a single reed switch. I am able to achieve this using two, one acting as the reset for the esp8266 and another for reading the state.

Re: Detecting door state

PostPosted: Tue Apr 26, 2016 12:54 pm
by danbicks
Chris Ryan wrote:I was wondering if anyone knows of a way to wake an esp8266 from deep sleep and also determine the state of a reed switch using only a single reed switch. I am able to achieve this using two, one acting as the reset for the esp8266 and another for reading the state.


Look at the PIR wake up solution on the forum, just change the PIR to your reed switch, Job done.

Good luck

Dans

Re: Detecting door state

PostPosted: Tue Apr 26, 2016 1:30 pm
by chaeplin
Chris Ryan wrote:I was wondering if anyone knows of a way to wake an esp8266 from deep sleep and also determine the state of a reed switch using only a single reed switch. I am able to achieve this using two, one acting as the reset for the esp8266 and another for reading the state.



For fast wifi connection, check this
https://github.com/chaeplin/esp8266_and ... -deepsleep

or adding attiny85 : http://imgur.com/MooQJV9

Re: Detecting door state

PostPosted: Tue Apr 26, 2016 4:50 pm
by danbicks
chaeplin wrote:
Chris Ryan wrote:I was wondering if anyone knows of a way to wake an esp8266 from deep sleep and also determine the state of a reed switch using only a single reed switch. I am able to achieve this using two, one acting as the reset for the esp8266 and another for reading the state.



For fast wifi connection, check this
https://github.com/chaeplin/esp8266_and ... -deepsleep

or adding attiny85 : http://imgur.com/MooQJV9


@chaeplin what software and hardware are you using to monitor current consumption, excellent graphs produced ?

Dans