Stufin
Home Quick Cart Profile

Raspberry PI POE+Hat for 3B+ and Pi 4

Buy Now

Power Output

Up to 25.5W

PoE Standard

IEEE 802.3af

Input Voltage

37V-57V (PoE)

Output Voltage

5V (Raspberry Pi)

Efficiency

>85%

Operating Temperature

0C to 50C

Dimensions

65mm x 56.5mm x 13.5mm

Applications

The Raspberry PI POE+ Hat is ideal for various IoT projects, including

Industrial automation and monitoring systems

Smart home and building automation applications

Remote surveillance and security systems

IoT gateways and edge computing devices

Digital signage and kiosk installations

By providing a convenient and reliable power-over-Ethernet solution, the Raspberry PI POE+ Hat simplifies IoT project development and deployment, making it an excellent choice for engineers, developers, and hobbyists alike.

Pin Configuration

  • Raspberry Pi POE+ Hat for 3B+ and Pi 4 Pinout Guide
  • The Raspberry Pi POE+ Hat is a versatile Power over Ethernet (PoE) adapter designed for the Raspberry Pi 3B+ and Pi 4 models. This documentation provides a comprehensive pinout guide for the POE+ Hat, explaining each pin's function and how to connect them.
  • Pinout Structure:
  • The POE+ Hat has a 40-pin GPIO header, identical to the Raspberry Pi's GPIO header. The pinout structure is as follows:
  • The pins are numbered from 1 to 40, with the even-numbered pins on the left side (when the GPIO header is facing upwards) and the odd-numbered pins on the right side.
  • The pins are grouped into several sections, including power, ground, GPIO, I2C, SPI, and UART.
  • Pinout Breakdown:
  • Here's a point-by-point explanation of each pin on the POE+ Hat:
  • Power Pins (Pins 1-6, 17-20):
  • Pin 1: 3.3V Power - Provides 3.3V power from the Raspberry Pi.
  • Pin 2: 5V Power - Provides 5V power from the Raspberry Pi.
  • Pin 3: 3.3V Power - Provides 3.3V power from the Raspberry Pi.
  • Pin 4: 5V Power - Provides 5V power from the Raspberry Pi.
  • Pin 5: GND - Ground connection.
  • Pin 6: GND - Ground connection.
  • Pin 17: Vin - Power input from the PoE adapter (12V-24V).
  • Pin 18: Vin - Power input from the PoE adapter (12V-24V).
  • Pin 19: GND - Ground connection for the PoE adapter.
  • Pin 20: GND - Ground connection for the PoE adapter.
  • Ground Pins (Pins 7-9, 21, 25, 30, 34, 39):
  • Pin 7: GND - Ground connection.
  • Pin 8: GND - Ground connection.
  • Pin 9: GND - Ground connection.
  • Pin 21: GND - Ground connection.
  • Pin 25: GND - Ground connection.
  • Pin 30: GND - Ground connection.
  • Pin 34: GND - Ground connection.
  • Pin 39: GND - Ground connection.
  • GPIO Pins (Pins 10-15, 22-24, 26-29, 31-33, 35-38):
  • Pin 10: GPIO 17 - General-purpose input/output pin.
  • Pin 11: GPIO 23 - General-purpose input/output pin.
  • Pin 12: GPIO 24 - General-purpose input/output pin.
  • Pin 13: GPIO 10 - General-purpose input/output pin.
  • Pin 14: GPIO 9 - General-purpose input/output pin.
  • Pin 15: GPIO 25 - General-purpose input/output pin.
  • Pin 22: GPIO 6 - General-purpose input/output pin.
  • Pin 23: GPIO 13 - General-purpose input/output pin.
  • Pin 24: GPIO 19 - General-purpose input/output pin.
  • Pin 26: GPIO 12 - General-purpose input/output pin.
  • Pin 27: GPIO 16 - General-purpose input/output pin.
  • Pin 28: GPIO 20 - General-purpose input/output pin.
  • Pin 29: GPIO 21 - General-purpose input/output pin.
  • Pin 31: GPIO 5 - General-purpose input/output pin.
  • Pin 32: GPIO 6 - General-purpose input/output pin.
  • Pin 33: GPIO 13 - General-purpose input/output pin.
  • Pin 35: GPIO 19 - General-purpose input/output pin.
  • Pin 36: GPIO 26 - General-purpose input/output pin.
  • Pin 37: GPIO 20 - General-purpose input/output pin.
  • Pin 38: GPIO 21 - General-purpose input/output pin.
  • I2C Pins (Pins 27 and 28):
  • Pin 27: SCL - I2C clock signal.
  • Pin 28: SDA - I2C data signal.
  • SPI Pins (Pins 19, 21, 23, and 24):
  • Pin 19: SPI_MISO - SPI master in, slave out signal.
  • Pin 21: SPI_MOSI - SPI master out, slave in signal.
  • Pin 23: SPI_SCLK - SPI clock signal.
  • Pin 24: SPI_CE0_N - SPI chip enable signal (active low).
  • UART Pins (Pins 32 and 33):
  • Pin 32: TXD - UART transmit data signal.
  • Pin 33: RXD - UART receive data signal.
  • PoE Pins (Pins 37 and 38):
  • Pin 37: POE_RST_N - PoE reset signal (active low).
  • Pin 38: POE_MODE - PoE mode selection signal (high for IEEE 802.3af mode, low for IEEE 802.3at mode).
  • Connection Guidelines:
  • When connecting the POE+ Hat to your Raspberry Pi and external devices, ensure the following:
  • Use the correct voltage levels for power inputs (3.3V, 5V, or 12V-24V).
  • Connect the GPIO pins to suitable devices, such as sensors, actuators, or communication modules.
  • Use the I2C, SPI, and UART pins according to the respective communication protocols.
  • Connect the PoE pins correctly to the PoE adapter and Ethernet cable.
  • Ensure proper grounding and power connections to avoid damage to the POE+ Hat or Raspberry Pi.
  • By following this pinout guide and connection guidelines, you can successfully integrate the Raspberry Pi POE+ Hat into your IoT projects, leveraging its features and capabilities.

