datasheets.com EBN.com EDN.com EETimes.com Embedded.com PlanetAnalog.com TechOnline.com  
Events
UBM Tech
UBM Tech

Design Article

Implementing battery charger using Li-ion

Pushek Madaan and Rajiv Badiger, Cypress

6/26/2012 9:01 AM EDT

Page 3
The switching topology uses its natural advantage of lower power consumption to achieve higher charging currents. Charger based on switching buck regulator is shown in figure 4.


Figure 4: Switching buck regulator topology

The charging current is set by the duty cycle of the PWM driving the MOSFET.

Battery parameter measurement circuit: Feedback signals need to be measured using an ADC, a peripheral available in most modern day microcontrollers. In Figures 3 and 4, we saw how the battery voltage and current feedback is taken. However, these are differential signals that require a differential ADC for the measurement while typically single-ended ADCs are available in microcontrollers. The circuit shown in Figures 4 and 5 can be easily modified to produce a single-ended signal for all three parameters – voltage, current and temperature – by making the microcontroller ground and supply ground different.


Figure 5: Measurement using single ended ADC


The battery negative terminal is made as the microcontroller ground. This makes voltage, temperature, and current feedback referenced to the microcontroller ground and allows for single-ended ADC measurement. For current feedback, a positive offset voltage needs to be introduced, as the feedback voltage will be negative when the battery is being charged. As shown in Figure 5, resistor R3 and R4 provide the required offset voltage.

Charging algorithm: This action closes the loop. The CPU reads the ADC readings for battery voltage, charging current, and temperature and controls the PWM duty cycle according to the charging profile. The rate at which the CPU monitors the ADC results and controls the PWM depends upon the trade-off between loop response time and CPU bandwidth consumption.

ADC parameters and PWM resolution: ADC resolution and accuracy and PWM resolution are important parameters which should be considered while designing battery chargers. ADC resolution defines how precisely the input voltage can be measured (in this case, feedback voltages). PWM resolution defines how precisely you can change the duty cycle of the output signal, which in turn determines the output voltage of current control circuit. While charging Li-Ion batteries, the battery voltage needs to be accurately and precisely controlled. This is much more important when the battery voltage is near full charge. This controllability depends upon ADC resolution, accuracy in measurement, and granularity in duty cycle variation.

As an example, the charger architecture shown in Figure 5 has been implemented in a CY8C24x23 PSoC device from Cypress Semiconductors. The microcontroller is equipped with generic digital and analog blocks that can be configured to specific circuit functions. For example, continuous time analog blocks can be used to implement the programmable gain amplifier and comparator. Switched capacitor analog blocks have a wide variety of uses, including filters, digital to analog converters (DAC), and analog to digital converters (DAC). Digital basic blocks can be used to implement the PWM, counters, timers, and buffers while digital communication blocks are used to implement communication interfaces such as SPI, UART, IrDA RX and TX. The device also provides I2C block which can function as master or slave.

Next: Page 4




GREAT-Terry

6/26/2012 11:58 AM EDT

Good article!

Sign in to Reply



Sanjib.Acharya

6/26/2012 12:37 PM EDT

Unless a sophisticated charging circuit is needed, using a PSoC would be an overkill. In general standard charging ICs will need a lot less design efforts.
But some time, the user might need to know the health life of the battery, how many charging cycles took place etc. In that case this will be helpful.

Sign in to Reply



Hughston

7/9/2012 12:09 PM EDT

I don't think they mean to use the PSoC strictly for this function, but as a part of the overall PSoC system function. The battery health can be judged by a gas gage IC. They generate pulses proportional to the current versus time of the charge. Use it with a processor and you can make decisions about battery life.

Sign in to Reply



Mark Moulding

6/28/2012 3:11 PM EDT

Another possibility for being able to use a single-ended ADC in this system would be to simply put a small-value resistor in series with the negative terminal of the battery pack, before its ground connection. This way the microcontroller system and the power supply can share the same ground. There is a small efficiency cost, but this can be mitigated by using a very small-value resistor, (for example, a 0.1 ohm resistor at 100mA would drop 10mV, at a power cost of only 1 mW).

Sign in to Reply



WKetel

7/4/2012 1:12 PM EDT

Now a question about simplification of the process: would a current limited constant voltage charge work as well? It would not be as fast, it may take overnight to recharge completely, but it would certainly be simpler. Most importantly, would it damage the cells to start out with a current limited constant voltage charge? Or is it a situation that must have the higher voltage at the beginning?

Sign in to Reply



Hughston

7/9/2012 12:00 PM EDT

Sometimes a regulator with a current limiting resistor on the input side is used as a cheap coin cell charger. The precharge time is very short, under a minute, on a Li-Ion battery. I think if the resistor was on the output side, it would be hard to top off the battery. You can use a simple 2 transistor circuit to up the current when the cell voltage goes up.

Sign in to Reply



anne-francoise.pele

7/16/2012 11:25 AM EDT

In Part One of this two-part article, Cypress describes different types of rechargeable batteries, their differences and how to select a battery technology for a specific application.

The article is available here: http://www.eetimes.com/design/smart-energy-design/4375627/Battery--The-source-of-a-device---Part-1?Ecosystem=smart-energy-design

Sign in to Reply



cgul

9/27/2012 2:39 PM EDT

Implementing battery charger using Li-ion.
I have used Linear Technologies battery chargers for Li-Ion and Li-Poly. They work great. Using digital pots in place of fixed resistors for the charging voltage and charging current. These of course controlled with a micro-controller. life doesn't get any better than that. The micro allows for charging algorithms to suit different battery chemistry's and provides for status flexibility. It doesn't get any simpler than that. Piece of cake.

Sign in to Reply



Please sign in to post comment

Navigate to related information

Datasheets.com Parts Search

185 million searchable parts
(please enter a part number or hit search to begin)