Changes

Jump to navigation Jump to search

X-C1 Software

678 bytes added, 15:36, 10 January 2023
Support [https://getumbrel.com/ Umbrel] now.
The script is '''not tested''' VMware ESXI ARM operating system. To make the 3pin PWM cooling fan running, please remove/pull out the yellow cableif you use X-C1 V1.3 version.Remove the jumper cap on "Fan FS" PIN of X-C1 V2.0 to let the fan running at full speed.
NOTE:
==For Raspbian / RetroPie / Twister OS v2.0.2 ==
Test this script based on the following OS:
* Tested '2022-04-04-raspios-buster-armhf.img" on Apr. 13, 2022;
* Raspbian 2021-05-07-raspios-buster-armhf, 2021-10-30-raspios-bullseye-armhf.img, 2021-10-30-raspios-bullseye-armhf-lite.img
* RetroPie 4.7.1
* Twister OS v2.0.2 / Twister OS 2.1.2
'''install'''
cd ~
sudo apt-get update
sudo apt-get -y upgrade sudo apt-get -y install i2c-tools python3-smbus python3-y git pigpio rpi.gpio sudo apt-get install -y python-pigpio python3-pigpiogit sudo apt-get install -y python-smbus pigpio python3-smbuspigpio
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot
 
If reboot fails, please force shutdown or power off and restart
''' PWM fan control'''
sudo apt-get upgrade
sudo apt-get install -y unzip make gcc python git wiringpi python3-pigpio python-setuptoolspython3-rpi.gpio
sudo apt-get install -y python3-distutils
About myNode, please refer to http://www.mynodebtc.com/
About Umbrel, please refetrto refer to https://getumbrel.com/
'''Install'''
== For DietPi==
About DietPi, please refer to [https://dietpi.com/ URL]
 
Test 'DietPi_RPi-ARMv6-Bullseye.image' on May 5th, 2022.
 
'''Install'''
<pre>
sudo apt-get update
sudo apt-get install git pigpio python pythonpigpiod python3-pigpio pythonpython3-smbus wiringpi python3-rpi.gpio -y
git clone https://github.com/geekworm-com/x-c1
cd x-c1
A: If you find an error similar to the above, it is because pigpiod library is not started, we need to run pigpiod first,
sudo pigpiod
python 'your directory'/x-c1/fan.py &
If 'sudo' command request a password, you can use the following command:
echo 'your password' | sudo -S pigpiod
python 'your directory'/x-c1/fan.py &
You can put these two lines in the /etc/rc.local file so that it will run automatically after booting.
If sudo asks for a password, you can use the following command
echo 'your password' | sudo -S pigpiod
python 'your directory'/x-c1/fan.py &
[[File:Volumio-rc-local.jpg|800px]]
Q2:How to get the current fan speed value? As I remember old x735 software where with such read_fan_speed.py script example, but not found such in X-C1.
 
A: The X-C1's PWM fan is a 3Pin FAN, and does not support reading speed. The Fan of X735 is a 4Pin PWM fan.
<hr/>

Navigation menu