# Adafruit LiIon or LiPoly Charger BFF Add-On for QT Py

## Overview

Yellow: <b>Revision History:

* As of December 12, 2025 - </b>We added two breakout pads for the on/off switch for an external switch if desired. We also updated the PCB with Adafruit Pinguin to make a lovely and legible silkscreen.

![](https://cdn-learn.adafruit.com/assets/assets/000/110/645/medium800thumb/adafruit_products_LiPoBFF_in_use.jpg?1649443573)

[Is your QT Py all alone](https://www.adafruit.com/?q=qt+py&sort=BestMatch), lacking a friend to travel the wide world with? When you were a kid you may have learned about the "buddy" system. Well, this product is kinda like that! A board that will watch your QT Py's back and give it the power and support to wander out past your USB port.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/733/medium800/adafruit_products_5397-16.jpg?1766153105 )

This little lipo charger is designed to fit onto the back of any QT Py board, and make it easy for portable powering. Simply plug any standard 3.7V/4.2V lithium polymer or lithium-ion rechargeable battery into the JST plug on the end. When powered by the USB port on the QT Py, the charger kicks in and will charge up the battery at 200mA max rate. You'll see the yellow LED light up when that happens.

When the USB is removed, the battery will reverse charge into the 5V port via a Schottky diode. You can turn it on or off with the built in slide switch as well.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/734/medium800/adafruit_products_5397-14.jpg?1766153116 )

A simple voltage divider on the _cathode_ side of the diode and connected to pin A2 will let your firmware detect basic modes: if the voltage is over 4.3V, it is probably plugged into USB. If the voltage is 4.2V or below its probably running on the Lipoly battery and you can roughly determine the battery state.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/735/medium800/adafruit_products_5397-13.jpg?1766153129 )

