MeshMayhem

Raspberry Pi hardware

LoRa HATs for the Raspberry Pi

Open boards that turn a Raspberry Pi into a fixed 1 W mesh node for Meshtastic® or MeshCore. One radio with everything onboard, the same board built for power over Ethernet, or two radios side by side.

  • 915 MHz
  • 1 W · E22P-915M30S
  • Meshtastic
  • MeshCore
  • JLCPCB-ready
Mesh HAT Duo: a green Raspberry Pi HAT with two Ebyte E22P radio modules and two gold SMA antenna jacks
Mesh HAT Duo · rendered from the board design

Prototypes. Every board here is fully designed, passes the design-rule check and is ready to order, but none has been built or tested yet. The pictures are renders of the real board files, not photos. Results will be posted here once boards are built.

The boards

Three boards, one idea

All three use Ebyte's E22P-915M30S, a 1 W SX1262 module with band filtering built in. All sit on the Pi's 40-pin header and fit the standard 65 × 56.5 mm HAT outline.

Single radio · everything onboard

Mesh HAT v1.3

An outdoor node on one board. One 1 W radio, a real GPS soldered on, a clock that keeps time with no internet, five status lights, and room for sensors.

  • Radio1 × E22P, 1 W
  • GPSu-blox MAX-M10S
  • ClockPCF8563 + CR2032
  • Works onPi 3 · 4 · 5 · Zero 2 W
  • Edge SMA jack about 4 mm from the radio, with an ESD diode
  • GPS PPS timing into the Pi for accurate network time
  • Power, TX, packet, GPS-fix and heartbeat lights, with an off jumper
  • Two Qwiic ports, fan header, expansion header and two buttons
  • Same pins as the PiMesh-1W V2, so the stock Meshtastic config just works

Best for a single, self-contained outdoor node that knows where it is and what time it is.

Single radio · PoE-powered

Mesh HAT v1.3 PoE

The v1.3 board reworked for power over Ethernet. The coin cell and clock are gone, since GPS and the network keep time. A 2×2 5 V input sits in exactly the same spot as the Duo's, so the same PoE+ board stacks on top.

  • Radio1 × E22P, 1 W
  • GPSu-blox MAX-M10S
  • Power inPoE+ board or Pi 5 V
  • Works onPi 3 · 4 · 5
  • 5 V reaches the Pi's header through a solid inner copper layer, sized for PoE+ current
  • Same radio, GPS, lights, buttons, Qwiic ports and fan header as v1.3
  • Radio is factory-assembled; only the SMA jack and Pi socket are hand-soldered
  • The expansion header stays, but can't take a cable while the PoE+ board is on top

Best for a single node on a mast or roof, powered and networked by one Ethernet cable.

Two radios · PoE-ready

Mesh HAT Duo

Two 1 W radios on one Pi 4, each with its own antenna. Run Meshtastic and MeshCore at the same time, or two Meshtastic setups. A matching PoE+ board (below) stacks on top so one Ethernet cable carries power and data.

  • Radios2 × E22P, 1 W each
  • GPSPlug-in module header
  • Power inPi 5 V or 2×2 5 V input
  • Designed forRaspberry Pi 4
  • Radio 0 SMA on the left edge, radio 1 SMA on the bottom edge
  • Each radio has its own ferrite, filtering and ESD protection
  • 5 V from the PoE+ board reaches the Pi's header through a solid inner copper layer
  • A transmit light for each radio, plus power and heartbeat
  • Radios are factory-assembled; only the SMA jacks and Pi socket are hand-soldered
  • ZebraHAT Duo pin map, so its two Meshtastic configs are a starting point

Best for running two meshes from one site, or a gateway that bridges Meshtastic and MeshCore.

Add-on for the Duo and v1.3 PoE

PoE+ board

One Ethernet cable from a PoE+ switch powers the HAT and the Pi and carries the network. It stacks on top of the Duo or the v1.3 PoE and plugs into their 5 V input, which sits in the same place on both.