Code Examples

Raspberry Pi POE+ Hat for 3B+ and Pi 4 Documentation
Overview
The Raspberry Pi POE+ Hat is a Power over Ethernet (PoE) add-on board designed for the Raspberry Pi 3B+ and Pi 4 models. This hat enables the Raspberry Pi to receive power and communicate over a single Ethernet cable, making it ideal for IoT and network-based projects.
Technical Specifications
Compatible with Raspberry Pi 3B+ and Pi 4 models
 Supports IEEE 802.3af PoE standard
 Maximum power output: 25.5W
 Operating temperature range: 0C to 50C
 Dimensions: 65mm x 56.5mm x 12.5mm
Getting Started
To use the Raspberry Pi POE+ Hat, follow these steps:
1. Connect the hat to the Raspberry Pi 3B+ or Pi 4 using the 40-pin GPIO header.
2. Connect the Ethernet cable to the hat and the other end to a PoE-enabled switch or injector.
3. Power on the Raspberry Pi and ensure it is configured to use the PoE hat as the power source.
Code Examples
### Example 1: Basic Networking with PoE
This example demonstrates how to use the Raspberry Pi POE+ Hat for basic networking activities:
```python
import os
import socket
# Get the IP address of the Raspberry Pi
ip_address = os.popen('ip addr show eth0 | grep "inet " | awk '{print $2}' | cut -d/ -f1').read().strip()
# Create a socket object
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Bind the socket to the IP address and port 8080
sock.bind((ip_address, 8080))
# Listen for incoming connections
sock.listen(1)
print("Listening on port 8080...")
while True:
    # Accept incoming connections
    conn, addr = sock.accept()
    print("Connected by", addr)
# Handle incoming data
    data = conn.recv(1024)
    if not data:
        break
    conn.sendall(data)
# Close the connection
    conn.close()
sock.close()
```
### Example 2: IoT Sensor Monitoring with PoE
This example demonstrates how to use the Raspberry Pi POE+ Hat for IoT sensor monitoring using a temperature and humidity sensor (e.g., DHT11):
```python
import Adafruit_DHT
import time
# Setup the DHT11 sensor
DHT_SENSOR = Adafruit_DHT.DHT11
DHT_PIN = 17
while True:
    # Read temperature and humidity data from the sensor
    humidity, temperature = Adafruit_DHT.read_retry(DHT_SENSOR, DHT_PIN)
# Print the data
    print("Temp={0:0.1f}C  Humidity={1:0.1f}%".format(temperature, humidity))
# Send the data to a remote server (e.g., using HTTP or MQTT)
    # Implement your own data transmission logic here
# Wait for 1 minute before taking the next reading
    time.sleep(60)
```
Troubleshooting and FAQs
Q: How do I configure my PoE switch or injector to work with the Raspberry Pi POE+ Hat?
A: Refer to the documentation of your PoE switch or injector for configuration instructions.
 Q: Can I use the Raspberry Pi POE+ Hat with other Raspberry Pi models?
A: No, the Raspberry Pi POE+ Hat is specifically designed for the Raspberry Pi 3B+ and Pi 4 models.
Important Notes
Ensure that your PoE switch or injector is compatible with the IEEE 802.3af PoE standard.
 Avoid overloading the Raspberry Pi POE+ Hat with excessive power consumption.
 Always follow proper safety precautions when working with electrical components.