• sales

    +86-0755-88291180

Raspberry Pi PoE HAT (B) User Guide

Instroduction

This Power Over Ethernet HAT (Type B) is designed for Raspberry Pi 3B+/4B, it supports 802.3af Power-Sourcing equipment for PoE function.

Features

  • Standard Raspberry Pi 40PIN GPIO header, supports Raspberry Pi 3B+/4B
  • PoE (Power Over Ethernet) capability,802.3af-compliant
  • Fully isolated switched-mode power supply (SMPS)
  • 0.91" OLED, for monitoring processor temperature, IP address, and fan status in real-time
  • Onboard cooling fan, allows auto running on powerup OR programmable control, configured by the switch
  • Integrates PCF8574 IO expander for I2C bus, providing pin P0 for directly fan control, and more spare IO pin

Specifications

  • PoE Power input: 37V ~ 57V DC in
  • PoE Power output: 5V 2.5A DC out
  • Network standard: 802.3af PoE
  • Dimensions: 56.5mm x 65mm
  • OLED size: 0.91inch
  • OLED pixels: 128x32
  • OLED driver: SSD1306
  • OLED display color: White

Examples

Hardware connection

You need to connect the PoE HAT to Raspberry Pi as picture

Libraries installation

Open the terminal of Raspberry Pi and install libraries as guides below

Install WiringPi Library

cd
sudo apt-get install wiringpi
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v

Install C Library bcm2835

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/

Install Python Library

For python2
cd
sudo apt-get update
sudo apt-get install python-pip
sudo pip install RPi.GPIO
For python3
cd
sudo apt-get update
sudo apt-get install python3-pip
sudo pip install RPi.GPIO

Download example

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

Run the example

Open a terminal and run the example

C
cd ~/PoE_HAT_B_code/c/
make clean 
make
sudo ./main
python
cd ~/PoE_HAT_B_code/python/
sudo python main.py

Set the temperature threshold

C
sudo nano ~/PoE_HAT_B_code/c/examples/main.c

Modify the last parameter of POE_HAT_Display() and save

python
sudo nano ~/PoE_HAT_B_code/python/examples/main.py

Modify the last parameter of POE.POE_HAT_Display() and save

Auto-run

Modify rc.local file

sudo nano /etc/rc.local
  • Add the following line in front of the line exit 0
fi
sudo /home/pi/PoE_HAT_B_code/c/main &
#exit 0
TAG: Sipeed Lichee Tang Nano1K FPGA MINI Development Board GW1NZ-1 RV1103 Raspberry Pi 5 DSI display Raspberry Pi Autofocus Camera Raspberry Pi 5 UPS HAT E 4-Port For 21700-Li-Battery (NOT includ) 5V6A Uninterruptible Power Supply Raspberry Pi DSI Scr ESP32-S3 GC9A01A 0.85inch LCD ESP32 Mini TV ESP32 S3 Development Board 1.46 inch Round LCD 1.46inch Display 412x412 QMI8658 Sensor / MIC / SD /MP3 Audio /Battery Port LVGL/HMI For Arduino TVBOX Kit Luckfox Pico Ultra And 4inch LCD RGB Captive TouchScreen Display ESP32 C6 Development Board 1.47 inch LCD Display Screen ST7789 For Arduino WiFi6/LVGL/HMI Onborad SD-Port/RGB-LED Raspberry Pi 5 RTC Raspberry Pi Pico Display Raspberry Pi Camera V2 pcb800099-v.9 ESP32-S3 A7670E 4G development board supports LTE Cat-1/2G/GNSS positioning/WiFi/Bluetooth EVAL-ADXL354CZ EVAL BOARD Raspberry Pi 5 ABS Case Sipeed Lichee Tang Nano 9K FPGA MINI Development Board GW1NR-9 GOAI Gowin