Difference between revisions of "X-C1 Software"
Line 2: | Line 2: | ||
This guide is only for x-c1 adapter shield. | This guide is only for x-c1 adapter shield. | ||
− | == | + | ==For Raspbian OS== |
− | + | Once you have logged into your Raspberry Pi from the command line, run the following commands | |
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install python-smbus | sudo apt-get install python-smbus | ||
sudo apt-get install pigpio python-pigpio python3-pigpio | sudo apt-get install pigpio python-pigpio python3-pigpio | ||
− | |||
− | |||
git clone https://github.com/geekworm-com/x-c1.git | git clone https://github.com/geekworm-com/x-c1.git | ||
− | |||
− | |||
cd x-c1 | cd x-c1 | ||
sudo chmod +x *.sh | sudo chmod +x *.sh | ||
sudo bash x-c1.sh | sudo bash x-c1.sh | ||
− | |||
− | |||
sudo reboot | sudo reboot | ||
− | + | Test safe shutdown | |
xoff | xoff | ||
#xoff is safe shutdown command, you can press button 3 seconds to safe shutdown, or long press 7-8 seconds to force shutdown. | #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, the fan is still not rotating, | + | At this time, if the fan is still not rotating, please run the following command: |
− | |||
− | |||
sudo python /home/pi/x-c1/x-c1_pwm_fan_control.py& | sudo python /home/pi/x-c1/x-c1_pwm_fan_control.py& | ||
− | + | ===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 | 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 | ||
− | |||
− | |||
sudo crontab -e | sudo crontab -e | ||
Line 49: | Line 38: | ||
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. | 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??== | ==How to uninstall script??== | ||
run the following command: | run the following command: |
Revision as of 21:49, 23 June 2021
This guide is only for x-c1 adapter shield.
Contents
For Raspbian OS
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 git clone https://github.com/geekworm-com/x-c1.git cd x-c1 sudo chmod +x *.sh sudo bash x-c1.sh sudo reboot
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, please run the following command:
sudo python /home/pi/x-c1/x-c1_pwm_fan_control.py&
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
sudo crontab -e
Choose "1" then press Enter
Add a line at the end of the file that reads like this:
@reboot python /home/pi/x-c1/x-c1_pwm_fan_control.py
Please note the path of this file.
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:
cd ~/x-c1 ./uninstall_x-c1.sh
How to read the fan RPM?
X-C1 don't support read fan RPM!
Enable comment auto-refresher
Anonymous user #73
Permalink |
Lisa
Anonymous user #72
Permalink |
Anonymous user #71
Permalink |
Anonymous user #70
Permalink |
Walker
Anonymous user #69
Permalink |
Anonymous user #68
Permalink |
Harry
Harry
Harry
Anonymous user #66
Permalink |
Anonymous user #67
Anonymous user #66
Anonymous user #64
Permalink |
Anonymous user #65
Anonymous user #63
Permalink |
Anonymous user #65
Anonymous user #62
Permalink |
Lisa
Anonymous user #61
Permalink |
Anonymous user #65
Anonymous user #65
Anonymous user #59
Permalink |
Anonymous user #60
Anonymous user #61
Anonymous user #58
Permalink |
Lisa
Anonymous user #58
Lisa
Anonymous user #56
Permalink |
Lisa
Anonymous user #57
Lisa
Anonymous user #55
Permalink |
Lisa
Anonymous user #54
Permalink |
Lisa
Anonymous user #53
Permalink |
Anonymous user #52
Permalink |
Lisa
Anonymous user #51
Permalink |
Lisa
Anonymous user #50
Permalink |
Anonymous user #49
Permalink |
Anonymous user #48
Permalink |
Lisa
Anonymous user #47
Permalink |
Lisa
Anonymous user #46
Permalink |
Lisa
Anonymous user #44
Permalink |
Lisa
Anonymous user #45
Anonymous user #46
Anonymous user #43
Permalink |
Anonymous user #42
Permalink |
Lisa
Anonymous user #41
Permalink |
Lisa
Lisa
Permalink |
Anonymous user #40
Anonymous user #40
Permalink |
Anonymous user #39
Permalink |
Lisa
Anonymous user #38
Permalink |
Lisa
Anonymous user #37
Permalink |
Anonymous user #36
Permalink |
Lisa
Anonymous user #35
Permalink |
Lisa
Anonymous user #34
Permalink |
Anonymous user #33
Permalink |
Anonymous user #32
Permalink |
Lisa
Anonymous user #31
Permalink |
Lisa
Anonymous user #30
Permalink |
Lisa
Anonymous user #28
Permalink |
Anonymous user #29
Anonymous user #27
Permalink |
Lisa
Anonymous user #25
Permalink |
Lisa
Anonymous user #26
Lisa
Anonymous user #17
Anonymous user #24
Permalink |
Anonymous user #24
Permalink |
Lisa
Anonymous user #24
Anonymous user #24
Lisa
Anonymous user #24
Anonymous user #23
Permalink |
Anonymous user #8
Permalink |
Anonymous user #21
Permalink |
Lisa
Anonymous user #22
Permalink |
Anonymous user #21
Permalink |
Anonymous user #21
Lisa