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


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 Specifications | PiSugar 3 Plus | PiSugar 3 |
---|---|---|
Input | 5V-3Amax | 5V-3Amax |
Output | 5V-3Amax | 5V-2.5Amax |
Battery capacity | 5000mah | 1200mah |
Communication interface | 0x57/0x68 address | 0x57/0x68 address |
Size of PCB | 65mmX56mm | 65mmX30mm |
Support Raspberry Pi Models
Raspberry Pi Model | Support | Recommend PiSugar Version |
---|---|---|
Raspberry Pi Zero | Yes | PiSugar 3 |
Raspberry Pi Zero W | Yes | PiSugar 3 |
Raspberry Pi Zero 2 | Yes | PiSugar 3 |
Raspberry Pi Zero 2 W | Yes | PiSugar 3 |
Raspberry Pi 2 | Yes | PiSugar 3 Plus |
Raspberry Pi 3A | Yes | PiSugar 3 Plus |
Raspberry Pi 3B | Yes | PiSugar 3 Plus |
Raspberry Pi 3B+ | Yes | PiSugar 3 Plus |
Raspberry Pi 4B | Yes | PiSugar 3 Plus |
Raspberry Pi 5B | Yes | PiSugar 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)


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.
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 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 Plus PCB
Position | Name | Description |
---|---|---|
1 | GND | PiSugar's GND, 0V, all GNDs are connected, if connected to the Raspberry Pi, also directly to the Raspberry Pi's GND |
2 | BAT | Battery Positive, 3V-4,2V |
3 | USB Input | Input voltage 4.5V-5.2V |
4 | Custom function button | |
5 | Power button | |
6 | System reset button | Use when the hardware is in abnormal state, short press will reset PiSugar |
7 | Extension Interface | 5V 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 |
8 | 5V Input Pad | Connect to USB interface 5V input |
9 | Custom Button Pad | Trigger custom button function when connected to BAT(PAD:2) |
10 | Power Button Pad | Trigger power button function when connected to BAT(PAD:2) |
11 | 5V Output Pad | Connected 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
-
Open I2C port
-
Upgrade pisugar firmware to the latest version
-
Write the following to the /boot/config file:
dtoverlay=i2c-rtc,ds3231
The modified file should look like this:
-
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