Problem:
My issue is that the momentary switch with NAND latching logic that I have designed is not functioning consistently. It does work as intended at first, but then fails to work after repeated testing, never regaining functionality.
Question:
Is there something wrong with the way I have designed my logic that is determining the voltages at the gates of the two different FET's (DISP FET and MAIN FET) in my circuit? Specifically, my choice of R4, R5, and D4? Or is it something else entirely?
Background Info:
- The circuit that I am making is a back-up power bank of lithium ion batteries, and when the momentary switch is pressed ("SW" in the schematic", this provides power from this back-up power bank to the main power bank (through the "BOARD-" terminal shown in the schematic).
- The "SN74" chip is a latching double NAND, part #: SN74LVC2G00DCTR.
- The CHRG IND terminal is NC to ground.
- The diode "D4" is rated 10V, 100mA, part #: 1SS367,H3F
- I designed the latching logic of my circuit based on Fig. 5 from the example on this site.
- The purpose of the DISP FET is to allow the battery capacity display to turn only when there is a charger plugged in, but not turn the rest of the circuit on (the USB ports, switch on the LED, and the power supply from the batteries to "BOARD-")
Testing of the Issue:
I have the lithium ion batteries at 41V, and then my buck converter is outputting a consistent 5V everywhere it is tied to, which I verified with a multimeter. I also did a continuity test across the board, there are no shorts between any of the power rails or ground, or across any of the components.
My tests
- When I first assembled the PCB, it was working exactly as intended. So, I push the main momentary switch of the circuit that provides the functionality and as a result, The USB ports, the LED on the switch itself, the battery capacity display, and the output to "BOARD-" are all on. Then, I leave my circuit for 10 minutes. I come back, push the switch again, and the switch does not turn on. The way that I verified this is that I tested the voltage at the output of the SN74, and it stays at ground, it does not go to 5V as it did when it worked in the first place.
- After this initial failing, I put a scope meter on the gate signal, and sometimes I would see the gate voltage spike to about 560mV, so not enough to turn on. Other times, it would spike all the way to 5V, but not hold the high state, but just go back down to ground. Other times, the switch would turn on without me even pressing it, upon me providing power to the board.
- I swapped the NAND IC for a fresh one, and the circuit would work. But, it would then soon fail again as before. I tried removing the diode "D4", creating an open circuit there, and then the button would work as intended. However, it would then also soon fail afterwards.
- I also tried shorting across the diode, and it seemed that when it was working, the button would turn on, but not turn off. Then, just as before, it would also just not even turn on anymore.
- I tried putting a scope meter on the input of A1, see oscilloscope below for output. The blue line is the voltage at the output, so pin 1Y , going to the gates of the FETs, and the yellow line is the voltage at the input pin 1A. The max voltage of 5.8V at the input pin 1A did not exceed the 6.5V maximum rating of the SN74. The ramp up and ramp down of the yellow line is from me pushing the momentary switch.
- I took the SN74 off, and connected the CD4011B to the circuit using a breadboard and wires. Still, the circuit did not function.
Conclusion:
All these testing results are proving to be inconsistent and I can't seem to figure out what the cause of the issue is. Ultimately, I know that my design did work for 10 minutes, and then the failures started, so that would perhaps be the biggest clue.