I have a device that is powered by 4 AA (4x1.5V=6V) batteries, but I want to power it with a 12V battery. The device measures its input voltage to determine the battery level. I only need to know if the battery is low.
The question is: what is the best way halve the battery voltage so I can use it to power the device, without losing the possibility for the device to measure the battery level (e.g., when using an LDO, the output voltage must follow the input voltage)? In my case, "best" means:
- Using THT & easy to source components (I am just a hobbyist and would like to avoid soldering SMD parts).
- Minimal impact on battery life (low Iq).
The maximum input voltage is 9V (a higher voltage will damage the device). The device uses 50mA when active and 10uA when in sleep mode (99.9% of the time). I am able to reprogram the device (i.e., change the input voltage level software setpoint at which the device thinks the battery is low). I am only able to modify the software, not the hardware (the device is sealed in epoxy, but luckily still has its programming pins exposed).
Options I considered:
- Use a voltage divider. However, this will waste a lot power.
- Use an LDO with an adjustable output voltage. However, usually, the LDO Vadj pin is connected to the LDO output and a resistor to set the voltage (forming a feedback loop), not to an external reference voltage. But maybe there is a way to fool the LDO so it takes the input voltage into consideration?
- Use a voltage tracking LDO, like TPS7B4256. But I haven't found a similar device in a THT package.
This question seems not very exotic; I can imagine that many people have solved this already but I haven't found any answers on the forum, Google/, etc. I hope some of you can point me in the right direction!