PiSugar
Important
Make sure the USB cable is connected to the bottom left charging port (USB-C PiSugar-Power). This provides charging to the PiSugar battery AND power to the Raspberry Pi.
Info
- Name: Pisugar 3 Plus
i2c
Addresses0x57
PowerICi2cdump -y 1 0x57
0x68
RTC- Shell Command:
i2cdetect -y 1
CLI
- Fetch battery charge percentage
echo "get battery" | nc -q 0 127.0.0.1 8423
Web UI: http://192.168.1.25:8421/#/
- Turn off Pi:
- Action: (Double Tap/Long Tap) Power button
- Note: Sugar Pi in Sleep mode
- Turn on Pi:
- Remove and Return USB-C PS-Power
- Current Schedule Wake up Config = On Power Restore
- Status LED:
- Solid Blue: On Battery
- Incrementing Green: Charging (PS-Power Present)
Amazon Install TCP commands PiSugar Power Manager Web UI: http://192.168.1.25:8421/#/
NOTE
You can use SPI, I2C, and serial UART all at the same time. There is no conflict. The Pi only has one usable UART. The simplest way to add additional serial links is to use a USB serial dongle. However UART0 and UART1 can not be used at the same time.
Default ports:
uds /tmp/pisugar-server.sock
tcp 0.0.0.0:8423
ws 0.0.0.0:8422 # standalone websocket api
http 0.0.0.0:8421 # web UI and websocket (/ws)
Or
nc -q 0 192.168.1.23
get battery
Or
echo "get battery" | nc -q 0 127.0.0.1 8423
- https://github.com/PiSugar/pisugar-power-manager-rs#unix-domain-socket—webscoket—tcp
- Output Current: 2.4A
- Output Voltage: 5V
- I2C: 0x75(BAT) 0x32(RTC)
WebUI
Local WebUI access
- Via web browser visit http://192.168.1.22:8421
Remote WebUI access via Local Port Forwarding
0. ssh -L <local-port>:<remote-server> -f user@<
- In a terminal enter
- Via web browser visit http://localhost:8080/index.html