Changes

Jump to navigation Jump to search

X708-Software

10 bytes added, 16:26, 27 April 2022
no edit summary
4.1 Enters the corresponding operating system scripts folder (raspberry-pi-os)
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/
4.2 Execute the installation script.
5. How to reading battery voltage and percentage, this is the sample code, you can modify it by your request.
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 bat.py
<pre>
6. Testing AC power off/loss or power adapter failure detection (PLD function)
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 pld.py
7. Test Auto shutdown when AC power loss or power adapter failure
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~/x708v2/raspberry-pi-os $ </span>sudo python3 plsd.py
Testing Started---AC Power Loss OR Power Adapter Failure---
8. Automatically control the cooling Fan
<span style="color:#23AC38">pi@raspberrypi</span>:<span style="color:#50BEDB">~ $</span> cd ~/x708v2/raspberry-pi-os/
You can control the fan running at high speed or low speed via modify the CPU temperature threshold in fan.py script file

Navigation menu