From Geekworm
Jump to navigation Jump to search


Power Jack and Connectors

Power input 5Vdc +/- 5% , ≥3A
DC Power Plug Size 5.5*2.5mm
USB power in socket Type-C
UPS power output 5.1Vdc 8A(Max.)
Power output connector 2-pin XH2.54mm *2
  • X708 powers the Raspberry Pi via the 40-pin header (Pin 2 & 4)
  • Don't power the Raspberry Pi via the Pi's type-C USB socket
  • X708 can be powered via the onboard DC jack or Type-C USB power socket

6-Pin Function Header

Jumper Name Usage

(Power loss detection) Pin 1&2

  • Short - AC Power loss or power adapter failure detection enabled (Active if power adapter disconnected)
  • Open - Power loss detection disabled

(Auto power-on) Pin 3&4

  • Short - Auto power-on when power applied (Will delay 3 seconds before powering on)
  • Open - Auto power-on disabled

(Auto shutdown) Pin 5&6

  • Short - Automatic shutdown enabled when battery low (≤3Vdc )
  • Procedure to enable ASD function --IMPORTANT
1. Battery voltage must be >3Vdc
2. Insert the battery into the holder
3. Wait 3 seconds then insert the jumper
4. If the jumper inserted before battery, remove battery & jumper then repeat step 1, 2 and 3.
  • Open - Automatic shutdown disabled

How to connector external power switch

Pin No. Pin Description
1 Power on/off control connecting to switch
2 Ground
3 LED+ for battery low indicator
4 LED+ for power on, rebooting and shutdown

Power button (Script for power mgnt installed)

Press and Release Raspberry Pi and X708 turn on
Press and hold for 1~2 seconds System rebooting
Press and hold for 3~7 seconds System shutting down
Press and hold for >8 seconds Force shutdown

Function LEDs

LED Name Usage

LED red on indicates battery low (≤3.0Vdc) or blue power button pressed (Jumper for ASD inserted)

5V OUT LED green on flashing indicates 5V power out and UPS powered by battery
AC FAIL LED red on indicates AC power loss or PSU failure or PSU disconnected

LED blue indicates

Stays on - Power on

Blinks rapidly - system rebooting

Blinks slowly - Shutting down

Fuel gauge - LED Indicator

Operation of Discharging

Capacity C (%) D1 D2 D3 D4
C ≥75% ON ON ON ON
50%≤C<75% ON ON ON OFF
25%≤C<50% ON ON OFF OFF
0%<C<3% Flashing OFF OFF OFF

Operation of charging

Capacity C (%) D1 D2 D3 D4
Fully charged ON ON ON ON
75%≤C ON ON ON Flashing
50%≤C<75% ON ON Flashing OFF
25%≤C<50% ON Flashing OFF OFF
C<25% Flashing OFF OFF OFF

Pins and GPIO used

Pin No. Usage
2, 4 +5V power supply
3, 5 I2C for RTC and battery fuel-gauge systems
6 Ground
29 GPIO5 for power management
32 GPIO12 for power management
33 GPIO13 for power management
31 GPIO6 for AC power loss detection

(Jumper for PLD inserted, High=power loss,

Low=Power supply normal)

18650 battery dimension


Please use 18650 battery with built-in protection circuit

Return to X708

Add your comment
Geekworm welcomes all comments. If you do not want to be anonymous, register or log in. It is free.

Anonymous user #3

one month ago
Score 0++
I can't get the x708 to shut down with the momentary switch any ideas how to do this?

Anonymous user #4

one month ago
Score 0++
I am having the same problem. The pld python script also does not detect when I unplug AC power. I'm running on a raspberry pi 4 (2018 model) with 4gb of ram. And I used the latest full version of raspberry pi is from today October 24th 2020.

Anonymous user #5

one month ago
Score 0++

I added sudo in front of /etc/x728pwr.sh & in /etc/rc.local and now the momentary switch seems to be working as expected. Also note that the pin descriptions under section 3 above are incorrect. Pin 1 is the NO pin of your momentary switch, Pin 2 is ground or common for the switch, pin 3 is ground for the LED in the switch and pin 4 is +V for the LED in the switch. Pin 1 is the farthest pin from the fan.

I found out that the pin to let the Pi know if AC power is good or not was not working on the female side of the header that goes directly to the pi. I get between 0.2 and 1.0 ish volts. If i measure the male side that would go to another hat i get 0v when AC power is on and 3.4v when AC power is off. Looking into how to fix that. But if I use jumper wires and use the male pin the x728pld.py script works correctly.

Anonymous user #5

one month ago
Score 0++
Did some poking around and the pin for the female side PLD was not soldered well. I soldered it using a soldering iron and the problem with the PLD was resolved, so I resoldered every pin on both sides of the board. Looks like along with poor documentation Geekworm also has some quality control problems.

Anonymous user #2

one month ago
Score 0++
RPi CPU cooling fan never seems to stop running. Is there something I can do to have it only activate when the Pi needs cooling? Cheers

Anonymous user #5

one month ago
Score 0++
Directly on the X708 no, the fan is connected directly to power. You could setup a mosfet and use a GPIO pin to toggle if the fan is on or not though.

Anonymous user #1

one month ago
Score 0++

Hi, Can we please get some documentation of which GPIO pins do what, and under which conditions?