3
\$\begingroup\$

I've put together a ESP8266 based board which I want to deep sleep until a PIR sensor senses someone nearby. I put together some logic gates which should allow me to control whether or not the PIR sensor is enabled or not. PIR sensor is a SR602 which goes HIGH for 2.5 seconds once it senses someone.

Circuit diagram

The idea is the ESP pin should stay high while the ESP8266 isn't in sleep which should mean that the output to RST is always HIGH, then I turn the ESP pin to LOW in sleep so the PIR sensor can start-up the ESP again when it goes HIGH.

I did a simulation and it worked as I expected but on the board it seems that the inverter isn't inverting (tested with a multi-meter 3.3v in comes out as 3.3v, GND in GND out). No matter what I do with the ESP pin the PIR constantly triggers a reset.

Can anyone see where I went wrong here?

Edit: close up of the inverter closeup

\$\endgroup\$
11
  • 2
    \$\begingroup\$ Maybe a problem with 2A input being undefined. \$\endgroup\$
    – Andy aka
    Oct 28, 2020 at 14:58
  • \$\begingroup\$ Sure you installed the correct parts? \$\endgroup\$
    – Justin
    Oct 28, 2020 at 15:00
  • \$\begingroup\$ ..and haven't fried them yet \$\endgroup\$
    – Eugene Sh.
    Oct 28, 2020 at 15:01
  • \$\begingroup\$ Possibly fried but i was pretty careful because they are tiny. defiantly the right parts. I assumed 2A didn't need to be defined as it was unused. \$\endgroup\$
    – nukeem
    Oct 28, 2020 at 15:03
  • 2
    \$\begingroup\$ Can confirm, grounding the unused pin has caused the inverter to work properly. Thanks a lot! \$\endgroup\$
    – nukeem
    Oct 28, 2020 at 17:18

1 Answer 1

1
\$\begingroup\$

Connect the 2A pin to VCC or GND. When you leave a CMOS input open, not only will you get a much higher power consumption, but the corresponding output might oscillate in an uncontrolled way, which can affect the other logic in the device.

The datasheet of the inverter says:

All unused inputs of the device must be held at VCC or GND to ensure proper device operation. Refer to the TI application report, Implications of Slow or Floating CMOS Inputs, literature number SCBA004.

Also see [FAQ] How does a slow or floating input affect a CMOS device?

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.