Battery Backup
mctrivia
Posts: 3,772
Does anyone have any idea on what would be required to make a battery backup system for the prop and let the prop know when it is on wall power or battery?
I would like to be able to use a standard 9v or 3v button cell battery to keep my system clock running. All other cogs can be suspended to save power but when the power comes back on I want it to remember the last state it was in and still know the correct time.
I would like to be able to use a standard 9v or 3v button cell battery to keep my system clock running. All other cogs can be suspended to save power but when the power comes back on I want it to remember the last state it was in and still know the correct time.
Comments
http://picnote.blogspot.com/2008/10/battery-backup-for-microcontroller.html
use the following schematic
www.maxim-ic.com/quick_view2.cfm/qv_pk/2688
true but the voltage at the prop would only be 2.3v when on battery using a 3v.
I will have to remember this. Not sure if I can get away with just keeping the clock running but that is a great option.
Post Edited (mctrivia) : 1/18/2009 1:57:56 AM GMT
"that is so sympel and would work great if the propeller was 5v drive" --- So why not drive it at 3.3V
from the diagram that SRLM posted... replace D1 with a resistor to trickle charge a 3.3V battery. Keep D2 but keep your wall supply regulated at about 3.9V
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
"This won't cause any trouble when the battery is fully charged?" ... not if you trickle charge it about 1/10th the normal charging rate.· The old style "over-night" 10-14 hour chargers are what I'm referring to.
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Won't D1 replaced by an R ( large enough for trickle charging ) limit the current for the Prop ?
Would it not be better to keep D1 and add an R from battery +Ve to VDD/+5V/Vin ?
I've used the diode-mixing technique and it works well because it's so simple. I have been told that very long term trickle charging could cause problems for the battery but I'm no expert. One solution would be to use two, remove one and recharge as required externally.
It's a shame the Propeller doesn't have zero-extra component on-chip ADC because that makes it easy to add voltage monitoring for the batteries. IMO that's the only real weak spot in the Propeller design compared to alternatives.
When the battery is at 3.0V, the trickle charge current is limited to about 70mA
When the battery is at 3.7V, the trickle charge current is almost 0mA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Typical Lithium-Poly or LiFePO4's·are 3.7 Volts per cell... just make sure that the regulated voltage is at least 0.3V above your battery.
The problem is, that the Schottky diode will drop the voltage about 0.3V, so If you start out with a 3V battery, you won't have much operating overhead for the Propeller.· A 3.7V battery or more is a better choice.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 1/19/2009 12:50:10 AM GMT