X715 Software

From Geekworm Wiki
Jump to navigation Jump to search


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 install -y pigpio python-pigpio python3-pigpio
sudo systemctl enable pigpiod
git clone https://github.com/geekworm-com/x715
//reboot to enable pigpiod
sudo reboot
cd ~
python /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

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/x715/pwm_fan_control.py

Please note the path of this 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 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 python /home/pi/x715/read_fan_speed.py

Return to X715

Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #3

3 months ago
Score 0++

Hi Geekworm!

Is there a way to shut down the X715 after the Pi shut down? (as the momentary switch has been removed, poweroff now needs to come after a safe shutdown of the Pi)

Lisa

3 months ago
Score 0++
Hi,sorry x715 canceled the safe shutdown function

Anonymous user #3

3 months ago
Score 0++

'm not akong for a safe shutdown of the Pi, I know you've removed that feature.

I want to shutdown the X715 with a script

- as I really really do not want two buttons for one machine [quote]


Hi,sorry x715 canceled the safe shutdown function [/quote]

Lisa

3 months ago
Score 0++
Sorry, the current version does not support safe shutdown through scripts

Anonymous user #1

5 months ago
Score 0++

Bonjour,

mon fan ne démarre pas après l'étape 1

Lisa

5 months ago
Score 0++
Hi,Have you successfully downloaded and installed the script? Are you using a Raspberry Pi system or another system? Could you please email to us and tell us more information? So that we can better understand the problem.and please tell us your order number,thanks~

Anonymous user #2

5 months ago
Score 0++

Bonjour, RPI 4 sous buster mis a jour, j'ai réussi a démarrer le fan en incluant "sudo rpigpiod" avant #python /home/pi/x715/pwm_fan_control.py le terminal ne me rend pas la main.

je suis obligé d'ouvrir un autre terminal pour la suite des commandes. cela doit bloquer le processus car au redémarrage le fan ne redémarre pas sans la commande "sudo rpigpiod"

Harry

5 months ago
Score 0++

Hi, the script be updated. thanks.

the python code need pigpiod library, so need to install firstly.

Regards,

Harry / Geekworm