Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This is a PWM controlled Fan HAT, which is designed for Raspberry Pi, I2C Bus, PCA9685 driver, it can be used as a temperature monitor as well.
First at all, please connect the Fan HAT to Raspberry Pi by attaching it on the 40PIN GPIO
The standoffs and screws can be sued to hold the Fan HAT in another side.
Open the terminal of Raspberry Pi and install libraries as guides below
cd sudo apt-get install wiringpi wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb gpio -v
cd wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.60.tar.gz tar zxvf bcm2835-1.60.tar.gz cd bcm2835-1.60/ sudo ./configure sudo make && sudo make check && sudo make install
For more information and the newest libraries please refer to website:http://www.airspayce.com/mikem/bcm2835/
cd sudo apt-get update sudo apt-get install python-pip sudo pip install RPi.GPIO
cd sudo apt-get update sudo apt-get install python3-pip sudo pip install RPi.GPIO
Open the terminal and run the following commands to download example
cd sudo apt-get install p7zip-full wget https://www.waveshare.com/w/upload/0/06/Fan_HAT.7z 7z x Fan_HAT.7z -r -o./Fan_HAT
cd cd Fan_HAT/c/ make clean make sudo ./main
cd cd Fan_HAT/python/ sudo python main.py
Modify rc.local script
sudo nano /etc/rc.local
Add the lines below to the script, you need to set them in the front of exit 0
fi sudo /home/pi/Fan_HAT/c/main & #exit 0