DFR1095 LattePanda Sigma UPS Wiki - DFRobot

Introduction

The LattePanda Sigma UPS is a UPS expansion board specifically designed for the LattePanda Sigma. It utilizes 4 x 18650 lithium-ion batteries as the power storage solution and supports external power supply via Type-C PD and a 5.5mm DC interface. In the event of a power outage, the four 18650 batteries can directly power the LattePanda Sigma without the need for additional boost or buck conversion steps, thus minimizing energy loss, with a battery life of up to 8 hours[^1].

With the HID-UPS protocol, the LattePanda Sigma UPS can be recognized by the operating system as a battery device, enabling automatic power management features such as entering sleep mode and automatic shutdown, similar to the built-in batteries of laptops. The HID-UPS protocol is implemented in Arduino and is fully open-source. Users can set a charging voltage limit to extend battery life or edit custom algorithms for more precise battery balancing.

[^1]: The data was obtained from testing with 4 x 3.7V 3400mA-h 18650 Li-ion batteries and LattePanda Sigma.

Precautions

Technical Specifications

Hardware Introduction

Hardware Introduction

User Instructions

Preparation

Arduino Library Installation Tutorial

Hardware Installation

  1. Turn off the UPS power switch

  2. Remove the protective film from the heatsink and attach the heatsink on the MOSFET.

  3. Install the 18650 lithium battery into the UPS, pay attention to the positive and negative direction.
    install battery and heatsink

  4. Mounting the UPS to the Sigma Metal Base Plate with Copper Posts
    install screw

  5. Installing LattePanda Simga on top of the UPS
    install Sigma

  6. Connecting the power and signal cables
    install cable 1
    install cable 2

  7. After checking that everything is in place, plug in the power supply and turn on the power switch.
    finish installation

After installing the UPS, please use the USB-C or DC 5.5x2.1mm connector on the UPS to power the LattePanda. Powering the LattePanda through its own interface will prevent you from using the UPS feature.

Software Installation

  1. Please make sure you have already installed the Arduino IDE, HIDPowerDevice library, and LPUPS library.

  2. Launch the Arduino IDE, open the UPS program: "File -> Examples -> DFRobot_LPUPS -> fourBatteriesLPUPS"

  3. Select the corresponding development board model: "Tools -> Board -> Arduino Leonardo"

  4. Select the corresponding development board port: "Tools -> Port -> COM*" (Select the port marked with Arduino Leonardo)

  5. Upload the example program, and after a short wait, you can see that the battery has been recognized in the system. If you need to further set the threshold battery level for automatic power-saving and forced sleep on your LattePanda Sigma, you can adjust it in the Windows Advanced power Settings.

LattePanda UPS in Windows system

Adjusting Charge Limit

Keeping lithium batteries at a full charge of 4.2V for extended periods can lead to rapid wear due to high self-discharge currents. If high battery capacity is not a priority, you can set a maximum charging voltage in the Arduino program to extend battery life.

  1. Launch the Arduino IDE and open “File -> Examples -> DFRobot_LPUPS -> fourBatteriesLPUPS.”
  2. Locate the following section of code:
  // maxChargeVoltage = 15600;
  // LPUPS.setMaxChargeVoltage(maxChargeVoltage);
  1. Uncomment the code, and modify maxChargeVoltage to your desired value.
    maxChargeVoltage is measured in mV; for example, if you set it to 15600, it means the maximum charging voltage is 15.6V, and the voltage of a single cell is 15.6V÷4=3.9V.

  2. Re-upload the Arduino program. Charging will automatically stop when the total voltage of the battery pack reaches 15.6V to extend the battery life.

The allowable range of maxChargeVoltage is 14800 ~ 16800, any setting beyond the range will not take effect.

FAQ

More Documents

🛒Get LattePanda Sigma UPS from DFRobot Store or DFRobot Distributor.