Connect with us

9V bat. backup for 5V circuit

Discussion in 'General Electronics Discussion' started by aj2004, Dec 17, 2013.

Scroll to continue with content
  1. aj2004

    aj2004

    2
    0
    Dec 17, 2013
    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
     
  2. duke37

    duke37

    5,364
    772
    Jan 9, 2011
    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.
     
  3. aj2004

    aj2004

    2
    0
    Dec 17, 2013
    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
     

    Attached Files:

  4. gorgon

    gorgon

    603
    24
    Jun 6, 2011
    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.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-