Skip to main content

PiSugar3 Series

PiSugar3 is the third generation of PiSugar, making Raspberry Pi a portable device. With an standalone MCU, PiSugar3 supports more powerful features.

PiSugar 3 Plus PiSugar 3

Hardware SPECS

  • PowerIC: Standalone MCU
  • RTC: DS3231, stimulated by MCU
  • Type-C: charging port, with E-mark support
  • MicroUSB: charging port (Only for PiSugar3 Plus)
  • PH2.0 Battery Plug (Only for PiSugar3 Plus)
  • Tap Power Button
  • Programmable Tap Button
  • Extension Interface: I2C interface, 5V output

Electrical Specifications

Electrical SpecificationsPiSugar 3 PlusPiSugar 3
Input5V-3Amax5V-3Amax
Output5V-3Amax5V-2.5Amax
Battery capacity5000mah1200mah
Communication interface0x57/0x68 address0x57/0x68 address
Size of PCB65mmX56mm65mmX30mm

Support Raspberry Pi Models

Raspberry Pi ModelSupportRecommend PiSugar Version
Raspberry Pi ZeroYesPiSugar 3
Raspberry Pi Zero WYesPiSugar 3
Raspberry Pi Zero 2YesPiSugar 3
Raspberry Pi Zero 2 WYesPiSugar 3
Raspberry Pi 2YesPiSugar 3 Plus
Raspberry Pi 3AYesPiSugar 3 Plus
Raspberry Pi 3BYesPiSugar 3 Plus
Raspberry Pi 3B+YesPiSugar 3 Plus
Raspberry Pi 4BYesPiSugar 3 Plus
Raspberry Pi 5BYesPiSugar 3 Plus

How To Mount

PiSugar3 Plus:

PiSugar3:

Mounting Steps

  • Make sure the PiSugar3 (Plus) is powered off.
  • Remove the protective film on the screw nuts of the PiSugar3 (Plus) board.
  • Align the four screw nuts of the PiSugar3 (Plus) board with the Raspberry Pi board (PiSugar board under the RPI), the pogo pins on PiSugar3 (Plus) and the RPI's GPIO should be at the same side, and press the RPI board down gently.
  • Use the provided screws to secure the PiSugar3 (Plus) board to the Raspberry Pi board.

Power-On

The PiSugar 3 has the Anti-mistaken Touch feature enabled by default. (The feature switch is on the webUI, Advanced Settings -> Anti-Mistaken Touch Switch)

PiSugar 3 antimistouch PiSugar 3 antimistouch

The default power-on method is to short press and then long press (Click & Hold), wait for the LEDs count from 1 to 4.

The default power-off method is to long press.

Software Installation

Run the following script on your pi:

wget https://cdn.pisugar.com/release/pisugar-power-manager.sh
bash pisugar-power-manager.sh -c release

Please select the PiSugar3 model when prompted.

info

Both PiSugar3 and PiSugar3 Plus should be selected as PiSugar3 during installation.

After finished, you can manage the battery by visiting http://<your raspberry ip>:8421 in your browser.

PiSugar logo

PiSugar Power Manager is develop in Rust and Vue2.0, with high performace (less than 2% pi0 cpu) and exquisite designed webUI.

User Guide can be found here.

Core Features

Full Functions UPS

PiSugar 3 has full UPS functions and can set up multiple awakening methods to meet various unique project needs.

PiSugar 3 keeps running/working when external power is connecting or disconnecting to avoid data loss. PiSugar 3 can infer whether the external power supply is powered, whether the external power supply is disconnected, and also the battery voltage status through the data interface. Users can determine if they need to actively shut down for data protection and can set the device to automatically turn on when the external power supply is restored. With the combination of the above functions, the device can keep running as long as possible on the premise of safety.

OTA Firmware Upgrade

PiSugar3 uses independent MCU control to achieve communication and functions. Only with a simple command, firmware upgrades can be achieved through Raspberry Pi, letting the device get the latest features.

You can use following command to update the firmware of PiSugar3 (lastest:1.3.4):

curl https://cdn.pisugar.com/release/PiSugarUpdate.sh | sudo bash

If the device doesn't enter flashing mode after running the script, you can try pressing the reset button located on the PiSugar3's PCB.

Hardware Battery Protection

PiSugar 3 provides hardware battery protection like never before, limiting battery voltage to nearly 80%. When charging protection is turned on, the battery cycles life can be improved.

