Raspberry Pi Zero and LoRa HAT

I’ve read in the forum that the SX1262 was supported. I have this board attached to a Pi Zero and not sure about how to get it working with meshtastic.

3 Likes

I have something similar. I think @geeksville is working on portduino support which i think will allow you to use this hardware with meshtastic. I think its still a work in progress though. https://meshtastic.discourse.group/t/portduino-a-unix-based-arduino-emulator/1206

I’ve contemplated attempting to use https://pypi.org/project/pyLoRa/ to make a fork of the meshtastic python with a python only implementation of meshtastic for playing around with raspberry pi’s and stuff. I don’t think I have enough bandwidth right now to make it happen though.

1 Like

I think adding support for this device would be pretty painless a few weeks from now. Once the portduino stuff works with a similar radio for the pinetab (which I’ll be working on the first week of Oct).

7 Likes

Wow, awesome stuff. I look forward to it.

Was planning to use it with a Pi4 but a zero sounds like a much better idea.

Did you get any further using the Pi and this HAT?

btw: Portduino (used in the linux version of meshtastic) now works with the (prototype) lora for linux dongle that Pine64 is making. I think they are planning to sell this lora adapter for at least their tablet, but also as a USB dongle. Which should nicely plug into a pi4.

The one they are going to ship will have some changes wrt the prototype they sent me. So I haven’t been mentioning this yet. Once they send me their final version I’ll update meshtastic to work with it. Alas, I don’t know much about their timetable.

4 Likes

@wildify did you ever get one and get it working? The pi hat?

1 Like

I have meshtasticd working on a pi zero with a wave share 1262 hat (not the UART one).

TL;DR: pulled this, GitHub - meshtastic/firmware: Meshtastic device firmware docker buildx for arm/v6 (or you can build it directly on the PI, but it’s going to take much longer). The resulting container image contains meshtasticd and all the dependencies. Works in privileged mode. If anyone’s interested I could create a public image on docker hub with instructions on how to run it.

I’ve got it running successfully on a board that plugged into a normal (but several years old now) Raspberry Pi. It’s a board from Waveshare: SX1262 LoRaWAN Node Module Expansion Board for Raspberry Pi, With Magnetic CB antenna, Options For Frequency Band And GNSS Function | SX1262 868/915M LoRaWAN HAT

It’s been fantastic. Because it has ethernet port, I can easily access Meshtastic GUI via a web browser. It’s fast and works perfectly. There’s a good video from Meshtastic on setting it up: https://www.youtube.com/watch?v=vLGoEPNT0Mk

1 Like