Hi All,
I would like to inquire whether there's an alternative to using a toggle switch, such as a latching circuit, or if there's a better approach altogether.
I have a PCB that includes microcontrollers, RF modules, sensors, etc., and is powered by a Li-ion battery. Currently, I'm using a toggle switch to enable or disable the enable signal to my DC-DC step-down converter in the power supply. The purpose of this is to completely switch off the circuit, as opposed to using a tactile switch on a GPIO pin to force the microcontroller into a low-energy mode, like sleep mode. The reason behind this approach is to address the scenario where, if the battery continues to lose power due to not being charged and drops to a very low level, it then needs to enter a recovery mode. In this mode, the battery is charged at a rate of 10mA until it reaches a safe voltage level. However, if the microcontroller tries to power up (e.g., LED flashing, etc.) while it's being supplied with only 10mA, the battery could enter a state where it never recovers, as the 10mA would also be consumed by the circuit.
Therefore, I'm wondering if we could develop a simple latching circuit or something similar that could replace the toggle switch and allow the use of a more economical tactile switch. Perhaps upon powering up, the microcontroller could check the battery voltage using an ADC on the LTC4162-L (as detailed in its datasheet from Analog Devices), although I've never utilized the I2C features before proceeding with operations (like flashing an LED), etc.
I would like to inquire whether there's an alternative to using a toggle switch, such as a latching circuit, or if there's a better approach altogether.
I have a PCB that includes microcontrollers, RF modules, sensors, etc., and is powered by a Li-ion battery. Currently, I'm using a toggle switch to enable or disable the enable signal to my DC-DC step-down converter in the power supply. The purpose of this is to completely switch off the circuit, as opposed to using a tactile switch on a GPIO pin to force the microcontroller into a low-energy mode, like sleep mode. The reason behind this approach is to address the scenario where, if the battery continues to lose power due to not being charged and drops to a very low level, it then needs to enter a recovery mode. In this mode, the battery is charged at a rate of 10mA until it reaches a safe voltage level. However, if the microcontroller tries to power up (e.g., LED flashing, etc.) while it's being supplied with only 10mA, the battery could enter a state where it never recovers, as the 10mA would also be consumed by the circuit.
Therefore, I'm wondering if we could develop a simple latching circuit or something similar that could replace the toggle switch and allow the use of a more economical tactile switch. Perhaps upon powering up, the microcontroller could check the battery voltage using an ADC on the LTC4162-L (as detailed in its datasheet from Analog Devices), although I've never utilized the I2C features before proceeding with operations (like flashing an LED), etc.