Template: UPS-HAT-C
Features
- Onboard spring pogo pins for connecting with Raspberry Pi Zero series boards
- Li-po battery recharge chip, with dynamic path management, more stable power supply
- Voltage boost chip, providing regulated 5V power output
- I2C bus communication, monitoring the battery voltage, current, power, and remaining capacity in real time
- Multi battery protection circuits: over charge/discharge protection, over current protection, and short circuit protection, more safe and stable
- Recharging indicator for monitoring the battery operating status
- Comes with development resources and manual
Specifications
- Output voltage:5V
- Charger:5V
- Control bus:I2C
- Battery supported:803040 Li-po battery 1000mAh 3.7V
- Dimensions:65 × 30mm
- Mounting hole:3.0mm
Hardware
- ETA6003: recharge manager
- TPS61088: voltage boost chip
- INA219: voltage/current monitor
- S8261: Li-po battery protection chip
- FS8205: Li-po battery protection MOS
- Pogo pins: for connecting with Raspberry Pi Zero
- USB recharge port: 5V charger input
- Battery header: for connecting 803040 Li-po battery
- Power indicator
- Recharging indicator
Note 1: Please turn the power switch to OFF before you connect the battery, or the board may be damaged because of shorting.
Note 2: The board may not work when you mount the batteries for the first time, you need to charge batteries on board for a while to activate them.
Note 3: The discharge current is about 1.8A if the battery was fully charged, and it gets smaller as the battery voltage. If the working current required by Raspberry Pi is too big, it may cause over-current and low-voltage problem and the Pi may keep rebooting.
How to use
Enable I2C interface
Open the terminal:
sudo raspi-config Choose Interfacing Options -> I2C ->yes
sudo reboot
Run the example
Fix the UPS HAT (C) with Raspberry Pi.
Open a terminal and run the following commands:
sudo apt-get install p7zip wget https://www.waveshare.com/w/upload/4/40/UPS_HAT_C.7z 7zr x UPS_HAT_C.7z -r -o./ cd UPS_HAT_C python3 INA219.py
The terminal will print the IP address, battery voltage, current, and the percentage of battery quantity, as well as the CPU, GPU and memory information after starting the server.
Note: if the current value is negative, it means that the batteries are feeding the Raspberry Pi. If the current value is positive, it means that the batteries are charging.