Close

Testing revision R1

A project log for IoT UPS

Small UPS with fix 3V3/1A output and adjustable 1.3 to 12V output, Li-Ion charger and protection

christoph-tackChristoph Tack 05/01/2020 at 15:470 Comments

Over voltage protection section

The peak voltage over D1 is 9.2V, this would destroy U2.  To prevent this, an extra over voltage protection using U5 as voltage detection element and Q2 and Q5 as switching elements.

Q2 and Q5 switch off when the input voltage rises higher than 5.28V.

Applying 24VDC causes D1 to conduct, which trips the fuse FU1.  This is ok.

To check if the circuit around Q2, Q5 works well, a voltage of 6.5V has been applied.  This is low enough to prevent D1 from conducting, but high enough to turn of Q5.

Blue = voltage on C5. Red = voltage on gates of Q2 and Q5.  Notice that the red signal has a -100mV offset (I forgot to restore scope settings to default).

There's clearly something wrong with this design.  Low voltage turn-on is quick due to U5 that starts conducting, but turn off of Q2 and Q5 is too slow.  This results in the voltage on C5 rising above the designated 5.28V.

Decreasing R3 will speed up the discharge, but this design is inherently flawed.  Turning of Q2 and Q5 should be lightning fast to prevent damage to U6.

Solving the problem

Small rearrangement solves the problem
The input voltage is 6V.  As the threshold of 5.3V is reached, the gate voltage of Q2 and Q5 rises fast, which turns them off quickly.  As a result the voltage on C5 doesn't rise above the 5.3V.
Blue = voltage on gates of Q2 and Q5, Red = voltage on C5

Charging section

Charge current is set to KISET / RISET = 540 / 1K = 540mA.

The Li-Ion cells I used were at the end of their lifespan, but they Initial constant current charging happens at 430mA.

The red LED is on during charging.  After the charging process is completed, the LED turns off;


Lithium Ion protection section

After insertion of a Lithium Ion battery, briefly connect it to the charger.  This is needed to take the protection-IC out of Power-Down mode.

Although I ordered the AP9101CAK6-ANTRG1 from Digikey, the auto-wake-up functionality, designated by the A, doesn't work.  After battery insertion, charger connection is needed.

Over voltage

In case of over voltages, the CO-pin will go low.  Remark that this doesn't fully disconnect the battery from the load.  Discharging the battery is still possible.  A load connected to the battery will still be able to draw current from the battery.  The current will flow through the channel of the FET controlled by the DO-pin.  This FET is still conducting.  The current then follows its path through the body diode of the other FET, which is off.

This is a useful feature, as it allows the battery to return to a safer state.

In case of over voltage (most likely to be caused by over charging), when CO-pin is low, charging is no longer possible.

Under voltage

In case of an under-voltage-event, the DO-pin will go low.

Over charge current

todo

Over discharge current

The circuitry has been connected to an electronic load.  Using the DMG9926UDM-7, the maximum current was 1.35A.  This is mainly because the AP9101Cxxx-ANTRG1 has a VDOC of only 60mV.  Replacing the battery protection IC by the BV-variant, would increase the maximum discharge current to 2.25A.


3V3 buck regulator

Efficiency measurement

An electronic load has been used as load on the 3V3.  The board was powered using the thin wires from the JST-XH leads.

Efficiency for powering the buck with 3.7V (Li-Ion) or 5V (USB) and two parallel inductors in the SMPS.

Efficiency for powering the buck with 3.7V (Li-Ion) or 5V (USB) and three parallel inductors in the SMPS.

Remark that if we had used an LDO instead of this buck regulator, we would have had 90% efficiency (theoretical maximum) for 3.7V input and only 66% efficiency (theoretical maximum) for 5.0V input.

Ripple measurement

For that we apply a 500mA load and power the board with 5V.

Measuring ripple voltage with a differential probe, unfiltered. C1=100nF

It seems like there's a considerable amount of ripple.  Let's see if we can do better.

Measuring ripple voltage with a differential probe, unfiltered. C1=10µF

Discussions