ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

A BETTER BATTERY CHARGER


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

A BETTER BATTERY CHARGER

Lessons from the Trenches Part 2: Hardware and Software Implementation
by Thomas Richter

Start ý The Buck Converter ý Voltage Reference and Battery Temperature ý AT90S2333 Battery Charger ý ATtiny15 Battery Charger ý Charge Current ý Software Implementation ý User Settings ý Source Code ý INT Battery Function ý The Stable_ADC Function ý BC.H ý B_DEF.H ý Charge MethodýSLA.C ý Charge MethodýNiCd.C and NiMH.C ý Charge MethodýLilon.C ý Suggested Improvement ý Sources and PDF

USER SETTINGS

The charger is built as a multipurpose charger that can charge four types of batteries and a great number of cells by changing parameters before compiling the code. It is important that these are done properly before compiling to avoid damage to the battery and surroundings.

The following list shows you how the batteries and cells should be changed:

ý To change the battery type, you must include the desired battery files in the compiler before compiling and "uncomment" the battery type under "Battery Type" in B_Def.h. There is a C file and an h file for each battery type.

ý To change the number of cells, change the parameter "cells" in B_Def.h.

ý To change cell capacity, change the parameter "capacity" in B_Def.h.

ý To change the Li-Ion cell voltage, change the parameter "cell_voltage" in B_Def.h.

ý After changing the resistor values, as described previously, the parameters "voltage_step" and "current_step" must be changed in B_Def.h.

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