wake from deep sleep
Posted: Sat Nov 14, 2020 6:23 pm
My project is to notify me upon open or close of a garage door using a tilt switch on battery power.
I have it working perfectly by waking on tilt connecting the out pin to RST. It goes LOW on tilt.
Problem is it only wakes for one instance; either open or closed not both. My work around is to use 2 different systems in one package. I.E.: 2 D1 minis, 2 tilt sensors, one for open one for closed. Seems a waste of resources.
Is there a way to use one D1 mini and 2 tilt sensors? How to send only Low to pin RST and filter HIGH out.
Could I just tie the 2 outputs together; maybe put diodes in the circuits to block HIGH? One sensor is always going to be HIGH when the other is LOW.
I have it working perfectly by waking on tilt connecting the out pin to RST. It goes LOW on tilt.
Problem is it only wakes for one instance; either open or closed not both. My work around is to use 2 different systems in one package. I.E.: 2 D1 minis, 2 tilt sensors, one for open one for closed. Seems a waste of resources.
Is there a way to use one D1 mini and 2 tilt sensors? How to send only Low to pin RST and filter HIGH out.
Could I just tie the 2 outputs together; maybe put diodes in the circuits to block HIGH? One sensor is always going to be HIGH when the other is LOW.