Build a UPS for USB devices

Portable systems often include circuitry that derives power from an external source, such as USB. When the system disconnects from the USB supply, a battery takes over and supplies current via a dc/dc converter. A diode-OR connection (Figure 1) offers the easiest way to ensure that the supply voltage doesn't sag during this switchover to the battery. The diode's forward voltage drop, however, can reduce battery life and efficiency. The single-cell, boost-converter circuit with external PFET (Figure 2) is an improvement over the diode-OR connection. The PFET, Q1, coupled with IC1's internal gain block, forms a linear regulator. The USB power supply has a diode-OR connection to Q1's source. Setting the boost converter's output to 3.4 V allows the drain of Q1 to regulate to 3.3 V. This configuration produces negligible loss in Q1.

Figure 1.

A diode-OR connection is effective but lossy.

Figure 2.

A boost-converter circuit is an improvement over
the simple diode-OR connection.

The bus-supply voltage available to USB devices ranges from 4.4 to 5.25 V. When you connect the bus, it forward-biases D1 and causes the boost converter to idle. The converter continues to idle as long as its output remains above the 3.4 V regulation point. The bus supply serves the load and activates the current source to charge the battery. Adjusting R1 allows you to set the current-source output to charge the nickel-metal-hydride cells at a level one-tenth the battery's capacity. Disconnecting the circuit from the USB supply causes the boost converter to cease idling and supply current to the load via the battery. Figure 3 shows that the load current suffers no interruption during a switchover from USB to battery.

Figure 3.

These waveforms (bottom trace, load voltage) show that
the load current suffers no interruption during a switchover
from USB to battery.