Changes

Jump to navigation Jump to search

X735 Software

2,514 bytes added, 16:21, 30 November 2021
{{GD Template Impl}}
==For Raspbian / RetroPie / Twister OS v2.0.2==
This guide is only for X735 V2.5 shield based on RASPBIAN. (Not tested on Ubuntu, openmediavault, retropie or other third party OS like Manjaro,RoninDojo.)
'''install''' Assuming your system is updated, add these packages: sudo apt-get install -y python-smbus python sudo apt-get install -y pigpio python-pigpio python3-pigpio git git clone https://github.com/geekworm-com/x735-v2.5 cd x735-v2.5 sudo chmod +x *.sh sudo bash install.sh echo "alias x735off==How 'sudo x735softsd.sh'" >> ~/.bashrc sudo reboot '''Test safe shutdown''' x735off* x735off is safe shutdown command, you can run this command to safe shutdown.* press button 1-2 seconds to reboot* press button 3 seconds to setup safe shutdown ,* press 7-8 seconds to force shutdown. '''uninstall''' sudo ./uninstall.sh '''read-fan-speed.py''' sudo ./read_fan_speed After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice! '''How to make the fan scriptrun automatically after booting??==''' There are two ways to achieve it;1. Once you have logged into your Raspberry Pi from Put the command following line, run at the end of .bashrc file: (Default) cd ~ nano .bashrccopy the following commandsline to .bashrc file.  sudo aptpython /home/pi/x735-get updatev2.5/pwm_fan_control.py & NOTE: Maybe you need to modify the file path if you use other OS. In this way, this line of command will be executed automatically when the user logs in; 2. Use crontab to add a timed task. For details, please refer to [[How to add crontab job]]. ==For DietPi=='''install''' sudo apt-get install -y python-smbus python sudo apt-get install i2c-tools sudo apt-get install y pigpio python-pigpio python3-pigpiogit git clone https://github.com/geekworm-com/x735-v2.5 cd x735-v2.5 sudo chmod +x *.sh sudo bash install-dietpi.sh echo "alias x735off='sudo /usr/local/bin/x735softsd'" >> ~/.bashrc sudo reboot == For myNode OS and Umbrel ==About myNode, please refer to http://www.mynodebtc.com/ About Umbrel, please refetrto https://getumbrel.com/ '''Install''' login to mynode teminal via Putty or Xsheel tool, the default user name is `admin`, password is `bolt`, then run the following command: Login to mynode teminal via Putty or Xsheel tool, the default user name is `umbrel`, default password is `moneyprintergobrrr`, then run the following command: '''FAQ''' Q: What are the credentials to SSH into my Umbrel? A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address of your Umbrel>). The password is the same as your Umbrel's password. If you haven't set a password yet, the default password is: moneyprintergobrrr.
2. Download script and some sample code. git clone https://github.com/geekworm-com/X735-V2.5.git<pre>
3 sudo apt-get update sudo apt-get install -y python-smbus python pigpio python-pigpio python3-pigpio git wiringpi sudo apt-get install -y python-rpi. Setup scriptgpio rpi.gpio git clone https://github.com/geekworm-com/x735-v2.5 cd X735x735-V2v2.5 chmod +x *.sh sudo bash x735install-v25mynode.sh printf "%s\n" echo "alias x735off='sudo /usr/local/bin/x735softsd.sh'" >> ~/.bashrc sudo reboot</pre>
4. Reboot''' PWM fan control''' sodu rebootThe script is installed successfully and the fan starts to run
5. '''Test safe shutdown'''
x735off
* Please run 'x735off' to shut down or press the on-board button switch to shut down. <span style="color:red;">DON'T run the 'shutdown' linux command to shut down, otherwise the power of x735 will not be shut down.</span>
* press button switch 1-2 seconds to reboot
* press button switch 3 seconds to safe shutdown,
* press 7-8 seconds to force shutdown.
== About phthon sample code=='''uninstall''' 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.  read_fan_speed.py This is only show how to get the fan speed every second/uninstall-mynode.sh
Return to [[X735]]
<!--Add review function! -->
<comments />
<!--Please choose the -->
<!--Remove other categories, just keep the appropriate categories -->
[[Category:Product Manual]]
[[Category:Raspberry pi]]
[[Category:Knowledge]]

Navigation menu