Description
How to install PWR and FAN control script?
Step1: Install python3-pip if your OS did not included. Enter sudo apt-get install python3-pip
Then, Install python smbus lib: Enter sudo pip3 install smbus2
Step2: Setup Raspberry Pi 2 i2c interface, there are 3 ways.
1, Enter sudo nano /boot/config.txt, add dtparam=i2c_arm=on to the last column.
Ctrl + X to save and quit, then sudo reboot
2, Enter sudo raspi-config to open the configuration tool, select Interface Options.
Select I2C and Enable it, <Yes> – <OK> – <Finish>
Then sudo reboot
3, Turn it on from Raspberry Pi Configuration. then sudo reboot
Step3: Download file “starwar-case.git”. Enter git clone https://github.com/pibiger-tech/starwar-case.git
Enter cd starwar-case to the directory
Step4: Enter sudo tar -xvf pi-case-setup-python3.tar.gz to unzip pi-case-setup-python3.tar.gz
Enter cd pi-case-setup to the directory
Enter sudo chmod -R a+rwx * to get execute permissions
Enter sudo ./setup.sh to run the script
Step5: Enter sudo reboot to reboot the Raspberry pi and the starwar-case will works perfectly