Close
0%
0%

Raspberry Pi Multifunctional Lora HAT

Compact Raspberry Pi HAT with LoRa 433 MHz, temp & humidity sensor, RGB LED & 220 VAC relay for remote IoT monitoring control

Similar projects worth following
Introduction The LoRaSense RGB Pi HAT is a compact, stackable expansion board that replaces four+ modules on your Raspberry Pi: long-range LoRa 433 MHz, high-precision temp/humidity sensing, programmable RGB LED, and a 220 VAC/10 A relay. Ideal for smart agriculture, remote weather stations, home automation and industrial monitoring Key Features 1. I²C Temp & Humidity – ±0.2 °C and ±2 % RH accuracy for greenhouse and climate control. 2. SX1278 LoRa 433 MHz – up to 10 km line-of-sight, ultra-low power for remote sensor networks. 3. 220 VAC/10 A Relay – switch pumps, fans or lights directly from Pi or LoRa command. 4. RGB LED & WS2812B Header – real-time status feedback or ambient lighting, programmable via GPIO. 5. UART & GPIO Expansion – connect ESP32, STM32, Arduino or extra sensors via terminal blocks. 6. Stackable 40-Pin Header – add more HATs without losing functionality.

Introduction  
The LoRaSense RGB Pi HAT is an all-in-one Raspberry Pi expansion board that replaces multiple modules with a single, compact PCB. It combines long-range LoRa (433 MHz), a high-precision temperature & humidity sensor, a programmable RGB LED (and WS2812B header), plus a 220 VAC/10 A relay—all stackable on your Pi’s 40-pin header

Key Features  
- I²C Temp & Humidity
  - SHT31 sensor, ±0.2 °C and ±2 % RH accuracy  
- SX1278 LoRa 433 MHz  
  - Up to 10 km line-of-sight, ultra-low power  
- High-Voltage Relay
  - 220 VAC / 10 A switching for pumps, fans, lights  
- RGB LED + WS2812B Header 
  - Status indicator or mood lighting, programmable via GPIO  
- UART & GPIO Expansion
  - Terminal blocks for ESP32/STM32/Arduino + 8 extra GPIOs  
- Stackable 40-Pin Header
  - Add more HATs without losing any pins or functionality  

Hardware Design  
1. PCB Layout  
   - 4-layer FR-4, ground pours for EMI control, four 3 mm mounting holes  
2. Module Placement
   - SX1278 module for optimal antenna performance  
   - Relay isolated from sensor lines to minimize noise  
3. Antenna Interface  
   - SMA connector for an external LoRa antenna  

# Assembly & Software  
- Getting Started PDF
  - Pinout, wiring diagrams, soldering tips  


  1. Read SHT31 via `adafruit-circuitpython-sht31d`  
  2. Send/receive LoRa packets with `pySX127x`  
  3. Control relay & RGB LED based on sensor thresholds  
- Node-RED Flow
  - Optional example for MQTT-over-LoRa and dashboard  

# Usage Examples  
- Smart Greenhouse 
  - Automated irrigation when humidity < 40 % RH via HAT relay  
- Remote Weather Station  
  - Hourly temp/humidity uplinks to The Things Network → InfluxDB  
- Alert System
  - Flash LED red if T > 35 °C or humidity > 80 %  

Datasheet.pdf

Datasheet and Quick Guide

Adobe Portable Document Format - 1.41 MB - 07/05/2025 at 09:56

Preview

  • 1 × SX1278 LoRa module
  • 1 × SHT31 temp/humidity
  • 1 × 220 VAC/10 A relay
  • 1 × RGB LED
  • 1 × 40 pin Stackable Header

View all 6 components

View project log

  • 1
    1. Gather Components

    - LoRaSense RGB Pi HAT PCB  
    - 40-pin stackable header  
    - SX1278 LoRa 433 MHz module  
    - SHT31 temperature & humidity sensor  
    - 220 VAC / 10 A relay  
    - 5050 RGB LED (if not already soldered)  
    - SMA antenna + cable  
    - Raspberry Pi (any model with 40-pin header)  
    - Soldering iron, solder, flux  
    - Dupont wires or terminal blocks (optional for external microcontrollers)  

  • 2
    2. Solder the Stackable Header

    1. Push the 40-pin stackable header into your Pi’s GPIO so it stands straight.  
    2. Slip the LoRaSense PCB onto the header—pins should line up exactly.  
    3. Tack-solder one corner pin on the hat to hold it in place.  
    4. Inspect alignment, then solder all remaining header pins on the hat. 

  • 3
    3. Mount & Solder the Modules

    1. Place the SX1278 module into its footprint; ensure the SMA connector hole lines up.  
    2. Solder the SX1278 ground pins first, then VCC (3.3 V) and the SPI lines.  
    3. Seat the SHT31 sensor in its I²C footprint; solder GND, VCC, SDA, and SCL.  
    4. Position the relay; solder its coil pins (VCC, IN) and contact pins (COM, NO, NC).  
    5. If your RGB LED is not pre-populated, solder the 5050 LED and verify its orientation.  

View all 6 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates