Changes

Jump to navigation Jump to search

X735 Software

950 bytes removed, 12:52, 1 July 2021
no edit summary
This guide is only for X735 V2.5 shield based on RASPBIAN. (Not tested on Ubuntu, openmediavault, retropie or other OS.)
==How to setup script??=='''install'''1. Once you have logged into Assuming your Raspberry Pi from the command linesystem is updated, run the following commands sudo apt-get updateadd these packages:
sudo apt-get install python-smbus
sudo apt-get install pigpio python-pigpio python3-pigpio
git clone https://github.com/geekworm-com/x735-v2.5
2. Download Now that you have those files get into that directory, make the script executable, and some sample coderun it. git clone https:This creates a /usr/github.comlocal/geekworm-combin/x735-v2x735softsd.5.git 3. Setup sh script.for the button press:
cd x735-v2.5
sudo chmod +x x735-v25*.sh sudo bash x735-v25install.sh printf "%s\n" "alias x735off='sudo x735softsd.sh'" >> ~/.bashrc 4. Reboot
sudo reboot
5. Test safe shutdown x735off At this time, the fan is still not rotating, we need to continue to install the pwm fan control script We can manually run the following commands:'''uninstall''' python /home/pi/x735-v2.5/pwm_fan_control.pyThen the x735 fan will start working. 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 [[File:Crontab-step1.png]] Choose "1" then press Enter Add a line at the end of the file that reads like this: @reboot python /home/pi/x735-v2.5/pwm_fan_control.py Please note the path of this file. [[File:Crontab-step2.png]] 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 prompteduninstall.sh
== How to '''read the -fan RPM?==please refer to /home/pi/x735-v2.5/read_fan_speedspeed.py, and this is only show how to get the fan speed every second, run the following command.''' sudo python /home/pi/x735-v2.5/read_fan_speed.py
After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice!
Return to [[X735]]

Navigation menu