Maker Pro
Maker Pro

9V bat. backup for 5V circuit

aj2004

Dec 17, 2013
2
Joined
Dec 17, 2013
Messages
2
I've built a binary clock circuit that runs off of 5VDC from a USB connection (computer/wall adapter). The LEDs are all common cathode to 0V. I've wired it so the 5V from the USB switches an NPN transistor on to allow the LEDs to sink to 0V. That 5V then goes through a diode to the clock part of the circuit.

Then I've got a battery (preferably 9V for smaller physical size) going through another diode (to prevent any possible attempt of charging the alkaline) and again to the clock part of the circuit. The idea being that when plugged in, the LEDs will be lit (200mA or so) but when unplugged, the LEDs will be cut off, with the rest of the circuit continuing to keep the correct time.

My problem is that I would like to have it so when plugged in, there will not be any current drawn from the battery (or maybe a few uA). I've tried a 5V regulator, but that needs power to function even with little or no load. I've tried ~47kR of resistance between the battery and circuit, though that draws a little current still when the 5V is plugged in.

So, in short, is there a way to cut-off that leakage current from the battery (to preserve its life) when this 5V is present? Maybe with the use of a PNP transistor? I don't have a relay or I'd use that. I have this feeling that there's some simple way of doing this but I can't get it right. The circuit can operate 3-15V. I can make up a schematic if my explanation isn't clear enough.

Thanks
 

duke37

Jan 9, 2011
5,364
Joined
Jan 9, 2011
Messages
5,364
A schematic of what you suggest would be helpful.

A regulator should not take much current. I have not looked up the specification of the LM317 but the control current is so small that I neglect it. A 7805 will need a few mA in the control connection so this is not for you.
 

aj2004

Dec 17, 2013
2
Joined
Dec 17, 2013
Messages
2
Here's a schematic.

I do in fact have a 7805 regulator on hand, so I may go get a LM317 instead. I just wanted to know if there was a really simple way of doing the circuit that I was missing. With ~47kR of resistance from the battery, the circuit draws ~0.5uA when unplugged and ~0.2uA while 5V USB is supplied. So, the battery would still last a while as-is, but I guess I'm a perfectionist :S

PS: those 17x LEDs are the outputs/indicators from the clock circuit
 

Attachments

  • binary_clock.png
    binary_clock.png
    6.7 KB · Views: 157

gorgon

Jun 6, 2011
603
Joined
Jun 6, 2011
Messages
603
As long as the lower voltage (5V) is the master there will always be a load on the 9V battery.
To change that you need to use a MOSFET switch to turn on the battery feed when the 5V is going Down.
 
Top