Changes

Jump to navigation Jump to search

X708-Software

672 bytes added, 15:46, 27 April 2022
{{GD Template Impl}}
==For Raspbian Raspberry Pi OS==
The following test is base on '2020-02-13-raspbian-buster.img'
* If your test fails, it means that your installation failed, or the software environment is incorrect, please check whether you have installed the corresponding software package.
65. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request. cd ~ cd x708v2/raspberry-pi-os sudo python x708batpython3 bat.py<pre>******************Voltage: 4.18VBattery: 100%Battery FULL******************Voltage: 4.17VBattery: 100%Battery FULL******************Voltage: 4.18VBattery: 100%Battery FULL******************Voltage: 4.17VBattery: 100%Battery FULL******************<pre>
* In generally, you need to let the X708 fully charge and discharge several times before you can get more accurate voltage and power values.
* This script can also perform safe shutdown at specified voltage threshold (default voltage threshold is 3.00vdc), you can also modify this voltage threshold, '''but the voltage threshold range must be 2.5~4.1vdc'''.
7. How to power off command on Raspbian from software

Navigation menu