Open main menu

Changes

X700

13,140 bytes added, 15:18, 4 September 2019
{{GD Template Impl}}
[[File:X700-IMG-6219-diagram.jpg|thumb|X700 UPS HAT]]
[[File:X700-IMG-6227.jpg|thumb|X700 UPS HAT]]
[[File:X700-IMG-6224.jpg|thumb|X700 UPS HAT]]
[[File:X700-IMG-6221.jpg|thumb|X700 UPS HAT]]

==Overview==
The X700 is a multifunctional expansion board for all current models of the Raspberry Pi using a 40 pin header. It provides intelligent and safe power management, safe shutdown, full poweroff through software and an advanced uninterruptible power supply. The X700 reserves the 40-pin header that can be stacked with other Raspberry Pi accessory boards for enhanced applications. The X700 can also be used with the X820 (2.5" HDD/SSD Shield), X850 (MSATA SSD shield), X822, for safe data backup.

== SAFETY INSTRUCTIONS AND WARNINGS==
* You must read these safety instructions and warnings before charging your batteries.
* Lithium Polymer and Li-ion batteries are volatile. Failure to read and follow the below instructions may result in fire, personal injury and damage to property if charged or used improperly.
* Never make wrong polarity connection when charging and discharging battery packs. Always double check polarity of battery's connector to make sure "+" to "+" and "-" to "-".
* Do not mix and use old batteries and new batteries, or batteries with different brand names.
* Lithium batteries has it's cycle life, please replace old battery with new one when it reaches it's service life or when it is two year old, whichever comes first.
* When charging Battery Pack, please put battery in a fire proof container. Please don't leave the X700 on the wood material or carpet and unattended.
* Must keep the X700 away from children.

==Features==
<html >

<head>

<style>
tr
{mso-height-source:auto;
mso-ruby-visibility:none;}
col
{mso-width-source:auto;
mso-ruby-visibility:none;}
br
{mso-data-placement:same-cell;}
ruby
{ruby-align:left;}
.style0
{mso-number-format:General;
text-align:general;
vertical-align:middle;
white-space:nowrap;
mso-rotate:0;
mso-background-source:auto;
mso-pattern:auto;
color:black;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:宋体;
mso-generic-font-family:auto;
mso-font-charset:134;
border:none;
mso-protection:locked visible;
mso-style-name:常规;
mso-style-id:0;}
.font0
{color:black;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:宋体;
mso-generic-font-family:auto;
mso-font-charset:134;}
.font7
{color:black;
font-size:11.0pt;
font-weight:700;
font-style:normal;
text-decoration:none;
font-family:宋体;
mso-generic-font-family:auto;
mso-font-charset:134;}
td
{mso-style-parent:style0;
padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:宋体;
mso-generic-font-family:auto;
mso-font-charset:134;
mso-number-format:General;
text-align:general;
vertical-align:middle;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
.xl65
{mso-style-parent:style0;
border:.5pt solid windowtext;}
.xl66
{mso-style-parent:style0;
border:.5pt solid windowtext;
white-space:normal;}
.xl67
{mso-style-parent:style0;
font-weight:700;
text-align:center;
border:.5pt solid windowtext;}
.xl68
{mso-style-parent:style0;
font-weight:700;
text-align:center;
border:.5pt solid windowtext;
background:#D8D8D8;
mso-pattern:black none;}
.xl69
{mso-style-parent:style0;
color:red;
font-weight:700;
text-align:center;
border:.5pt solid windowtext;}
.xl70
{mso-style-parent:style0;
text-align:center;}
.xl71
{mso-style-parent:style0;
color:red;
border:.5pt solid windowtext;
white-space:normal;}

<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:.75in .7in .75in .7in;
mso-header-margin:.3in;
mso-footer-margin:.3in;}
ruby
{ruby-align:left;}
rt
{color:windowtext;
font-size:9.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:宋体;
mso-generic-font-family:auto;
mso-font-charset:134;
mso-char-type:none;
display:none;}
-->
</style>
<![if !supportTabStrip]><script language="JavaScript">
<!--
function fnUpdateTabs()
{
if (parent.window.g_iIEVer>=4) {
if (parent.document.readyState=="complete"
&& parent.frames['frTabs'].document.readyState=="complete")
parent.fnSetActiveSheet(0);
else
window.setTimeout("fnUpdateTabs();",150);
}
}

if (window.name!="frSheet")
window.location.replace("../X700-Features.htm");
else
fnUpdateTabs();
//-->
</script>
<![endif]>
</head>

<body link=blue vlink=purple>

<table border=0 cellpadding=0 cellspacing=0 width=880 style='border-collapse:
collapse;table-layout:fixed;width:661pt'>
<col width=5 style='mso-width-source:userset;mso-width-alt:160;width:4pt'>
<col class=xl70 width=166 style='mso-width-source:userset;mso-width-alt:5312;
width:125pt'>
<col width=709 style='mso-width-source:userset;mso-width-alt:22688;width:532pt'>
<tr height=18 style='height:13.5pt'>
<td height=18 width=5 style='height:13.5pt;width:4pt'></td>
<td class=xl70 width=166 style='width:125pt'></td>
<td width=709 style='width:532pt'></td>
</tr>
<tr height=18 style='height:13.5pt'>
<td height=18 style='height:13.5pt'></td>
<td class=xl68>Item</td>
<td class=xl68 style='border-left:none'>Description</td>
</tr>
<tr height=18 style='height:13.5pt'>
<td height=18 style='height:13.5pt'></td>
<td class=xl67 style='border-top:none'>Compatible with</td>
<td class=xl65 style='border-top:none;border-left:none'>Raspberry Pi Model
B+/ 2 Model B / 3 Model B / 3 Model B+ / 3 Model A+</td>
</tr>
<tr height=54 style='height:40.5pt'>
<td height=54 style='height:40.5pt'></td>
<td class=xl67 style='border-top:none'>Operating System</td>
<td class=xl66 width=709 style='border-top:none;border-left:none;width:532pt'>Raspbian
Stretch<br>
Safe shutdown function tested for Raspbian, other operating systems to be
tested and advised</td>
</tr>
<tr height=546 style='height:409.5pt'>
<td height=546 style='height:409.5pt'></td>
<td class=xl67 style='border-top:none'>Key Features</td>
<td class=xl66 width=709 style='border-top:none;border-left:none;width:532pt'><font
class="font7">Smart Uninterruptible Power Supply (UPS)</font><font
class="font0"><br>
Provides continuous operations for up to 10hours (depending on battery type
used)<br>
5.1V 3000mA Power Backup for even the most demanding Pi 3 set ups<br>
18650 dual Cells Lithium Ion Holder<br>
Can work with single or dual 18650 Lithium Ion battery<br>
Integrated battery protection circuit<br>
Integrated over current protection and over voltage protection<br>
Integrated Maxim's fuel-gauge systems (Reading battery voltage and
percentage via i2c)<br>
Intelligent automatic charging and discharging<br>
On-board 4 green LEDs indicate battery charging and discharging levels of
25%, 50% , 75% and 100%<br>
On-board red LED show the status of battery charging or fully charged<br>
<br>
</font><font class="font7">Intelligent and safe power management</font><font
class="font0"><br>
Equipped with both momentary button and latching switch for easy power
control<br>
Press the momentary button to turn on<br>
Press the momentary button and hold for 1~2seconds to reboot<br>
Press the momentary button and hold for 3~7seconds to implement safe
shutdown<br>
Press the momentary button and hold for &gt;8seconds to force
shutdown<br>
Supports safe shutdown and full poweroff through software<br>
On-board switch convenient to select latching or momentary power control switches<br>
Press the latching power switch once to turn on and again to implement safe
shutdown<br>
On-board LED shows the status of power on, reboot and shutdown<br>
On-board PH2.0 connectors allows to use external latching switch or
momentary button<br>
Powers the Raspberry Pi via the 40-pin header - no additional cabling
required<br>
Allows power input via DC jack or Micro-USB socket or XH2.54
connector<br>
Allows power output via XH2.54 socket and or the 40-pin header<br>
<br>
</font><font class="font7">Other</font><font class="font0"><br>
Reserved 40-pin stackable Header for Add-On Boards<br>
Powers the Raspberry Pi via the 40-pin header - no additional cabling
required<br>
Works with all current models of the Raspberry Pi using a 40 pin
header<br>
On-board DC jack (5.5*2.5mm) and micro-USB socket convenient for power
input<br>
On-board connector allowing to connect external power switch and DIY your
perfect case<br>
</font></td>
</tr>
<tr height=103 style='mso-height-source:userset;height:77.25pt'>
<td height=103 style='height:77.25pt'></td>
<td class=xl67 style='border-top:none'>Specification</td>
<td class=xl66 width=709 style='border-top:none;border-left:none;width:532pt'>Power
supply: 5.1Vdc,2.5~4A<br>
UPS output: <font class="font7">5.1V 3A</font><font class="font0"><br>
UPS charging current: </font><font class="font7">2.5A</font><font
class="font0"><br>
18650 Battery Request: battery voltage: 3.7V-4.2V and without protect circuit<br>
Recharge Threshold: 3.99V</font></td>
</tr>
<tr height=72 style='height:54.0pt'>
<td height=72 style='height:54.0pt'></td>
<td class=xl69 style='border-top:none'>Note</td>
<td class=xl71 width=709 style='border-top:none;border-left:none;width:532pt'>WARNING:
<br>
DO NOT APPLY POWER TO YOUR RASPBERRY PI VIA THE PI's MICRO USB SOCKET.
<br>
DO NOT APPLY POWER TO X700 VIA THE X820's MICRO USB SOCKET AND DC JACK AT
THE SAME TIME. <br>
DO NOT USE 18650 BATTERY WITH BUILT-IN PROTECTION CIRCUI</td>
</tr>
<![if supportMisalignedColumns]>
<tr height=0 style='display:none'>
<td width=5 style='width:4pt'></td>
<td width=166 style='width:125pt'></td>
<td width=709 style='width:532pt'></td>
</tr>
<![endif]>
</table>

