Meshtastic device

Why?#
Why should we build a LoRa-based mesh network?#
This project originated in the University of Trento, where I followed the Laboratory of Computing for Social Impact course.
The baseline idea of this project is straight-forward: to create an alternative communication network, free, off-grid and independent, that can work even without internet.
Meshtastic, and more in general protocols such as MeshCore or Reticulum, enable the possibility to use low-budget and low-power hardware in order to create a network which is independent of the traditional infrastructures. A SIM card is not needed, neither an ISP, nor a constant internet connection. Nodes communicate among each other via radio, creating an always increasing network, just by placing well-positioned new nodes.
This network cannot be a replacement for internet, nor for the traditional mobile networks. It has another goal: offer a minimal channel, essential to exchange textual information. It’s not intended for transmitting images, video or other heavy data. It’s value relies on little information exchanges: geolocation when needed, some quick updates, little essential communication for excursionists, data from sensors.
Sometimes, when needed and when possible, the network can do an “internet jump”, usually via an mqtt gateway. However, independence stands as the main focus, and this feature is usually not needed.
Naturally, a distributed and open network requires responsibility: some wrongly-configured node, or worse, a malicious one, can disturb the overall traffic, saturate the channel or degrade the network. This is why it’s essential to build both the technical infrastructure, but also a culture of the correct usage. Correct configurations, essential messages, nodes maintenance and care about security.
The project was born also thanks to a “sperimental” motivation: conceptualize and build physical objects, test them over some local area, understand how the radio signals behave from one mountain to the other and in the valleys, optimize consumption and coverage. It’s not only about “installing devices”, but about learning, measuring, improving and sharing knowledge about the final “node” I composed (check the “How?” section!).
In a world in which we give connectivity for granted, building an alternative network means also remind ourselves that communication does not always need to depend on centralized infrastructures. It means redundancy, autonomy and technological awareness.
How?#
This page describes how to build a cheap off-grid (self-powered via solar panel) Meshtastic node.
On this node it’s also possible to flash some firmware other than Meshtastic, and it will work (e.g. MeshCore, Reticulum, …)
The final build is neither extremely compact nor extremely impact-resistant. Its ideal use case is as a fixed-location autonomous node that works both as a router for the nearby Meshtastic network and as a Bluetooth client that users can connect to in order to join the network.
According to rough tests, this build can still work in complete darkness for 3-4 days, routing packets on a continuous basis, limited by the current duty cycle regulations (the tests were performed in Italy, under EU regulations).
The project is composed of seven elements. At the moment (June 2026) the total price for one ready-to-use composition is ~32€, shipping excluded. The cost for 3d printing the case is excluded but basically negligible.
Currently, this is the cheapest well-working self-sustainable composition, compared to the others I found online.
Here is the full list of needed components:
- XIAO nRF52840 & Wio SX1262 (11.08€)
- Solar Power Manager 5V (6.83€)
- Solar panel (4.44€)
- Rechargeable lithium battery (7.31€, but buying more of them for the future makes the cost worthwhile)
- Lora antenna (1.76€, again it’s worth buying more of them at once)
- USB-C connectors (1.76€ for ten of them)
- ON-OFF-ON / ON-ON switch (0.88€ for ten of them)
Note that, if a power plug is constantly available, some elements can be removed, and the system will work in the same way. One could remove the solar panel and the rechargeable lithium battery, saving ~12€. However, the rest of this document will proceed to describe how to build the self-powered node, considering both the solar panel and the battery.
How to build it#
IT IS CRUCIAL TO AVOID POWERING ON THE nRF52840 + SX1262 WITHOUT THE ANTENNA ATTACHED TO IT. Lora module will break otherwise.
The nRF52840 + SX1262 kit comes with a default antenna. We will change it, but this switch to the new antenna needs to happen while the kit is powered off.
1) Start 3d printing the case#
Here you can find the STP (step) file we prepared. It is specifically designed to contain the chosen elements listed above.
We printed it on a Bambulab printer with the following generic settings, feel free to adapt it to your printer:
- PLA
- 0.16 mm
- Supports with a dedicated support interface material
2) Flash the Meshtastich firmware#
In order to flash the firmware on the nRF52840, after connecting the kit via USB to the PC (be sure the antenna is still attached to the module), I used the official tool. I suggest leaving the latest firmware selected, as default.
I also suggest checking the kit is correctly working, after the latest firmware is flashed. In order to do that, after usbc-connecting the kit to a power source, install the client (also available on F-DROID) on your phone. Scan for devices, and connect to the newly flashed firmware, by using the default PIN: 123456.
If it works and you can correctly connect to the kit, the test is completed for now.
3) Connect all the electronic components#

The Solar Power Manager is at the core of this project. It optimizes the charging cycle, connects to the solar panel and provides a stabilized 5V current to power the node. The downside of this is that the module will not be able to automatically estimate the charging state of the battery based on current voltage.
Connect the battery to the BAT-IN spot on the SPM (Solar Power Manager). Connect the USB-C connector inside the SOLAR-IN spot on the SPM. Connect the kit on the 5V and ground SPM’s pins. Finally, connect the switch to the OFF-ON SPM’s pins.
4) Assemble the final box#

Represented in blue is the Solar Power Manager, and battery is in pink.
Plug the kit (nRF52840 + SX1262) inside the “suspended” square space.
Place both the antenna and the usb-c female end inside their holes in the upper coverage piece. Plug the switch in, in the front of the upper piece.
Fix in place the two lateral components, and gently apply the upper coverage piece.
5) Italian configuration#
The module can now be configured via Bluetooth. Since I am currently working on this from Italy, I will proceed to describe the correct configuration for Meshtastic in Italy, as described in Lora Italia.
Turn the module on by using the switch, and connect to it via Bluetooth with the installed Meshtastic app. Default PIN is 123456.

After saving some relevant settings, the device will quickly reboot. It’s enough to wait 10-15 seconds and then re-connect.
- Go to “User”, configure the node name, and save.
- Go to “LoRa”, set
European Union 868MHz(if you are inside the European Union). This allows the node to automatically follow the local regulations. - If you are located in Italy, set the Preset to
MEDIUM_FAST, and the number of Hops to 3 or 4, (as suggested by LoraItalia) and save. This is not mandatory, but is suggested to communicate with other italian nodes.

- Go to “Device configuration” -> “Device”. As “Device Role”, set
CLIENT, so that the node will be able both to route other users’ messages, and to receive/send messages for/from itself. This should be the default option. - Finally, you should start receiving heartbeats from other nodes, and the map should begin populating automatically. Remember that LoRa works very well when there is a clear line of sight, but it may struggle otherwise.
- If you want to change the default Bluetooth PIN, you can do so inside the “Device configuration” -> “Bluetooth” page.
For any questions, feel free to contact us at info[at]hackinpovo.it, or come to visit our HackLab in Trento!