We include some header that you can solder to your QT Py. [You can also pick up an Itsy Bitsy short female header kit to make it removable but compact](https://www.adafruit.com/product/4174), you'll just need to trim down the headers to 7 pins long.

**For use with Adafruit LiPoly/LiIon batteries only! Other batteries may have different voltage, chemistry, polarity, or pinout.**

![](https://cdn-learn.adafruit.com/assets/assets/000/141/737/medium800/adafruit_products_5397-08.jpg?1766153314 )

- Comes as an assembled and tested PCB
- Uses the 5V input via USB Type-C connector on QT Py
- For charging single Lithium Ion/Lithium Polymer 3.7/4.2v batteries (not for older 3.6/4.1v cells)
- 200mA charge current

**[Batteries](http://www.adafruit.com/products/258) and QT Py are not included**.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/738/medium800/old_adafruit_products_LiPoBFF_pinouts.jpg?1766155694 Rev B of the LiPo BFF (no on/off switch breakout pads))

 **Revision History:**

- **As of December 12, 2025 -** &nbsp;We added two breakout pads for the on/off switch for an external switch if desired. We also updated the PCB with Adafruit Pinguin to make a lovely and legible silkscreen.

# Adafruit LiIon or LiPoly Charger BFF Add-On for QT Py

## Pinouts

Yellow: <b>Revision History:

* As of December 12, 2025 - </b>We added two breakout pads for the on/off switch for an external switch if desired. We also updated the PCB with Adafruit Pinguin to make a lovely and legible silkscreen.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/740/medium800/adafruit_products_5397-16.jpg?1766154321 Rev C (with the on/off switch breakout pads))

![](https://cdn-learn.adafruit.com/assets/assets/000/110/646/medium800/adafruit_products_LiPoBFF_pinouts.jpg?1766155683 Rev B (without the on/off switch breakout pads))

This QT Py BFF has a bunch of features packed into a cute little board. This page will explain the hardware!

## Power Slide Switch
The **power**  **slide**  **switch** , located in the middle of the right side of the board, turns the BFF on or off, but _only_ when the QT Py is NOT plugged into USB power.

![adafruit_products_LiPoBFF_power_switch.jpg](https://cdn-learn.adafruit.com/assets/assets/000/110/647/medium640/adafruit_products_LiPoBFF_power_switch.jpg?1649446594)

## Power Switch Breakout Pads
On rev C of the BFF are **power switch breakout pads**. They are located next to the power slide switch and let you wire up an external switch to use instead of the slide switch.

![](https://cdn-learn.adafruit.com/assets/assets/000/141/742/medium640/adafruit_products_breakoutPads.jpg?1766154166)

## Battery JST Connector
The **battery JST connector** , located in the middle of the left side of the board, enables you to plug in any standard 3.7V/4.2V lithium polymer or lithium-ion rechargeable battery to the BFF.

**For use with Adafruit LiPoly/LiIon batteries only! Other batteries may have different voltage, chemistry, polarity, or pinout.**

![adafruit_products_LiPoBFF_battery_connector.jpg](https://cdn-learn.adafruit.com/assets/assets/000/110/648/medium640/adafruit_products_LiPoBFF_battery_connector.jpg?1649446863)

## Charge LED
The **charge LED** , located in the upper left corner of the board, lights up when the battery is charging. Charging occurs only when the QT Py is plugged into USB power.

![adafruit_products_LiPoBFF_charge_LED.jpg](https://cdn-learn.adafruit.com/assets/assets/000/110/649/medium640/adafruit_products_LiPoBFF_charge_LED.jpg?1649447039)

## Battery Monitor Pin and Jumper
 **Pin A2** , located to the left of center along the top edge of the board, is connected to the simple voltage divider, which will let your firmware detect basic modes.

It measure the 5V line which is&nbsp;_after a schottkey diode_.

If the voltage is over 2.0V (4V divided by two due to the divider), it is probably plugged into USB. If the voltage is 1.95V or below, it's probably running on the Lipoly battery and you can roughly determine the battery state.

Just be sure to double the reading to get the voltage reading, as the measurement divider reduces the voltage by 1/2.

![adafruit_products_LiPoBFF_A2_and_jumper.jpg](https://cdn-learn.adafruit.com/assets/assets/000/110/650/medium640/adafruit_products_LiPoBFF_A2_and_jumper.jpg?1649447177)

There are a pair of **jumper pads,** located to the right of center, below the pins along the top edge. These pads are connected to pin A2, between the pin and the voltage divider. In the event that you want to use pin A2 for something other than battery monitoring, you can cut the trace between these pads to disable monitoring on pin A2. Solder the pads back together to enable monitoring again.

## Charge Chip and Voltage Divider
The **MCP73831 lipo charge**  **chip** , located near the center of the board, will charge up the battery at 200mA max rate. Charging occurs only while the QT Py is plugged into USB, and will happen regardless of the status of the slide switch. When the chip is charging a battery, the charge LED will light up.

![adafruit_products_LiPoBFF_voltage_divider_charge_chip.jpg](https://cdn-learn.adafruit.com/assets/assets/000/110/651/medium640/adafruit_products_LiPoBFF_voltage_divider_charge_chip.jpg?1649447539)

The **voltage divider** , located below the A3 pin label on the BFF silk, is connected between A2 and 5V via the cathode side of a diode. It allows for simple monitoring of voltage levels, which can indicate whether the QT Py is running off USB, or being powered by a battery plugged into the BFF.

To obtain the voltage level from A2 using CircuitPython, run the following code.

```python
import time
import board
import analogio

analog_pin = analogio.AnalogIn(board.A2)


def get_voltage(pin):
    return (pin.value / 65535) * 3.3 * 2.0 // voltage divider reduces
                                           // voltage by 1/2 do must
                                           // double to get the voltage
while True:
    print(get_voltage(analog_pin))
    time.sleep(0.1)
```

# Adafruit LiIon or LiPoly Charger BFF Add-On for QT Py

## Downloads

## Files

- [MCP73831 Datasheet](https://cdn-learn.adafruit.com/assets/assets/000/110/654/original/MCP73831-Family-Data-Sheet-DS20001984H.pdf?1649451895)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-Charger-BFF-PCB)
- [Fritzing object in the Adafruit Fritzing Library - rev B](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20LiPoly%20Charger%20BFF%20for%20QT%20Py_rev%20A.fzpz)
- [Fritzing object in the Adafruit Fritzing Library - rev C](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20LiPoly%20Charger%20BFF%20for%20QT%20Py_rev%20C.fzpz)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/5397%20Lipo%20Charger%20BFF)

## Schematic and Fab Print
### Rev C
![](https://cdn-learn.adafruit.com/assets/assets/000/141/744/medium800/adafruit_products_schem.png?1766154648 )

![](https://cdn-learn.adafruit.com/assets/assets/000/141/745/medium800/adafruit_products_fab.png?1766154662 dimensions are in inches)

### Rev B
![](https://cdn-learn.adafruit.com/assets/assets/000/110/652/medium800/adafruit_products_LiPoBFF_sch.png?1649449121)

![](https://cdn-learn.adafruit.com/assets/assets/000/110/653/medium800/adafruit_products_LiPoBFF_fab_print.png?1649449131)

## 3D Model
![](https://cdn-learn.adafruit.com/assets/assets/000/122/481/medium800/adafruit_products_5397_Lipo_Charger_BFF.jpg?1689103211)


## Primary Products

### Adafruit LiIon or LiPoly Charger BFF Add-On for QT Py

[Adafruit LiIon or LiPoly Charger BFF Add-On for QT Py](https://www.adafruit.com/product/5397)
[Is your QT Py all alone](https://www.adafruit.com/?q=qt+py&sort=BestMatch), lacking a friend to travel the wide world with? When you were a kid you may have learned about the "buddy" system, well this product is kinda like that! A board that will watch your QT...

Out of Stock
[Buy Now](https://www.adafruit.com/product/5397)
[Related Guides to the Product](https://learn.adafruit.com/products/5397/guides)

## Featured Products

### Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh

[Lithium Ion Polymer Battery Ideal For Feathers - 3.7V 400mAh](https://www.adafruit.com/product/3898)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of **400mAh** for a total of about 1.9 Wh. If you need a larger (or smaller!)...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3898)
[Related Guides to the Product](https://learn.adafruit.com/products/3898/guides)
### Lithium Ion Polymer Battery - 3.7v 500mAh

[Lithium Ion Polymer Battery - 3.7v 500mAh](https://www.adafruit.com/product/1578)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 500mAh for a total of about 1.9 Wh. If you need a larger (or smaller!) battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/1578)
[Related Guides to the Product](https://learn.adafruit.com/products/1578/guides)
### Lithium Ion Polymer Battery with Short Cable - 3.7V 420mAh

[Lithium Ion Polymer Battery with Short Cable - 3.7V 420mAh](https://www.adafruit.com/product/4236)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 420mAh for a total of about 1.55 Wh. If you need a larger (or smaller!) battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4236)
[Related Guides to the Product](https://learn.adafruit.com/products/4236/guides)
### JST-PH Battery Extension Cable - 500mm

[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

In Stock
[Buy Now](https://www.adafruit.com/product/1131)
[Related Guides to the Product](https://learn.adafruit.com/products/1131/guides)

## Related Guides

- [Cheekmate - a Wireless Haptic Communication System](https://learn.adafruit.com/cheekmate-wireless-haptic-communication.md)
- [Icicle Crown with Pebble Pixels & WLED](https://learn.adafruit.com/icicle-crown-with-pebble-pixels-wled.md)
- [Traffic Light Conference Badge](https://learn.adafruit.com/traffic-light-conference-badge.md)
- [Wireless LED Juggling Balls with ESP-NOW](https://learn.adafruit.com/wireless-juggling-balls-esp-now.md)
- [Video Nub Shank: ESP32 QT Py Composite Video Injector](https://learn.adafruit.com/video-nub-shank-esp32-qt-py-composite-video-injector.md)
- [LED Noodle Lantern](https://learn.adafruit.com/led-noodle-lantern.md)
- [3D Scans for Low Poly Statues](https://learn.adafruit.com/low-poly-3d-scans-for-3d-printing.md)
- [Tiny LED WiFi Companion Cube](https://learn.adafruit.com/tiny-led-wifi-cube.md)
- [NeoPixel Star Crown with WLED](https://learn.adafruit.com/neopixel-star-crown-with-wled.md)
- [Wireless ESP32-S2 Touch Screen Controller for Pure Data](https://learn.adafruit.com/wireless-esp32-s2-controller-for-pure-data.md)
- [Bare E-Ink Displays Crash Course](https://learn.adafruit.com/bare-e-ink-displays-crash-course.md)
- [Adafruit bq25185 USB / DC / Solar Charger with 5V Boost Board](https://learn.adafruit.com/adafruit-bq25185-usb-dc-solar-charger-with-5v-boost-board.md)
- [Tweet-a-watt](https://learn.adafruit.com/tweet-a-watt.md)
- [Adafruit STEMMA Analog SPDT Switch](https://learn.adafruit.com/adafruit-stemma-analog-spdt-switch.md)
- [Adafruit DotStar FeatherWing](https://learn.adafruit.com/adafruit-dotstar-featherwing-adafruit.md)
