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

CHARGE CURRENT

The charge current is measured by sensing the voltage over a 0.025-ohm shunt resistor. This voltage is amplified 20 times using the internal gain stage to improve the accuracy of the measurement before it is fed into the A/D converter.

The ADC input voltage output voltage is:

[16]

where VIbat is the analog input voltage to the A/D converter, Ishunt is the current through the 0.25-ohm shunt resistor, Ra and Rb are the resistors used to scale down the voltage on the shunt resistor with the same scale as the voltage measurement, Ra is equal to R9, and Rb is equal to R17.

The maximum current that can be measured is:

[17]

This gives a resolution of:

[18]

The step number for a given current can now be calculated from:

[19]

The current from a certain step number is:

[20]

 

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