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.
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?