Automatic battery backup
ihmech
Posts: 179
I am working on a BS2 project for my dog.· Its just something fun for me·to do and do some more learing since I'm still very much a novice, but when I get it done, I look forward to posting in in completed projects.· I have been playing around with the BS2 for about·1 1/2yrs and just started·trying a propeller chip and this will me my first pratical thing I've done with a micro.· What I am trying to figure out is the best way to make a battery backup system.· What I need it to do is....It will work on main power from an ac adapter and during a power out automaticly switch to battery power until main power is restored.· I am going to be controlling a water valve in this project and if the power goes out, I want it to be able to check for main power loss and shut off the water valve if needed and go on standby until main power is restored.· I really don't want my kitchen flooded!· If anyone has any ideas or schematics I would greatly appriciate it!!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·"If you build it, they will come."
This info is most likely TMI but its good none of the less..
A neat little trick I found out with old Iron core Xfmrs is the Open circuit voltage is often a good amount higher then he rated voltage on a UN REGULATED wall wart .
If you set/ pick the wart to put our at OCV at or sightly above ".2V " the ending charge profile voltage it will in effect self regulate the VOLTAGE part of a "dumb charge " cycle to a certain extent ..
mind if you have a 4 A wall wart with a 5AH 12V SLA you could very easly cook the SLA !!
My personal Rule O thumb is if the batt is below 20 AH or so I make shure the wart can never go above a C/30 to C/20 charge rate .
Above 20 AH I use C/15 to C/10 max rate .
EG for a 9.6 RC pack I use a 7.5 V rated wall wart with a OCV of around 10.2 V . this is just about right .
its worked for years with no real harm to the pack VS real charger ..
BUT be carfull with any kind of " dumb charger" at high C rates !
I use a hollow cinder bock as a containment system for my packs in my room ..
Peter KG6LSE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Carpe Ducktum" "seize the tape!!"
peterthethinker.com/tesla/Venom/Venom.html
Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway. —Tanenbaum, Andrew S.
LOL
··································································220 ohms
·················································+ .............^^^^^^........|·········
·································································10k ohms······· ·|<<<<<< ____ Pin out goes Basic Stamp I/O pin
················································ - .............^^^^^^.........|
················································ ^
Transformer····························· Optic Sensor······················· rectifier·························· Cap······························ Basic Stamp Input Power pin
·················· .....>>>> |<<<....···················· ........>>>>>················ + .........>>>>>>······· <<<<<<<............
·················· .....>>>> |<<<....····················· ........>>>>>·················-·.........>>>>>>······· <<<<<<<............
Wall Ward··· Optc·Sensor········ dieode
··············· + .......................^^^|^^^.............>>>>>>>>>> To Basic Stamp power input pin
Have a optic sensor on your main power in and have as an INPUT to the Basic Stamp pin
Have your code written that unless there an output from the Optic sensor it goes to a doing look at input pin routine
something like this
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Now wanting to learn Spin· Thanks for any··that you may have and all of your time finding them
·
·
·
·
Sam
Post Edited (sam_sam_sam) : 5/1/2010 3:55:12 PM GMT
Also, you'll probably want to use a valve that closes when no power is applied, otherwise your just delaying the inevitable. Eg. the Basic Stamp closes the valve when power is lost, then 3 hours later the Basic Stamp's battery dies and the valve opens again.
You'll also wanna have a manual open/close switch, in case the circuit malfunctions.
One last thing- most small rechargable batteries- AA, AAA, 9v, ect. are Ni-Cad or NI-MH batteries- and trickle charging them will·greatly reduce their life and capacity. Because of this, you need a gel cell.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never give up,·Never submit to the seemingly invincible enemy.
JS-KB3RBR
Post Edited (Junk_Bot) : 5/3/2010 9:28:46 PM GMT
Post Edited (ihmech) : 5/22/2010 3:03:07 AM GMT