Changes

Jump to navigation Jump to search

X729-Software

No change in size, 18:11, 19 November 2022
7.1 Run the command to read battery voltage and percentage
pi@raspberrypi:~/x729 $ sudo python3 bat.py
7.2 Change the battery low voltage to implement safe shutdown. default is less than 3.00Vdc.
pi@raspberrypi ~ $ sudo nano bat.py
[[File:X729-3.png|none]]
Note: the voltage range must be 2.5~4.1vdc.
 
7.3 Optional - if you want to run Python Script automatically on Bootup then run the command
pi@raspberrypi:~/x729 $ sudo crontab -e
 
7.4 Add a line at the end of the file that reads like this:
[[File:X729-4.png|none]]
 
Save and exit. In nano, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.

Navigation menu