Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
This Power Over Ethernet HAT (Type B) is designed for Raspberry Pi 3B+/4B, it supports 802.3af Power-Sourcing equipment for PoE function.
You need to connect the PoE HAT to Raspberry Pi as picture
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 a terminal and download with commands below.
cd sudo apt-get install p7zip-full wget https://www.waveshare.com/w/upload/b/b7/PoE_HAT_B_code.7z 7z x PoE_HAT_B_code.7z -r -o./PoE_HAT_B_code
Open a terminal and run the example
cd ~/PoE_HAT_B_code/c/ make clean make sudo ./main
cd ~/PoE_HAT_B_code/python/ sudo python main.py
sudo nano ~/PoE_HAT_B_code/c/examples/main.c
Modify the last parameter of POE_HAT_Display() and save
sudo nano ~/PoE_HAT_B_code/python/examples/main.py
Modify the last parameter of POE.POE_HAT_Display() and save
Modify rc.local file
sudo nano /etc/rc.local
fi sudo /home/pi/PoE_HAT_B_code/c/main & #exit 0