.. note:: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts. **Why Join?** - **Expert Support**: Solve post-sale issues and technical challenges with help from our community and team. - **Learn & Share**: Exchange tips and tutorials to enhance your skills. - **Exclusive Previews**: Get early access to new product announcements and sneak peeks. - **Special Discounts**: Enjoy exclusive discounts on our newest products. - **Festive Promotions and Giveaways**: Take part in giveaways and holiday promotions. 👉 Ready to explore and create with us? Click [|link_sf_facebook|] and join today! Hardware Introduction ======================== Specification Table ----------------------------- .. list-table:: :widths: 30 10 10 10 10 * - Parameter - Min - Typical - Max - Unit * - Battery Shutdown Current - \- - \- - 60 - uA * - Battery Quiescent Current - \- - 25 - \- - mA * - DC-DC Output Voltage - 5.1957 - 5.2855 - 5.3766 - V * - DC-DC Over Temperature Protection - \- - 150 - \- - ℃ * - Battery Charging Current - \- - \- - 1 - A * - Charging Over Temperature Protection - \- - 135 - \- - ℃ * - Input Low Voltage Switching Threshold - 4.54 - 4.63 - 4.72 - V * - Balancing Current - \- - 40 - \- - mA * - Balancing Activation Voltage - \- - 4.1 - \- - V Overview Diagram ------------------- .. image:: img/pipower3_pinout.png :width: 800 :align: center 1. :ref:`power_input`: External power input, can directly power Raspberry Pi while charging the battery. 2. :ref:`cap_onoff`: Select whether to automatically start when the external power input is plugged in during the shutdown state. 3. :ref:`cap_sdsig`: Shutdown signal, connecting pin 26 to the middle pin with a jumper cap connects **SDSIG** to GPIO26 on the Raspberry Pi. Once configured, if the Raspberry Pi shuts down, GPIO26 goes high, signaling PiPower 3 to power off. 4. :ref:`cap_btn`: External power button jumper, used for external power button. 5. **PWR LED**: Output status LED, lights up when output is activated. 6. **BAT LED**: The LED lighting up indicates that the battery is currently supplying power. At this time, you need to monitor the battery level to prevent damage due to over-discharge. 7. :ref:`power_button`: Onboard power button for controlling the board's power: * **Single press**: Activates output. * **Hold for 2 seconds, until the middle two battery LEDs light up then release**: Sends shutdown request via i2c. * **Continue holding for more than 5 seconds**: Directly turns off output. 8. :ref:`battery_indicators`: Indicates battery level and charging status. 9. **I2C Connector**: SH1.0 4P terminal, compatible with **qwIIC** and **STEMMA QT**. 10. **I2C Pin Headers**: 1x4P 2.54 pin headers. 11. **Type A Output**: 5V output interface. 12. **5V/GND Pin Headers**: 2 x 4P 2.54 pin headers. 13. :ref:`pin_header`: Raspberry Pi pin headers, directly connects to the Raspberry Pi. 14. :ref:`battery_connector`: XH2.54 3P battery connector. 15. **Warning LEDs**: If the battery is reversed, two red LEDs light up, warning of battery reversal. .. _power_button: Power Button ---------------- .. image:: img/power_button.jpg :width: 500 :align: center Onboard power button for controlling the board's power: * **Single press**: Activates output. * **Hold for 2 seconds, until the middle two battery LEDs light up then release**: Sends shutdown request via i2c. * **Continue holding for more than 5 seconds**: Directly turns off output. .. _battery_indicators: Battery Indicators -------------------------------- Four onboard LEDs indicate battery level and charging status. Note, if charging during shutdown, the indicator light will still display the charging status until charging is complete. .. image:: img/battery_indicator.jpg :width: 500 :align: center * **4 LEDs lit**: Battery >80% * **3 LEDs lit**: 60%< Battery <80% * **2 LEDs lit**: 40%< Battery <60% * **1 LED lit**: 20%< Battery <40% * **First LED flashing**: Battery <20% * **LEDs incrementally light up in a cycle**: Charging * **Middle two LEDs flashing**: Waiting for shutdown signal * **All LEDs off**: Unpowered or in sleep mode .. _power_input: Power Input ------------- .. image:: img/power_input.jpg :width: 500 :align: center If using on Raspberry Pi, the power input should use a USB PD source supporting 5V/3A, like the official Raspberry Pi 27W power source (recommended). Otherwise, under high power consumption, the battery may not charge or may even deplete until the battery can no longer supply power. The **BAT LED** can confirm whether the battery is currently supplying power externally to ensure battery safety so that the battery remains powered in case of a power outage, acting as a UPS. .. image:: img/bat_led.jpg :width: 500 :align: center **Power Path** PiPower 3 integrates power path functionality, automatically switching power paths to reduce battery wear and seamlessly switch power. * With external power connected, 5V output is directly from the external 5V, which can be switched off. If conditions allow, external power also charges the battery (see charging current). * When power is disconnected, the system automatically switches to battery step-down output for power, seamlessly switching to protect the system during a power outage. **BAT LED** can confirm whether the battery is currently supplying power externally. .. image:: img/bat_led.jpg :width: 500 :align: center .. _battery_connector: Battery Connector ------------------------ XH2.54 3P battery connector. .. image:: img/battery_connector.jpg :width: 500 :align: center Charging Related ------------------- **Charging Current** The maximum charging current adjusts based on the input voltage to ensure maximum power supply to the Raspberry Pi. * When powered on, the charging current dynamically adjusts based on input voltage. The maximum charging current is 1A; if the input voltage is below 4.63V, it is considered insufficient power input, and charging will be disabled. Between 4.63V-5.2V, the system will automatically adjust the charging current to ensure the input voltage is above 4.63V. * When powered off, the charging current is 1A. **Charging Process** * When the total battery voltage is less than 3.7V, the battery is charged at 50mA. * When the total battery voltage is between 3.7V and 6V, the battery is charged at 100mA. * When the total battery voltage exceeds 6V, the battery is charged at the set maximum charging current; * When the total battery voltage approaches 8.4V, it enters constant voltage charging mode. * After the battery is fully charged and input continues, if the total battery voltage is less than 8V, charging will restart; * In constant voltage mode, if the charging current is less than 200mA, stop charging after 30s, check if the battery voltage is above the stop charging voltage; if it is, stop charging, if not, continue charging, and check again after 30s. **Charging Balance Function** During charging, the charging chip constantly monitors the voltage of the two battery cells. When any cell voltage reaches the balance activation voltage of 4.1V, the corresponding internal balance MOS is activated, reducing the charging current for that cell. Balance shutdown conditions: #. Both battery cell voltages are above the balance activation voltage of 4.1V; #. Exiting normal charging status (e.g., NTC protection, input over-voltage, battery fully charged); **Temperature Protection** * When the internal temperature of the charging chip exceeds 135 degrees, charging will be forcibly stopped; * When the internal temperature of the DC-DC chip exceeds 150 degrees, DC-DC will be shut down; MCU I2C Communication ------------------------------- .. image:: img/i2c_pins.jpg :width: 500 :align: center I2C address: 0x5a The onboard MCU collects various signals from the board and stores them in registers, which can be accessed via I2C. * :download:`Register Table ` Set Register Table: .. image:: img/set_register.png :width: 700 :align: center .. _cap_onoff: Default ON/OFF ---------------------- .. image:: img/btn_sdsig_off_on.jpg :width: 500 :align: center This **ON/OFF** jumper is used to select: whether the output is defaultly activated when USB power is plugged in after shutdown. * If the jumper cap is on the left, connected to OFF, then inserting USB power after shutdown will not activate the output. * If the jumper cap is on the right, connected to ON, then inserting USB power after shutdown will activate the output. This feature is typically used for devices that need to be defaultly on, such as private servers: when there is a power outage outside, PiPower 3 instructs the Raspberry Pi to shutdown. Waiting for the next power supply, PiPower 3 automatically activates the output, turning on the Raspberry Pi, thus eliminating the need for manual operation. This function can also be used as a remote on/off feature. Connect the input to a smart plug or smart switch. Set the Shutdown Percentage to 100%. When remote shutdown is needed, directly control the smart plug to cut power, PiPower 3 detects the power outage, notifies the Raspberry Pi to shutdown, then cuts power. When remote power-on is needed, directly turn on the smart switch, PiPower detects power, defaults to power-on, and can start the Raspberry Pi, achieving remote control of power on and off. .. _cap_btn: BTN --------- .. image:: img/btn_sdsig_off_on.jpg :width: 500 :align: center This **BTN** jumper is for an external power button. If you need to install PiPower 3 inside a casing, you might not be able to press the onboard power button. At this time, you need an external button to switch power on and off. Connect a self-recovering switch to the jumper, which can be a tactile switch or a vintage metal button. After connecting, you can press the external button just like the onboard button. .. _cap_sdsig: SDSIG ------------ The **SDSIG** shutdown signal involves three pins: pin 26, a middle pin, and a right-side GND pin. * If you connect pin 26 to the middle pin using a jumper cap, SDSIG will connect to GPIO26 on the Raspberry Pi. After configuration, if the Raspberry Pi shuts down, the GPIO26 pin will be pulled high, indicating that SDSIG is at a high level, signaling PiPower 3 to power off. * If this function is not needed, such as with a single-board computer like Arduino or Raspberry Pi Pico, the jumper cap should be connected to GND. .. image:: img/btn_sdsig_off_on.jpg :width: 500 :align: center **SDSIG** is the shutdown signal pin. Pulling this pin high indicates the host is shut down and needs to be powered off. Pulling it low indicates the host is powered on. If this function is not needed, such as with a single-board computer like Arduino or Raspberry Pi Pico, the jumper cap should be connected to GND. If using a Raspberry Pi, connect the jumper cap to pin 26, install ``pipower3`` software on the Raspberry Pi, and when the Raspberry Pi shuts down, it will pull this pin high, signaling PiPower 3 to power off. .. _pin_header: Pin Headers for RPi --------------------------- Raspberry Pi pin headers, directly connects to the Raspberry Pi, including I2C and power, see Raspberry Pi pin diagram. Headers can be used to stack HATs, but note that I2C and pin 26 are connected. .. image:: img/40pin_header.jpg :width: 500 :align: center .. list-table:: :widths: 15 15 :header-rows: 1 * - Raspberry Pi - MCU On Board * - SDA - SDA * - SCL - SCL * - GPIO26 - SHUTDOWN * - ID_SD - ID_EEPROM SDA * - ID_SC - ID_EEPROM SCL