Power Subboard Walkthrough


Power Subboard v1.1

This board takes in up to three power supplies – USB micro, single-cell LiPo battery, and a coin cell battery – and outputs 3.3V. The supplies are hot-swappable and the ORing circuitry will connect the load to the largest supply automatically. A voltage supervisor and load switch disconnect the LiPo when it reaches 3.5V and reconnects it when the voltage rises to 3.7V. A charging IC allows the USB supply charge the LiPo at 100mA (configurable by resistor). There was no stand-alone v1.0 for this board. Instead, the v1.1 comes from a portion of the Sensor Node board albeit it with a few modifications.

Copies of the board may be ordered on OSHPark and the design files are available on GitHub.

LiPo Undervoltage Protection

LiPo undervoltage protection

A protection circuit is needed to prevent the LiPo cell from damage due to over-discharge. It is implemented by a voltage detector (U2) and a load switch (U3). When the LiPo voltage is above 3.5V, U2’s output floats. Once the voltage drops below 3.5V, however, U2 grounds its VOUT pin. This opens the internal switch of U3 and disconnects the LiPo cell from the rest of the board. U2 has hysteresis and will continue to ground VOUT until the LiPo cell voltage is above about 3.605V – 3.78V (3.675V typical). Note than even when U3 has disconnected the LiPo cell, there will still be a discharge of 0.35mA through R3.

LiPo-USB Switch

Output LiPo or USB voltage

Assuming the undervoltage protection isn’t activated, the LiPo cell voltage will pass through U3 and reach U4 – an automatic battery back-up switch. U4 will output whichever input voltage is higher and indicate which source is being used by the SBAR and PBAR open drain outputs. Since USB power is 5V and higher than a fully-charged LiPo cell, U4 will always switch to USB power when it is present. This allows the LiPo cell to be charged by USB without also having to power a load.

In the first revision there were pullup resistors for SBAR and PBAR. This resulted in a continuous 0.33mA current draw and was not negligible based on the overall power budget. Removing the resistors allows the final application to decide if 0.33mA is acceptable or if a solution based on a microcontroller’s internal pullups or GPIO would be better (see this application note for an example).

LDO and Coin Cell Switch

pwr_sub_ldo_outputAn LDO (U6) is used to step either the LiPo cell or USB voltage down to 3.3V. The NOR gate U5 is used to disable the LDO to save power when neither the USB nor LiPo cell are present. Finally, the LDO output joins with the coin cell at the power switch U7. U7 selects which input to use based on the EN pin and the voltages at the two inputs. By connecting EN to IN1, U7 will use the LDO output when present and otherwise switch to the coin cell. The full truth table is found on page 3 of the datasheet.

LiPo Charge Circuit


A LiPo charge circuit almost straight from the datasheet is present so that the battery may charge when USB is connected. The charge current can be modified by populating a different resistor for R1 (e.g. 500mA with a 2k). The STAT pin is broken out to a external pin so the final application can decide whether it wants to connect an LED or microcontroller GPIO for determining charge status.

  1. Tod said:

    That’s a pretty nice system. I don’t get why you’re using the NOR gate (it avoids power wasting on the TPS77 but it adds quiescent power for the NOR itself). The only serious limitation here is the 30mA max output current for the Vs in the ICL7673. There are many low power application that can exceed that for short pulses.

  2. The quiescent current of the TPS77 is about 16uA and the NOR takes 1uA. Going to standby reduces TPS77 to 1uA so there should be about 15uA of savings on paper. Granted, in the end it might not make as much a difference since the NOR will only disable the TPS77 when both LiPo and USB are not present – in which case the input to TPS77 would be disconnected. I still have some tests to run so it’s possible I’ll remove the NOR in rev 1.2.

    Speaking of rev 1.2, the TPS77 itself might be replaced with a higher dropout and cheaper LDO. Early on there wasn’t the fault protection for the LiPo so I picked an LDO with suitably low dropout voltage. When the LiPo fault protection was added I should have gone back and re-selected the LDO so I wasn’t paying for specs I didn’t need.

    Regarding the current limit, there’s a 470uF cap for the coin cell to address this kind of issue (e.g. CR2032 rated for 0.2mA max). Likewise, if an application needs more than 30mA for a short duration a properly sized capacitor would hopefully be enough.

  3. Tod said:

    Right. Agreed on the first two paragraphs. The 470uF cap is kind of big though. That is obviously the solution to provide current in circumstances where the load needs it. But if the load needs more than 10mA for a little more than a short pulse, the ICL7673 won’t be able to provide it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: