Changes

Jump to navigation Jump to search

X735 Software

385 bytes added, 14:15, 23 March 2021
no edit summary
{{GD Template Impl}}
==How to setup safe shutdown script??==
1. Once you have logged into your Raspberry Pi from the command line, run the following commands
sudo apt-get update
x735off
== Other python sample code==<pre> #read_fan_speed.py #This At this time, the fan is only show how still not rotating, we need to get continue to install the pwm fan speed every second.control script We can manually run the following commands: sudo python read_fan_speed.py</pre> x735-v25/pwm_fan_control.py This is Then the phthon sample file to control x735 fan speed by CPU temperature. you can refer to this sample or modify it by your request. please contact us if you found some error for this filewill start working. You But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use the 'crontab' system command to execute this python file achieve it. please refer to get the function of speed adjustment according to temperature changes.following
===How to use crontab commandstart PWM fan when pi 4 boots===
sudo crontab -e
Add a line at the end of the file that reads like this:
@reboot python3 /home/pi/X735x735-V2.5/pwm_fan_control.py
Please note the path of this file.
Save and exit. In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.
== Other python sample code==<pre> #read_fan_speed.py #This is only show how to get the fan speed every second. sudo python read_fan_speed.py</pre> pwm_fan_control.py This is the phthon sample file to control fan speed by CPU temperature. you can refer to this sample or modify it by your request. please contact us if you found some error for this file. You can use the 'crontab' system command to execute this python file to get the function of speed adjustment according to temperature changes.
<!--Add review function! -->

Navigation menu