Open main menu

Changes

X-C1 Software

561 bytes added, 23:34, 25 June 2021
no edit summary
==For Raspbian OS==
Once you have logged into your Raspberry Pi from the command line, run the following commands'''install'''<pre>cd ~ sudo apt-get update sudo apt-get install python-smbus sudo apt-get install pigpio python-pigpio python3-pigpio git clone https://github.com/geekworm-com/x-c1.git cd x-c1 sudo chmod +x *.sh sudo bash x-c1.shsudo reboot</pre>'''Test safe shutdown'''<pre>xoffxoff is safe shutdown commandpress button 1-2 seconds to rebootpress button 3 seconds to safe shutdown,press 7-8 seconds to force shutdown.</pre>'''uninstall'''<pre>sudo ./uninstall.sh</pre>==For ubuntu mate OS (test on ubuntu-mate-20.04.1-desktop)=='''install'''<pre>cd ~sudo apt updatesudo apt upgrade #DON'T forget this step, or 'sudo pigpiod' is failed.sudo rebootapt install -y unzip make gcc python gitsudo apt install python-setuptools
Test safe shutdown xoff #xoff is safe shutdown commandinstall pigpio library, you can press button 3 seconds also refer to safe shutdown, or long press 7http://abyz.me.uk/rpi/pigpio/download.htmlwget https://github.com/joan2937/pigpio/archive/master.zipunzip master.zipcd pigpio-8 seconds to force shutdown.mastersudo makesudo make install
At this time, if the fan is still not rotating, please run the following command: sudo apt install -y python /home/pi/x-c1/xpigpio python3-c1_pwm_fan_control.py&pigpio
cd ~
git clone https://github.com/geekworm-com/x-c1
cd x-c1
sudo chmod +x *.sh
sudo bash ubuntu-mate.sh
sudo reboot
</pre>
'''uninstall'''
<pre>
sudo ./uninstall_ubuntu.sh
</pre>
===How to start PWM fan when pi 4 boots===
But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use crontab system command to achieve it. please refer to the following