-->
Page 1 of 1

Wake up from deepsleep and need know from which sensor.

PostPosted: Wed Jan 09, 2019 12:51 pm
by Watole ESP
Hello, i just started with esp8266.
I want to wake up the esp8266 from deepsleep with one of two reed sensors. Each of them can do that and within the sketch i want to find out which one it was. It could happen that the sensor is already back to the initial state when the esp has startet and connected. I can not find a solution for that. My first thought was to connect it to rst and an gpio, but as i wrote it can happen that the sensor is already back to start when the esp started.
Anybody an idea or some hints how to solve it ?
Thank you !
BR

Re: Wake up from deepsleep and need know from which sensor.

PostPosted: Wed Jan 09, 2019 4:27 pm
by schufti
no, not possible without external components.
if repeat rate is > t startup: then maybe use monostable (4538)
else: use attiny to monitor reed-switch.

Re: Wake up from deepsleep and need know from which sensor.

PostPosted: Thu Jan 10, 2019 4:32 am
by firstenquiryseo1
Yes, Exactly it is not possible without using other external components!

Re: Wake up from deepsleep and need know from which sensor.

PostPosted: Wed Jan 16, 2019 10:48 am
by Watole ESP
Thanks for the answers and sorry for the long time it took to say thank you !