powering from lithium batteries


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default powering from lithium batteries

    Hello,

    I have an RTC running on a big 12v battery. Although I just tried using two 1.5v 357 type lithium batteries. I thought these would power my DS1337 for over a year. but after less then a day I had only 1.1v left in my batteries... Is there a way to 'hook up' the battery ? I grounded the batteries together but I use a diode on the positive to the RTC because I do not want these batteries to get a 5v charge from the LM 7805 when the main circuit gets turned on.

    Ken

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    I don't completely understand your circuit, but you could put a low-leakage diode and a resistor between the +5V and the lithium battery +.
    When the 5V was present, the resistor could provide all the current the RTC needs. When the 5V wasn't present, the battery would power the chip.
    Charles Linquist

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    You can use two diodes one for the small lithium battery and one for the 5 volt. The small drop on the 5 volts due to the diode will not create any problem to your RCT, but it will avoid that the lithium will discharge via the 5 volts rail. The other will protect your lithium battery from the 5 volts and when the 5 volts will be off it will keep your RCT on.

    Cheers

    Al.
    All progress began with an idea

  4. #4
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    What aratti is proposing with two low forward drop diodes (preferably one of the Schotkky diodes like a BAT42) is commonly called "or'ing the power sources" and is frequently used for battery backup applications similar to what you are doing.
    For example, here is a crude schematic for or'ing a 5v supply with a 3v lithium battery to provide power to a RTC. However, make sure that you don't have any pull-up resistors connected to the 3v supply or it will drain the backup battery even when the 5v is present...something I learned from experience recently ;>) Your RTC normally requires pull-ups on some of its pins....so make sure they are connected to the 5V and not to the 3v....RTC will continue to keep time without the pull-ups when running on the 3v backup.
    5v----------- -|>----
    ..........................|
    ...........................-------------- RTC power supply pin
    ..........................|
    3v lithium ----|>---
    Last edited by jellis00; - 10th November 2011 at 23:23.

  5. #5
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    HI,
    this is exactly what I have (except I used a normal diode), I also added a 220kohm resistor in series with the diode to keep current down. Higher then that for the resistor, the RTC would not keepa good time. The problem I am facing now Is that at the begining I had 3.09volt, its decreasing by 0.01volt everyday, Its been almost four days now and it is at 3.05volt, at this rate the battery wont last more then a few weeks... my casio wrist watch battery lasts about 4 years.... !!! and thats including the display on all that time !!

  6. #6
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    Not sure why you think you need the 220kohm resistor in series with the diode...if the only current load is the RTC it won't draw any more current than it requires and most RTC chips (i.e., DS1337) only require about 150 uamps when active and only about 1.5 uamps when in standby, which is the state you should leave it in before shutting down the 5v supply. At 1.5 uamps a typical 3v lithium (ie, CR2032 which has 165 mAhrs capacity) should last 110,00 hours or 12 years. Even if you leave it in active mode rather than standby it should last about 45 days.

    Make sure no resistors are connected from the 3v connection to any other locations as leakage paths.

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    Standard diodes proably have too high of a reverse leakage current. What I have see as a recommendation is either a schottky diode and a series resistor or two schottky diode in series. At issue is reverse current charging of the primary battery. Litium coin cells do not handle charging very well.
    Tim Barr

  8. #8
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    I have an application wired per my crude schematic above with Schottky BAT42 diodes on each leg which has been running on 5v for many weeks and the lithium CR2032 backup battery is still showing 3.11vdc. So I don't see the need of the resistor in series with the schottky diode or two shottky diodes...doing this just drops the supply voltage to the DS1337 some more by the addition of the voltage drop across the resistor or the additional diode.

    The DS1337 requires pull-up resistors between the I2C pins, the ALARM pins and the 5v source AHEAD of the schottky diode and NOT TO THE 3v SOURCE or the downstream connection to the Vcc of the DS1337. Otherwise a leakage path will exist from the DS1337 pins where the Pull-ups are connected to the MCU, and the MCU (which will sink current even when its 5V Vcc is shut off) will drain the backup battery. This recently happened to me and drained my backup battery in a few days while the 5v supply was shut off. I had to cut traces and re-wire the pull-ups to the correct location to eliminate the leakage path.

    So I recomment to lemeur is to replace your standard diodes with low drop Schottky diodes (like the BAT42) and to double check how you have your pull-up resistors wired. That may be why your backup battery is draining so quickly.
    Last edited by jellis00; - 11th November 2011 at 20:07.

  9. #9
    Join Date
    May 2011
    Location
    Bangalore, India
    Posts
    33


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    In my propeller clock that I designed some years ago, I used Philips 8563 RTC that is known for its very low power consumption. I used neither diodes nor resistors and connected pin 8 of the RTC directly to + terminal of 2032 Lithium battery. The 4.7K pull-up resistors of the RTC are connected to 5V. Since 2032 battery is not meant to be charged, there is no need to connect it to 5V rail. The only device that the Li battery is powering up is the RTC. So, how long the battery lasts is purely dependent on the power consumption of the RTC and the shelf life of the Li battery. In my circuit, even after 4 years, the RTC is working fine.

    I am sure, DS1337 is very similar to Philips 8563 and you can try connecting the battery to the RTC without the diodes and resistors.

    Bala

  10. #10


    Did you find this post helpful? Yes | No

    Default Re: powering from lithium batteries

    Quote Originally Posted by jellis00 View Post
    I have an application wired per my crude schematic above with Schottky BAT42 diodes on each leg which has been running on 5v for many weeks and the lithium CR2032 backup battery is still showing 3.11vdc. So I don't see the need of the resistor in series with the schottky diode or two shottky diodes...doing this just drops the supply voltage to the DS1337 some more by the addition of the voltage drop across the resistor or the additional diode.
    The two diode or diode/resistor was a UL requirement on my design. Lithium coin cells cannot be back charged above a certain current level.
    Tim Barr

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts