X708-Hardware

From Geekworm Wiki
Jump to navigation Jump to search

X708-V12-IMG-9489-interface-2.jpg

4-Pin Function Header for X708 V1.2

X708 Jumper Function

X708-fn.jpg

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 for X708 V1.0

Jumper Name Usage
PLD

(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
AON

(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
ASD

(Auto shutdown) Pin 5&6

  • NOTE: ASD fundtion is removed on V1.2 version,but you can achieve this function through software programming.
  • 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 Ground
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
BAT LOW

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
PWR

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
3%≤C<25% ON OFF 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 Remark
2, 4 +5V power supply
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)

36 GPIO16 for fan speed: HIGH => fast, LOW=> slow New added on V1.2

18650 battery dimension

18650size.png

Please do not use 18650 battery with built-in protection circuit

How to programming to get ASD function on V1.2 version

The following is fake C/C++ code:

while(1) {
  // You need to implement getCurrentVoltage function
  float fVoltage = getCurrentVoltage();
  if (fVoltage <= 2.5) {
  //execute shut down command, "sudo x708off"
  break;
  }
}

Return to X708

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

Anonymous user #17
3 days ago
Score 0++
Hello, I don't understand where and how this code below will be inserted for this ASD fonction operate. Please tell me Thank's !
Lisa
one day 10 hours 14 minutes ago
Score 0++
[❾ How to programming to get ASD function on V1.2 version] is just an example. You can insert a command to implement ASD function when installing the scriptX708-script.
Anonymous user #8
20 months ago
Score 0++
I'm using the x708 ver1.2. How to use the ASD function if it is under <= 3.0V. I want know the step I can follow.
Walker
20 months ago
Score 0++
Hi, when battery low (≤3Vdc ), it short - Automatic shutdown, if you need Procedure to enable ASD function, you need to pay attention to the following: 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.
Lisa
one day 10 hours 17 minutes ago
Score 0++
ASD fundtion is removed on V1.2 version,but you can achieve this function through software programming. please refer to:❾ How to programming to get ASD function on V1.2 version
Anonymous user #15
26 months ago
Score 0++
Is there any way to "turn off" the X708 when the Pi is shut down? Currently I have to press the button for a long time (7 sec) after shutdown to do this.
Lisa
26 months ago
Score 0++
Hi, Please refer toX708-Software
Anonymous user #15
26 months ago
Score 0++
Hi! How do I connect a NO push button with LED to the 4 pin interface? Thank you
Lisa
26 months ago
Score 0++
Hello, The [external power switch connector] on the board only support a momentary switch.
Anonymous user #16
26 months ago
Score 0++
Thank you for your quick reply. I think the pinout in this documentation is wrong. It says: 1 Power on/off control connecting to switch 2 Ground 3 LED+ for battery low indicator 4 LED+ for power on, rebooting and shutdown But shorting pin 1 and pin 2 has no effect. Instead, shorting pin 2 and pin 4, I get the expected behavior like Power on and force shutdown (holding >8 seconds). I have a X708 V2.0 if that makes a difference. I have a normally open four pin momentary switch with build in LED. Like this one: amazon.de/gp/product/B07KCCLGXJ 1 LED + 2 LED - 3 S1 4 S2 Currently I connected S1 to pin 2 and S2 to pin 4 to make the switch working. Also I have connected LED + to pin 3 and LED - to pin 1 to make the LED working. Even if everything works now, I wonder if everything is connected correctly? Thank you.
Lisa
26 months ago
Score 0++
Hi, amazon.de/gp/product/B07KCCLGXJ----Operating voltage 12 Volts; X708 UPS output is 5V
Anonymous user #14
27 months ago
Score 0++
What is the indication of the LED labled (HS) beside the LED labled (FAN) on the x708 v2? It turned red the first time when I connected the ground of the Raspberry Pi with the ground of an external power supply I use to control devices that need more power. Now it is red even when the ground of the Raspberry pi is not connected to anything. The Raspberry pi powers nothing through its 5V
Anonymous user #13
27 months ago
Score 0++
HS, is for High Speed. It's used by the fan.py script, when above the threshold it start spinning faster and lowered speed when temp is below threshold. Notice that x708 fan is always running at low speed.
Anonymous user #14
27 months ago
Score 0++
Now that you mentioned it, it makes sense. Since when this happens, it is accompanied by a notable increase in the fan speed. Thank you "Anonymous user #13" whoever you are.
Anonymous user #13
27 months ago
Score 0++
Which GPIO pin can be used to control Case Fan x728-C1? Is it possible to stop the x708 board fan? (not LOW but STOP)
Lisa
27 months ago
Score 0++
Hello, 1. The fan of X728-C1 case is only GND 5V ,does not controlled by GPIO. 2. You can unplug it's cable if you want to stop it.
Anonymous user #12
29 months ago
Score 0++
Can I simultaneously connect a lithium polymer battery in xh2.54 and another lithium polymer battery in ph2.0?
Lisa
29 months ago
Score 0++
Hi, We do not recommend this, please use the same specification of batteries.
Anonymous user #10
31 months ago
Score 0++
Feature: GPIO16 for fan speed Does it work on the fan that comes with the board?
Lisa
31 months ago
Score 0++
Hi, Yes,It controls the fan of X708 V1.2 and later versions
Anonymous user #10
33 months ago
Score 0++
x708 v1.2. new hat. the power loss detection led is always flashing. battery is always draining and no charging. checked that raspberry usb c power supply is ok. need advice. when running x708pld.py, it shows: ---AC Power Loss OR Power Adapter Failure--- ---AC Power OK,Power Adapter OK--- ---AC Power Loss OR Power Adapter Failure--- ---AC Power OK,Power Adapter OK--- ---AC Power Loss OR Power Adapter Failure--- ---AC Power OK,Power Adapter OK--- ---AC Power Loss OR Power Adapter Failure--- ---AC Power OK,Power Adapter OK--- ---AC Power Loss OR Power Adapter Failure--- ---AC Power OK,Power Adapter OK---
Lisa
32 months ago
Score 0++
Hi, Please remove the battery to test. Can USB-C power supply power the X708? If OK, please re-install the battery test.
Lisa
32 months ago
Score 0++
Hi, Could you please tell us more details? especially the power supply you use. Please send a test video and tell us your order number by Emai(support@geekworm.com). thank you.
Anonymous user #10
31 months ago
Score 0++
suspect raspberry pi usb c 5v 3a not able to supply sufficient power when setup is boot from sdd
Lisa
31 months ago
Score 0++
What is your x708 used with? If the load is large, you can try to use a higher current power supply.
Anonymous user #9
33 months ago
Score 0++
Hi! I can't find any script on how to set the fan speed to high/low: "GPIO16 for fan speed: HIGH => fast, LOW=> slow" "New added on V1.2". I don't know if it is running high or low now, but the case fan sounds as an airplane that is about to take off from my desktop. This is unacceptable. There must be a way to turn it off when not needed and only turn it on at very high temperatures. If there is a high and low settings too i really want to know how to change it between these two mode.
Lisa
33 months ago
Score 0++
Hello, You can also refer to this link to adjust the fan speed: http://www.s...oftware.html
Anonymous user #8
34 months ago
Score 0++
4. Power button (Script for power mgnt installed) where can i set the code described above
Lisa
34 months ago
Score 0++
Hi, Please refer X708-Software
Anonymous user #7
37 months ago
Score 0++
Hi. I have just purchased x708v1.2. How do i get on ASD function? The Step 9 is not detailed enough and i need a step-by-step solution. Where do i put the code? In Terminal? How do you have the script run automatically after starting up?
Anonymous user #3
51 months 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
50 months 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
50 months 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
50 months 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.
Xiali
49 months ago
Score 0++
Hi dear ,please refer to X708-Software
Anonymous user #2
51 months 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
50 months 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 #6
49 months ago
Score 0++
I would be interested to understand how to modify my set-up so that the fan comes under a GIPO pin as it is running constantly and that is painful on my poor ears
Anonymous user #11
30 months ago
Score 0++
The fan in the case is probably connected to 5 V without regulation. I connected it to the 3.3V pin of the Raspi. Now it's quiet!
Anonymous user #1
51 months ago
Score 0++
Hi, Can we please get some documentation of which GPIO pins do what, and under which conditions? Thanks