Changes

Jump to navigation Jump to search

X-C1 Software

348 bytes added, 21:49, 23 June 2021
no edit summary
This guide is only for x-c1 adapter shield.
==How to setup script??For Raspbian OS==1. Once you have logged into your Raspberry Pi from the command line, run the following commands
sudo apt-get update
sudo apt-get install python-smbus
sudo apt-get install pigpio python-pigpio python3-pigpio
 
2. Download script and some sample code.
git clone https://github.com/geekworm-com/x-c1.git
 
3. Setup script.
cd x-c1
sudo chmod +x *.sh
sudo bash x-c1.sh
 
4. Reboot
sudo reboot
5. Test safe shutdown
xoff
#xoff is safe shutdown command, you can press button 3 seconds to safe shutdown, or long press 7-8 seconds to force shutdown.
At this time, if the fan is still not rotating, we need to continue to install the pwm fan control script We can manually please run the following commandscommand:
sudo python /home/pi/x-c1/x-c1_pwm_fan_control.py&
Then the pwm ===How to start PWM fan will start working.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
 
6. How to start PWM fan when pi 4 boots
sudo crontab -e
Save and exit (CTRK + O and ENTER to save it). In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.
== for myNode OS ==
login to mynode teminal via Putty or xsheel tool, the default user name is admin, password is bolt, then run the following command: or you can install app in mynode, setting/Applications/Manage/APPs, select 'Web SSH', then click 'install' button
sudo apt-get update
sudo apt-get install python-smbus
sudo apt-get install pigpio python-pigpio
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
chmod +x *.sh
sudo bash x-c1-mynode.sh
sudo pigpiod
python /home/admin/x-c1/x-c1_pwm_fan_control.py&
==How to uninstall script??==
run the following command:

Navigation menu