5 V · 4.5 A · isolated

Mesh HAT PoE+

A copy of TI's TPS23751 reference design: an isolated PoE+ (802.3at) supply that turns the 37 to 57 V on the cable into a clean 5 V. A second jack passes the network through to the Pi with a short patch cable.

  • Output5 V, up to 4.5 A
  • InputPoE+ (802.3at) only
  • Board93.5 × 56.5 mm, 4 layers
  • StatusDesigned · DRC 0
  • Fits the Duo and the v1.3 PoE, with cut-outs over their lights, buttons and antenna jacks
  • Uses all four mounting holes, on 11 mm standoffs
  • 3 mm isolation gap between the 57 V side and the 5 V side
  • Lights for "PoE+ granted" and "5 V on"
  • Two parts (the Coilcraft transformer and one optocoupler) come through JLCPCB Global Sourcing

First power-up: test it on its own with a 5 Ω load resistor before connecting the Duo or the Pi. Never power the Pi from USB-C and PoE at the same time.

Why two Ethernet jacks?

Both jacks are on the PoE+ board, not the HAT. Each one has its own job:

  1. Jack 1, PoE in. The cable from your PoE+ switch or injector plugs in here. It carries the network and about 48 V of power.
  2. The board in between takes the power off the cable and turns it into 5 V. That goes down the 2×2 header to the HAT and the Pi. The network data passes straight through.
  3. Jack 2, data out. A short patch cable runs from here to the Pi's own Ethernet port, so the Pi stays on your network.

Most PoE HATs use the four PoE pins next to the Pi 4's Ethernet port and need no jack of their own. On the Duo those pins sit right under the first radio, so nothing can reach them, and the radios can't move without hitting a mounting hole. Taking the power straight off the cable gets around that. It also means one PoE+ board fits both the Duo and the v1.3 PoE.

Side by side

Comparison chart

What each board has, and what it gives up to fit.

FeatureMesh HAT v1.3single radiov1.3 PoEsingle radio, PoEMesh HAT Duotwo radios
Radio
Radios1 × E22P-915M30S (SX1262)1 × E22P-915M30S (SX1262)2 × E22P-915M30S (SX1262)
Output powerUp to 1 W (30 dBm)Up to 1 W (30 dBm)Up to 1 W each
Antenna jacks1 edge SMA, SD-card side1 edge SMA, SD-card side2 edge SMA, left and bottom edges
Band filteringInside the E22P moduleInside the E22P moduleInside each E22P module
ESD protectionYESOn the antenna lineYESOn the antenna lineYESOn both antenna lines
Position and time
GPSYESOnboard u-blox MAX-M10S, u.FL jackYESOnboard u-blox MAX-M10S, u.FL jackHeader for a plug-in GPS module
PPS timingGPIO23GPIO23GPIO4
Real-time clockYESPCF8563 with CR2032 backupNOTime from GPS or networkNOTime from GPS or network
Lights and controls
Status lights5: power, TX, packet, GPS fix, heartbeat5: power, TX, packet, GPS fix, heartbeat4: power, TX radio 0, TX radio 1, heartbeat
Lights-off jumperYESYESYES
ButtonsSafe shutdown + user buttonSafe shutdown + user buttonSafe shutdown
Expansion
Qwiic / STEMMA QT2 ports2 ports1 port
Fan headerYESSpeed controlled, GPIO12YESSpeed controlled, GPIO12NO
Expansion headerYESSecond SPI bus + 3 GPIOYESCovered while the PoE+ board is onNO
HAT ID EEPROMYESYESYES
Power and Pi
Power5 V from the Pi5 V from the PoE+ board, or from the Pi5 V from the Pi, or a 2×2 5 V input
PoEUse an external PoE splitterPoE+ add-on board (802.3at), see belowPoE+ add-on board (802.3at), see below
Raspberry PiPi 3, 4, 5, Zero 2 WPi 3, 4, 5Designed for Pi 4
Software
MeshtasticYESStock lora-pimesh-1w-v2.yamlYESStock lora-pimesh-1w-v2.yamlYESOne meshtasticd per radio
MeshCoreYESRepeater via openHop (untested)YESRepeater via openHop (untested)YESRepeater via openHop (untested)
Both at onceNOOne or the otherNOOne or the otherYESOne per radio
Building it
PCB4 layers, 1.6 mm4 layers, 1.6 mm4 layers, 1.6 mm
Factory-assembled62 parts59 parts, including the radio50 parts, including both radios
Hand-solderedRadio, SMA jack, Pi socketSMA jack, Pi socket2 SMA jacks, Pi socket
StatusDesigned · not yet builtDesigned · not yet builtDesigned · not yet built

