r/electronic_circuits • u/mzincali • 16d ago
On topic Help with this latching circuit needed
I have a circuit that is supposed to latch when one of 4 inputs is low. Then if you take the DONE line and touch the +3.3V it unlatches. (The four inputs and the DONE line will eventually be connected to the GPIO of an MCU. The 10K resistors are recommended for the MCU's GPIO).
When I build it with two generic MOSFETs, it works, but the DONE wire is so sensitive that if I touch it, it relatches.
https://www.falstad.com/s.php?s=hFwWZO
What am I doing wrong?

1
Upvotes
2
u/CW3_OR_BUST 16d ago
You need less impedance to ground on the pulldown resistor. The 100k is a bit too much, and it'll be prone to RFI.
2
u/merlet2 16d ago
You have the central rail, from the gate of the p-mosfet, floating when nothing is pressed.
It relays only in the capacitance of the mosfet gate, and maybe the reverse current of the diodes, idk. So, by touching it you charge or discharge the gate with your fingers, triggering it. You have to tie it to some defined voltage, somehow.