Wednesday, December 24, 2008

arduino Battery Charger

I was a bit disappointed when I found out my new $150 bike light could not charge itself. Apparently you are supposed to unplug it when it gets warm to the touch, but not to leave it plugged into long because this will ruin the battery! This seemed like a problem for the arduino!

The plan was to use the power from charger itself to power the arduino. This caused a voltage drop of 3 volts, meaning longer charging times. Since I need this daily for my commute, this would not do.

The next version used two power supplies, one for the arduino, one for the charger. This is a bit ugly, but works fine. Both wall warts are plugged into a three way to make it easier to unplug.

The real hurdle was controlling the higher charging voltage with the 3V arduino. The opto-isolator I used initially would not allow enough current to charge the battery. Next was a home-brew isolator that consisted of a photo-resistor and a led taped together. Still not enough current. I finally picked up a 1 A relay from RadioShack. This worked!

The final design uses two LM35 temperature sensors I found on ebay, to compare ambient temperature to the battery temperature. When the temperature delta exceeds 15 degrees F for 10 minutes the charge is considered complete. If at any time the battery temperature exceeds 95 degrees F, power is removed from the battery and no restart occurs.

Here is the schematic and source code. Be sure to wire up the LM35 temperature sensors according to their documentation; if they heat up you have it backwards!

Source Code


Carolyn Turner said...

It might have some flaws. If you can't do anything about it, I believe it's a good idea to consider going to a service center to fix the problem.

-Deep Cycle Marine Battery Providers

Elizabeth J. Neal said...

A quick search on the Internet will turn up a lot of Acer Aspire One (AOA) owners reporting similar problems. Quite often people update the Bios to fix this problem. However there is similar solution. click site

Mr Qie said...

Little Known Way To Bring Nearly ANY Dead Battery Back To Life again..


There’s a new, little known way to bring nearly ANY dead battery back life again…

I’ve already tried it with car, laptop, and phone batteries that were completely dead ...and now ...they're just like new again!

>> Click Here To Watch a Presentation that will show you how this is now possible <<

With this method, you won't have to buy new pricey batteries anymore. You can just recondition your old batteries and save a lot of money.

And this new battery reconditioning method is so simple and quick…

>> Click here to learn how to bring your dead batteries back to life again <<

And this works for car, phone, and laptop batteries!

It even works with batteries you can use in a solar panel system's battery bank (or other alternative energy system’s battery bank). Plus, many other types of batteries!

I don’t t how much longer this presentation will be up though (you learn why in the new presentation)…

So stop what you’re doing and watch the presentation while you still can.

>> Click Here To Watch The Presentation <<

Best Regards,
[Kevin Day]

P.S. Tom also teaches you how to get dead batteries for free, bring them back to life, then sell them for nice profits! Learn how here: >> Click Here To Learn How <<