Changes

Jump to navigation Jump to search

X750

913 bytes removed, 18:02, 21 April 2020
* [https://www.amazon.com/shops/geekworm https://www.amazon.com/shops/geekworm]
* <nowiki>Email:support@geekworm.com</nowiki>
 
'''1. Enabled I2C support on the Raspbia.'''
 
<pre>
sudo raspi-config
</pre>
 
Select 5 Interfacing Options and then P5 I2C - Enable/Disable automatic loading. A prompt will appear asking Would you like the ARM I2C interface to be enabled?, select "Yes"
 
'''2. Install I2C-tools software package.'''
 
sudo apt-get install python-smbus
sudo apt-get install i2c-tools
 
'''3. Download the required script'''
 
git clone <nowiki>https://github.com/geekworm-com/x750.git</nowiki>
cd x750
chmod +x <nowiki>x750.sh</nowiki>
 
'''4. Install&run the script'''
 
sudo bash <nowiki>x750.sh</nowiki>
 
'''5. Setting up the command to turn off X750 from software'''
 
printf "%s\n" "alias x750off='sudo <nowiki>x750shutdown.sh</nowiki>'" &gt;&gt; ~/.bashrc
sudo reboot
 
'''6. Test the safe shutdown command'''
 
./x750off
 
'''7. How to read the battery voltage and percentage?'''
 
sudo phthon <nowiki>x750ups.py</nowiki>
Customers often ask if we support automatic and safe shutdown at low battery capacity? Our suggestion is: You can refer to the A file and the B file to program this idea yourself: The idea is to read the current voltage or battery capacity cyclically, and then judge the program to execute the automatic shutdown command when it is low or low voltage, of course This low battery or low voltage value is an empirical value, and you can specify it yourself in the program.

Navigation menu