</body>

</html>

==Packing List==
* 1 x X700 board
* 1 x Installation screw pack (Spacer F/F M2.5*20, Screw M2.5*6)

==Document==
Power management chip docuemtn: [[File:MAX17040-MAX17041.pdf]]

X700 use the same script with X730.

* [https://github.com/geekworm-com/x730-script Github]
We test this shell script base official Raspbian '2018-11-13-raspbian-stretch.img' version;
<pre>
wget https://raw.githubusercontent.com/geekworm-com/x730-script/master/x730.sh
sudo chmod +x x730.sh
sudo bash x730.sh
printf "%s\\n" "alias x730off='sudo x730shutdown.sh'" >> ~/.bashrc
sudo reboot
</pre>

==How to Reading battery voltage and percentage ==
Please refer to [[File:X700-ups.zip]]
<pre>
#X700 Battery voltage & precentage reading
#!/bin/bash

sudo sed -e '/shutdown/ s/^#*/#/' -i /etc/rc.local

echo '#!/usr/bin/env python
import struct
import smbus
import sys
import time


def readVoltage(bus):

address = 0x36
read = bus.read_word_data(address, 2)
swapped = struct.unpack("<H", struct.pack(">H", read))[0]
voltage = swapped * 1.25 /1000/16
return voltage


def readCapacity(bus):

address = 0x36
read = bus.read_word_data(address, 4)
swapped = struct.unpack("<H", struct.pack(">H", read))[0]
capacity = swapped/256
return capacity


bus = smbus.SMBus(1) # 0 = /dev/i2c-0 (port I2C0), 1 = /dev/i2c-1 (port I2C1)

while True:

print "******************"
print "Voltage:%5.2fV" % readVoltage(bus)

print "Battery:%5i%%" % readCapacity(bus)

if readCapacity(bus) == 100:

print "Battery FULL"

if readCapacity(bus) < 20:


print "Battery LOW"
print "******************"
time.sleep(2)
' > /home/pi/x700ups.py
sudo chmod +x /home/pi/x700ups.py


</pre>

==Installation Guide==
[[File:X700安装说明-01.jpg|X700]]
==FAQ==
Customer question 1: I will plug into my car lighter. i want to shut down when i turn off the car, and boot automatically when i turn on the car. will the x700 do both?

Answer: Yes, X700 should be able to meet your needs.

I recommend you use wall power supply to test it firstly. you need

Let me give you an example: If we turn the wall switch of the bedroom on, when the external power supply is on, the light is on, when the external power is off, the light is off.

Go back to X700, please refer to the second picture of ASIN, press down the 'Toggle button/ Select Button' to enable the Latching swith, then press the latching switch (this latching switch is equal to the wall switch).

BUT you use the car lighter, maybe you need to check your ignition line.

Question 2:
Does the X700 support Auto Power On function?

Answer: Yes, the X700 is support auto power on, but the auto power on function use latching switch, so it you use the auto power on function then X700 will not support safely shutdown by software.



<!--增加评论功能! -->
<comments />

<!--请选择合适的分类,多余的分类请删除; -->

[[Category:Product Manual]]
[[Category:Raspberry pi]]