Reference

This article provides a comprehensive guide on integrating a UPS board with Raspberry Pi 5, detailing communication protocols, power management principles, safety instructions, and hardware installation.

Library

the required scripts are available in the suptronics/x120x repository.

Communication Protocol Description

The UPS board uses I2C (Inter-Integrated Circuit) for communication with the Raspberry Pi 5. The I2C parameters are as follows:

  • SDA Pin: GPIO2 (Pin 3)
  • SCL Pin: GPIO3 (Pin 5)
  • I2C Address: Detected via sudo i2cdetect -y 1 (typically 0x36 for Maxim's fuel-gauge chip)

Principle

The UPS board uses an advanced power management system to monitor the Raspberry Pi 5's power status, switch between power sources (adapter and battery), and charge the battery. It integrates a Maxim fuel-gauge chip to measure battery voltage and percentage via I2C.

Safety Instructions & Warnings

  • It is essential to read and understand these safety instructions and warnings before charging your batteries.
  • Lithium Polymer and Li-ion batteries are volatile. Failure to read and follow the instructions below may result in fire, personal injury, and damage to property if charged or used improperly.
  • Never make a wrong polarity connection when charging or discharging battery packs. Always double-check the polarity of the battery's connector to ensure that "+" is connected to "+" and "-" is connected to "-".
  • Do not mix and use old batteries with new batteries, or batteries with different brand names.
  • Lithium batteries have a limited cycle life. Please replace old batteries with new ones when they reach their service life or when they are two years old, whichever comes first.
  • When charging the Battery Pack, please place the battery in a fireproof container. Do not leave the UPS shield on wood material or carpet unattended.
  • Keep the UPS shield away from children to ensure their safety.

Hardware Installation

Ensure the UPS board is properly attached to the Raspberry Pi 5 via pogo pins. The installation process is illustrated in the following images:


More Documents

For additional documents, refer to the DFROBOT product page: https://www.dfrobot.com/product-2840.html

Was this article helpful?

TOP