I'm trying to redesign this flip-flop circuit on the picture so I can use it to store one bit of memory. This circuit on the picture is operated with pushbuttons, but I want to operate it via a ESP8266 digital pis.
I will use the circuit to save the state of a PIR sensor which I will read later with an ESP8266 (ESP is in deepsleep to conserve energy).
Circuit initially has a low state (0) and should change to a high state if it recives a 3.3 V signal from the PIR.
There should also be an option to set it to a low state (erase data) via a signal from an ESP8266 pin.
I know this can be done with a 555 timer, but I'm looking for a NPN transistor version since I have a supply of BC547 transistors.
The circuit will allways be powered with 5 V or 3.3 V so memory loss is not a problem.
Updates from comments:
ESP is in deep-sleep and turns on every hour just to check if PIR was activated.
ESP deep sleep power consumption is acceptable for me.
Waking up ESP on hardware interrupt will happen too often since it will turn on every time PIR is triggered.
I'm using HC SR501 PIR sensor.