A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By noelportugal
#26590 Yes @tytower, sorry for the brevity. I just wanted to give some sort of recognition to @Barnabybear.
In his first post here he gave me the idea to wake up and sleep using CH_PD.

Barnabybear wrote:The PIR could be replaced with a reed switch for doors or a button for checking that a location had been visited.

So I'm using a button instead of the PIR. So far battery life with 2 Alkaline AA is great. I also removed the red LED for good measure.
User avatar
By reddatto
#26601 Oops.

Sorry again guys. That's what I get for posting stuff at 3am.

I get the diode. If the PIR can sink current it will cause the +vcc from the input pin to flow from the high impedance input pin to the low impedance output pin on the sensor.

No need to post either of these unless it will help someone...

LOL, Garth.
User avatar
By DaniloFix
#26973 Very interesting thread. I'm actually looking to build something similar. I want to use a vibration sensor like the SW-18020P to power up the ESP but that won't last 325 ms that seems to be required. See a demonstration of the sensor here: http://www.electroons.com/blog/2013/08/ ... h-testing/

I read a few places that the SW18020P conductive / contact time was 2 ms, so pretty far from the needed 325 ms. So the million dollar question is, how to keep the pin high, long enough to wake up the ESP from power off state?

Perhaps one or more small capacitors in parallel could do the trick? That is, if they can charge fast enough