Hello everybody!
im about to build the power module for my bike computer, but im in dire need for some consultations.
First off;
i will be utilizing a auto-power-off function, as described on the link below.
https://homecircuits.eu/blog/arduino-low-voltage-disconnect-circuit/
The initial ON-duration (while button is pressed) is a concern for me, since im calculating that it might take several seconds to successfully boot the systems and initialize the keep-on pin needed to take over from the button press (to keep the above circuit active).
Im using a arduino as controller with i2c pin expanders (mcp23008) and my aim is to use one of the pins from one of the pin expanders to keep the circuit on.
Currently it takes about 2 seconds from when i connect power to when the led turns and stays on (blinks once at boot?), when connected to the pin extender.
..But i will be adding quite a lot more to the system, witch might (or might not) cause further delays at startup.
So im trying to figure out a way to "sustain" the button press, so a very short tactile button click will be read as looong-press for the hardware.
I dont want to be holding in the ON-button for several seconds to make sure i boot up the system..
There is of course ways to do this, my problem is that i havent even the slightest idea in what direction to look for the solution..
I was considering a capacitor at first, but that means it will only have a "shortclick"-time to charge and from what i understand, they charge/discharge about equally fast..?
This have lead me into thinking i will have to have a charged capacitor that i discharge when the button is pressed, but that kind of defies the idea of a self-disconnecting circuit, that will not draw any current while powered down.
So could anyone please throw in a bright idea?
im about to build the power module for my bike computer, but im in dire need for some consultations.
First off;
i will be utilizing a auto-power-off function, as described on the link below.
https://homecircuits.eu/blog/arduino-low-voltage-disconnect-circuit/
The initial ON-duration (while button is pressed) is a concern for me, since im calculating that it might take several seconds to successfully boot the systems and initialize the keep-on pin needed to take over from the button press (to keep the above circuit active).
Im using a arduino as controller with i2c pin expanders (mcp23008) and my aim is to use one of the pins from one of the pin expanders to keep the circuit on.
Currently it takes about 2 seconds from when i connect power to when the led turns and stays on (blinks once at boot?), when connected to the pin extender.
..But i will be adding quite a lot more to the system, witch might (or might not) cause further delays at startup.
So im trying to figure out a way to "sustain" the button press, so a very short tactile button click will be read as looong-press for the hardware.
I dont want to be holding in the ON-button for several seconds to make sure i boot up the system..
There is of course ways to do this, my problem is that i havent even the slightest idea in what direction to look for the solution..
I was considering a capacitor at first, but that means it will only have a "shortclick"-time to charge and from what i understand, they charge/discharge about equally fast..?
This have lead me into thinking i will have to have a charged capacitor that i discharge when the button is pressed, but that kind of defies the idea of a self-disconnecting circuit, that will not draw any current while powered down.
So could anyone please throw in a bright idea?