X715 Software

Revision as of 10:13, 27 May 2026 by Admin (talk | contribs) (Replace <comments/> with <comment-streams />)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 ⚠️  Deprecated: This page is outdated and may contain inaccurate information. It is kept for reference only. Please refer to X715-script.

This guide is only for X715 V1.0 shield based on RASPBIAN.

How to control PWM fan speed

The PWM fan is not rotating when X715 is connected to PI 4, we need to to install the pwm fan control script

#fan control code need pigpiod library, so we need to install it firstly.
sudo apt-get update
sudo apt-get install -y pigpio python3-pigpio python3-rpi.gpio
sudo systemctl enable pigpiod
git clone https://github.com/geekworm-com/x715
//reboot to enable pigpiod
sudo reboot
cd ~
python3 /home/pi/x715/pwm_fan_control.py&

Then the x715 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

How to start PWM fan when pi 4 boots

The following comment is from X735 V2.5 Software

sudo crontab -e

 

Choose "1" then press Enter

Add a line at the end of the file that reads like this:

@reboot python3 /home/pi/x715/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.

How to read the fan RPM?

please refer to /home/pi/x715/read_fan_speed.py, and this is only show how to get the fan speed every second, run the following command.

sudo python3 /home/pi/x715/read_fan_speed.py

Return to X715