Pick v1.3 if…

you want one tidy outdoor node with GPS, a clock and sensors, on any recent Pi.

Pick v1.3 PoE if…

you want that same single-radio node up a mast or on a roof, fed by one Ethernet cable.

Pick the Duo if…

you want two meshes from one Pi 4, or a Meshtastic-and-MeshCore site, and plan to power it over Ethernet.

How to order

From files to boards

Every board is set up for JLCPCB's assembly service. They make and assemble the board; you solder on a few connectors at the end.

  1. Download the three order files

    Each board has a Gerber zip (the board itself), a BOM (the parts list) and a CPL (where each part goes). Grab them from the files section below.

  2. Upload the Gerber zip

    On jlcpcb.com, choose Order now and upload the Gerber zip. Then set:

    Mesh HAT v1.3
    Layers
    4
    Thickness
    1.6 mm
    Size
    65 × 56.5 mm (auto-detected)
    Quantity
    5 is the minimum
    Mesh HAT v1.3 PoE
    Layers
    4
    Thickness
    1.6 mm
    Size
    65 × 56.5 mm (auto-detected)
    Quantity
    5 is the minimum
    Mesh HAT Duo
    Layers
    4
    Thickness
    1.6 mm
    Stack-up
    JLC04161H-7628
    Quantity
    5 is the minimum
  3. Turn on PCB Assembly

    Switch on PCB Assembly, top side. Economic assembly is the cheaper option; if JLCPCB says a part needs Standard assembly, switch to Standard. You can assemble just 2 of the 5 boards to save money.

  4. Upload the BOM and CPL

    Upload the BOM and CPL files when asked. JLCPCB matches every part to its stock automatically. If something shows as out of stock, pick the closest in-stock match or ask before swapping.

  5. Check the placement preview

    JLCPCB shows a picture of every part on the board. Make sure nothing looks rotated or off its pads.

    • Duo: look closely at C17 (big capacitor), D2 (ESD diode) and U4 (EEPROM).
    • v1.3 PoE: J8, the 2×2 power header, sits next to the bottom-right mounting hole.
    • Both: the stripe on each capacitor and the dot on each chip should match the marking on the board.
  6. Order the hand-soldered parts

    A few parts are left off the factory order because JLCPCB can't place them economically. Order them from LCSC (JLCPCB's parts shop) in the same cart:

    • Both: BWSMA-KE-P001 edge SMA jack C496550 (one for v1.3, two for the Duo) and a 2×20 female header, 8.5 mm tall C5124634
    • v1.3 only: E22P-915M30S radio C51912672. The v1.3 PoE has it factory-assembled.
  7. Finish and assemble

    Solder the SMA jack(s) to the board edge and the 40-pin socket to the underside, so the HAT sits on the Pi. Screw on M2.5 standoffs, fit the antenna, and only then power the Pi.

Downloads

Order files

Ready to upload to JLCPCB as they are. Check part stock on the day you order; it changes.

Mesh HAT v1.3 PoE

Single radio, onboard GPS, 5 V input for the PoE+ board.

PoE+ board (Duo and v1.3 PoE)

Add T2 (Coilcraft NA5730-ALD) through Global Sourcing. Solder J3 on the underside yourself.

Also needed

For both

  • Raspberry Pi and a good power supply
  • 915 MHz antenna(s) with SMA plug
  • M2.5 standoffs and screws
  • Jumper caps, 2.54 mm

Mesh HAT v1.3

  • Active GPS antenna, u.FL plug
  • CR2032 coin cell
  • Qwiic sensor such as a BME280 (optional)

Mesh HAT v1.3 PoE

  • Active GPS antenna, u.FL plug
  • The PoE+ board below
  • Qwiic sensor (optional)

Mesh HAT Duo

  • Second 915 MHz antenna
  • Plug-in GPS module with a 5-pin header
  • Qwiic sensor (optional)

PoE+ board

  • PoE+ (802.3at) switch or injector
  • 2×2 female header, 8.5 mm (C239342)
  • M2.5 × 11 mm standoffs
  • Short Ethernet patch cable

Software

Setup at a glance

Start with Raspberry Pi OS Lite (64-bit) with SPI, I2C and the serial port turned on in raspi-config.

Meshtastic

Add to the end of /boot/firmware/config.txt, then reboot:

dtoverlay=spi0-0cs
gpio=26=op,dh
dtoverlay=i2c-rtc,pcf8563
dtoverlay=pps-gpio,gpiopin=23
dtoverlay=gpio-shutdown,gpio_pin=16

Install meshtasticd, then use the stock radio config:

sudo cp /etc/meshtasticd/available.d/lora-pimesh-1w-v2.yaml \
  /etc/meshtasticd/config.d/
sudo systemctl enable --now meshtasticd

MeshCore (openHop repeater)

In /etc/openhop_repeater/config.yaml:

radio_type: sx1262
radio:
  tx_power: 22
sx1262:
  bus_id: 0
  cs_id: 0
  cs_pin: 8
  reset_pin: 18
  busy_pin: 5
  irq_pin: 6
  en_pin: 26
  use_dio3_tcxo: true
  dio3_tcxo_voltage: 1.8
  use_dio2_rf: true

tx_power goes under radio:. Under sx1262: it's silently ignored.

v1.3 PoE: the same settings, but leave out the i2c-rtc line, since there's no clock chip. On a Pi 5 powered through the header, add usb_max_current_enable=1 so its USB ports aren't held to 600 mA.

Before you power on

A few rules

Antenna first

Always connect an antenna before powering on. A 1 W radio transmitting into nothing can damage itself.

Know the limit

In the US, 1 W at 915 MHz is the unlicensed ceiling, and antenna gain counts toward it. Check the rules where you are.

One power source

Power the Pi from either its USB-C or the PoE+ board, never both at once.

Built on others' work

Credits

These boards build on three published Pi HATs. No affiliation with their designers; their work is theirs.

ZebraHAT & ZebraHAT Duo

wehooper4 · CC BY-NC-SA 4.0

The E22P radio, antenna ESD protection and power filtering approach, and the Duo's two-radio pin map and configs.

GitHub

MeshAdv Pi HAT

Chris Myers

The original open Pi LoRa HAT and its GPS and PPS approach.

GitHub

PiMesh-1W

MeshSmith

The radio and GPS pin assignments used by v1.3, the Qwiic port and the expansion header idea.

meshsmith.net

Because these designs draw on ZebraHAT (CC BY-NC-SA 4.0), the order files here are shared under the same license: free to build for yourself, credit required, no selling boards without permission. Meshtastic® is a registered trademark of Meshtastic LLC. Meshtastic software components are released under various licenses, see GitHub for details. No warranty is provided - use at your own risk. This site is not affiliated with or endorsed by the Meshtastic project. MeshCore is a separate open-source project; this site is not affiliated with or endorsed by MeshCore or MeshCore Technologies Ltd. More at meshtastic.org and meshcore.io.