I'm attempting to make a soft latching circuit for my project. The goal is to have a 2 second press to turn power on and off. I've found many circuits online that use a quick press on and a long press to turn off but my main issue is that I want a long press to turn power on to prevent accidental presses draining the battery when in transport. I should also mention that I'm using JLCPCB to assemble the board so I am limited to components in their SMT assembly library.
Below is my current schematic. I'm not sure that I've got this laid out properly or not. I'm hoping someone could double check my work and answer a few questions/concerns. The basic layout is that the board is powered by a single cell lipo. The IC's in the schematic are connected directly to the lipo. The idea is that the first RC circuit will produce a delay of 2.2 seconds when the switch is pressed and then turn on the flip flop which will activate the boost converter which will produce 5V to run the AVR chip and the rest of the project. I'm only showing the switch and boost converter in the schematic below however.
The first RC timer (R5 & C3) should produce a delay of 2.2 seconds by my calculations, which would produce the desired long press to turn it on and off.
I want to avoid the board being activated when the user plugs into power to charge the battery. My understanding is that the CLR pin of the flip fop needs to be brought low or 0 so that the user will have to press the button to turn it on. I'm confused about how long the second RC timer on the CLR pin needs to be (R6 & C13), right now its set at 100 milliseconds with 100k*100nF. What should be the delay amount for this RC timer so that it produces the desired result?
My other concern is whether or not I've made the connections to the boost converter IC correctly. The FP6291LR-G1 has an enable pin and my understanding is I can use the Q output of the flip flop to drive this high or low turning the boost converter IC on or off. Thus the Vcc of the IC is connected to the 3.3V line directly. Is this set up correct?
Any help or feedback is very much appreciated, thank you for your time.