Difference between revisions of "PoE HAT (C)"

From Waveshare Wiki
Jump to: navigation, search
Line 31: Line 31:
 
You need to connect the PoE HAT to Raspberry Pi as picture<br />
 
You need to connect the PoE HAT to Raspberry Pi as picture<br />
 
[[File:PoE-HAT-B-details-5.jpg|600px]]
 
[[File:PoE-HAT-B-details-5.jpg|600px]]
===Enable I2C Interface===
 
I2C interface is required for the OLED display, you need to first enable the i2c interface for properly work.<br />
 
Open a terminal of Raspberry Pi and configure:<br />
 
sudo raspi-config
 
Choose Interfacing Options -> I2C -> Yes
 
  
===Libraries installation===
 
{{Libraries Installation for RPi}}
 
===Download example===
 
Open a terminal and download with commands below. <br />
 
<pre>
 
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
 
</pre>
 
===Run the example===
 
Open a terminal and run the example
 
;C
 
<pre>
 
cd ~/PoE_HAT_B_code/c/
 
make clean
 
make
 
sudo ./main
 
</pre>
 
;python
 
<pre>
 
cd ~/PoE_HAT_B_code/python/examples
 
sudo python main.py
 
</pre>
 
===Auto-run===
 
Modify rc.local file
 
<pre>
 
sudo nano /etc/rc.local
 
</pre>
 
* Add the following line in front of the line exit 0
 
<pre>
 
fi
 
sudo /home/pi/PoE_HAT_B_code/c/main &
 
#exit 0
 
</pre>
 
 
or
 
 
<pre>
 
fi
 
sudo python3 /home/pi/PoE_HAT_B_code/python/examples/main.py &
 
#exit 0
 
</pre>
 
  
 
==Resources==
 
==Resources==

Revision as of 02:45, 20 April 2021

PoE HAT (C)
PoE HAT (B)

Power Over Ethernet HAT (Type B) For Raspberry Pi 3B+/4B, 802.3af Power-Sourcing Equipment Required
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

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
PoE-HAT-B-details-5.jpg


Resources

Documents

Support

Support

If you require technical support, please go to the Support page and open a ticket.