I2C Control, Mutable Address

PiSugar 3 communicates with the Raspberry Pi through the I2C interface and is compatible with most I2C devices. In addition, the I2C communication address can be customized to avoid I2C address conflicts.

Software Watchdog

PiSugar 3 has a software watchdog function. When the function is turned on, the dog needs to be fed regularly, which can effectively prevent the Raspberry Pi from crashing and improve the reliability of the system.

Anti-Mistaken Touch Switch

Click and hold the power button to turn on/off. This feature can be turn off in software.

Other Features

Back contact, easy to install

PiSugar 3 continues to use the pogo pin design to connect with Raspberry Pi from the back. In this way, it does not occupy the GPIO and is compatible with other GPIO devices.

TypeC Charging Interface

Both the PiSugar 3 and PiSugar 3 Plus have TypeC charging port. PiSugar3 Plus has an alternative micro-USB charging port.

Onboard RTC

With the ultra-low power consumption design, the onboard RTC can keep the clock running for more than one year when PiSugar is off. Please note that the RTC will stop running if the battery is removed.

Soft Shutdown

Hardware events trigger software shutdown. You can set the shutdown script to execute when the power button is pressed. In this way, you can customize the shutdown process, such as saving data before shutdown.

Custom Button

PiSugar 3 has a custom button that can be used to trigger custom functions, such as starting a script or sending a signal to the Raspberry Pi.

WebUI and APP

PiSugar 3 has a webUI and APP to manage the battery, including battery status, charging status, and other information. You can also set the device parameters through the webUI or APP.

PCB instructions

PiSugar3

PiSugar3 PCB

PiSugar3 PCB

PiSugar3 Plus PCB

PiSugar3 Plus PCB

PositionNameDescription
1GNDPiSugar's GND, 0V, all GNDs are connected, if connected to the Raspberry Pi, also directly to the Raspberry Pi's GND
2BATBattery Positive, 3V-4,2V
3USB InputInput voltage 4.5V-5.2V
4Custom function button
5Power button
6System reset buttonUse when the hardware is in abnormal state, short press will reset PiSugar
7Extension Interface5V Output, GND, MDAT/MSCL: I2C main interface, no function at this time. SDAT/SSCL: I2C slave interface, connected to Pi's I2C interface. PiSugar3 1.27mm Header (use JST 1.25mm connector). PiSugar3 Plus 2.54mm Header
85V Input PadConnect to USB interface 5V input
9Custom Button PadTrigger custom button function when connected to BAT(PAD:2)
10Power Button PadTrigger power button function when connected to BAT(PAD:2)
115V Output PadConnected to system 5V output, connected to Raspberry Pi 5V
  • Note: the small round button on the board is for reseting the hardware. It's not an activation button as that on PiSugar 2.

I2C Datasheet

For more details, please refer to PiSugar 3 I2C Datasheet.

3D Printed Case

Basic components (for zero): https://github.com/PiSugar/PiSugar/tree/master/model3

Basic components (for plus): https://github.com/PiSugar/PiSugar/tree/master/model_pro

Lids for piHats (for zero): https://github.com/PiSugar/pisugar-case-pihat-cap

RTC on board

PiSugar 3 have an RTC on board, which can easily use by hwclock.

Function description

address: 0x68 as same as ds3231

Data description: The clock part is consistent with ds3231

Using PiSugar RTC as System Clock

Take Raspberry Pi OS kernel version: 5.15 as an example, for other system versions, please refer to the operating instructions of ds3231

  1. Open I2C port

  2. Upgrade pisugar firmware to the latest version

  3. Write the following to the /boot/config file:

    dtoverlay=i2c-rtc,ds3231

    The modified file should look like this:

  4. Restart the system

After the above steps, RTC should have been mounted with the system,you can use the following instructions to verify:

Use the following command to view the I2C mounting:

i2cdetect -y 1

As a result, the UU mark can be seen at 0x68, indicating that it has been occupied by the system

pi@PI4B:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Then you can use the hwclock command

pi@PI4B:~ $ sudo hwclock -r
2020-01-22 08:00:27.671798+08:00
pi@PI4B:~ $ sudo hwclock -w
pi@PI4B:~ $ sudo hwclock -r
2022-08-31 13:14:31.619253+08:00
pi@PI4B:~ $

Certificate

Please refer to: https://github.com/PiSugar/pisugar-documents