1
\$\begingroup\$

I'm building a project using Adafruit Feather HUZZAH ESP8266 and PIR Motion Sensor. I have everything working, but I'm trying to reduce power consumption as I'm running it off of a 3.7v/600mA battery. The suggestion I found online is to put the ESP8266 into deep sleep mode. This works fine, but I would like to wake it up when motion is detected by the motion detector.

The motion detector is powered independently from the battery and when motion is detected, it produces a HIGH voltage (~3.7V). The way to wake ESP8266 up is via the CHPD pin #3. However, when the ESP8266 is asleep it produces a HIGH voltage on that pin and you need to pull it to ground to wake it up. I'm trying to find a trick to translate the HIGH signal coming off of the motion sensor into a LOW voltage for the CHPD pin.

Thank you,

asked Sep 10, 2017 at 23:34
\$\endgroup\$
1
  • 2
    \$\begingroup\$ Sounds like a job for a discrete N-FET implementing an open-drain inverter. \$\endgroup\$ Commented Sep 11, 2017 at 0:21

1 Answer 1

3
\$\begingroup\$

You can simply use an N-MOSFET like suggested in the comment. Connect the MOSFET drain to the wake-up pin of the MCU and the source to the ground. Finally connect the gate of the MOSFET to the motion sensor output signal. Just make sure the MOSFET you chose has a low enough Vth (Vgs voltage at witch the transistor starts to turn on) to make sure it will pull the CHPD low when the motion sensor drive its gate.

answered Sep 11, 2017 at 0:52
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.