• sales

    +86-0755-88291180

Power Management HAT (B) User Guide

Introduction

Power Management HAT(B) is a Raspberry Pi power management control board, which can provide a set of extremely powerful power management for Raspberry Pi, such as timing switches, measuring working voltage and current, etc. The load transient response function enables fast switching among multiple power supplies.

Feature

  • Onboard MCU (RP2040), powerful and easy to use
  • Onboard PCF8523 RTC chip, provides precise RTC information
  • Onboard MP28167-A buck-boost DC chip for fast load transient response
  • Protection circuits such as power supply anti-reverse, counter-current proof, etc. ensure stable and safe operating
  • Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards
  • Onboard user-defined button, can be used for Raspberry Pi start-up, safe shutdown, or other customized function
  • It can detect the input power supply voltage and the working current, and it can be programmed to cut off the power supply immediately to ensure the working life of the lithium battery.
  • Voltage/current monitoring circuit, monitors the Raspberry Pi operating voltage and current in real-time

Parameters

  • Main chip: RP2040
  • Communication interface: UART + GPIO
  • Download interface: USB + SWD(Debug)
  • Baud rate: default 115200bps (configurable)
  • Power supply: USB/PH2.0 connector
  • USB port voltage: 5V
  • PH2.0 connector voltage: 3.3-4.2V (3.7V Li battery)
  • Built-in circuits: battery anti-reverse, counter current proof, voltage/current monitoring
  • Dimensions: 56.5mm x 65mm
  • Fixed hole diameter: 3.0mm

Hardware Connection

RP2040 GPIODescription
GPIO0UART0_TX pin, connect to Raspberry Pi D15 pin
GPIO1UART0_RX pin, connect to Raspberry Pi D14 pin
GPIO6I2C1_SDA pin, connect to II2 SDA pin
GPIO7I2C1_SCL pin, connect to II2 SCL pin
GPIO19User key pin, generally for controlling the power switch
GPIO21RTC interruption pin, RTC chip will be pulled down when the RTC clock is triggered
GPIO22Raspberry Pi soft shutdown pin, connect to Raspberry Pi D20 pin
GPIO23Raspberry Pi run pin, connect to Raspberry Pi D21 pin
GPIO24Power control pin, when it is pulled low, the power is cut off, otherwise, the power is on
GPIO25Status LED pin, used to display the current operating status
GPIO29Input voltage acquisition hardware, the voltage here is about 1/10 of the input voltage

User Guide

Precautions

SAFETY CAUTIONS

  • Li-ion and Li-po batteries are quite unstable. They may cause fire, personal injury, or property damage if they're not properly recharged or used.
  • Do not reversely connect the polarities when recharging or discharging the battery. Do not use an inferior charger/charging panel to recharge the battery.
  • Do not mix use old batteries with new ones, avoid using batteries of different brands.
  • When buying a Lithium battery, should always make sure the battery specification is compatible with the expansion board. *Choose batteries from the formal manufacturer, and ensure the batteries will work stably and safely by aging test.
  • Lithium batteries have a limited cycle life, they will also deteriorate as time goes by. Should be replaced with new ones when the batteries reach their max cycle life or work over two years, whichever comes first.
  • Should be placed carefully and properly, keep it away from inflammable and explosives articles, away from children, and avoid any safety accident caused by careless storage.

Working Principle & Demo

GPIO Protocol (Configurable Protocol)

  • Based on software compilation, this protocol requires RP2040 and Raspberry Pi to run the demo.
  • As the GPIO headers of RP2040 and Raspberry Pi are connected, the running state of Raspberry Pi can be detected and its shutdown can be prompted.=Working With Raspberry Pi=

Configure Pico Compile Environment

  1. Download the installation script.
    cd ~
    wget https://raw.githubusercontent.com/raspberrypi/pico-setup/master/pico_setup.sh
    
  2. Give run permission and run:
    chmod +x pico_setup.sh
    ./pico_setup.sh
    
  3. Restart the Raspberry Pi:
    sudo reboot
    

openocd

  • Power Management HAT(B) has connected SWD (debug) to the Raspberry Pi interface, you can directly use the debug interface to download programs or debug.
  1. Download the library source code required for OpenOCD
    cd ~/pico
    sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-
    dev
    
  2. Download the OpenOCD source code.
    git clone https://github.com/raspberrypi/openocd.git --recursive --branch rp2040 --depth=1
    
  3. Compile and install:
    cd openocd
    ./bootstrap
    ./configure --enable-ftdi --enable-sysfsgpio --enable-bcm2835gpio
    make -j3
    sudo make install
TAG: CAN Analyzer Rockchip Raspberry Pi 0.96inch RGB OLED ESP32 S3 Development Board 2.1 inch Round Rotary Knob LCD Smart Screen 2.1inch Display 480x480 LVGL for Arduino Raspberry Pi 5 PCIe to M.2 5G/4G/3G HAT With RM520N-GL Raspberry Pi 3.7 inch e-Paper link (G) RYBW 416x240 For Arduino / Jetson Nano / STM32 ESP32-S3 Mini Raspberry Pi Pico 2 RP2350 2.8 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /PCM5101 Audio /SD /RTC /Battery Port Development Board Raspberry Pi IR Array Thermal Imaging Camera Far infrared 80×62 Pixels 45/90 Degree FOV CSI-to-HDMI Jetson Orin Nano Super AI Developer Kit Built in Jetson Orin Nano 8GB Memory Core board RP2040 Raspberry Pi 5 Audio Card Raspberry Pi Camera 8MP IMX415 also For Luckfox-Omni3576 RK3576 Raspberry Pi Pico 2 RP2350 1.28 inch Round LCD Development Board 240x240 Display Screen QMI8658 6-Axis BPI JLINK OB Industrial Grade Isolated USB TO RS232/485 (B) Serial UART Converter FT232RNL For Wall/Rail-Mount Raspberry Pi RTC WatchDog HAT (B) Real time clock Onboard DS3231SN High Precision RTC Chip