Skip to main content
Mark Spencer
MeshEnvy Advisory Board
View all authors

Meshtastic Universal Sensor Interface

· 7 min read
Mark Spencer
MeshEnvy Advisory Board

Summary

The purpose of this article is to introduce a Meshtastic Universal Sensor Interface template (hardware and software) that uses the Serial Module of Meshtastic as a data link to collect information remotely from sensors connected to a Meshtastic Node. While there is a wide range of sensors included in the portfolio of sensors that are integrated into the Meshtastic firmware and reported out of the Node as telemetry, there are other very capable sensors that are not included (generally very specific, unique, and professionally oriented sensors). Using the Serial Module and UART avoids tampering with the Meshtastic firmware or depending on the Meshtastic development group to modify the firmware for unique sensors. This strategy makes the Universal Sensor Interface independent of the Meshtastic firmware as long as the Serial Module is maintained by the development group.

Basically, I wanted to address a caveat that is mentioned in the Meshtastic documentation: "...other interesting sensor types and use cases we need to add a portnum (sic) for more generic telemetry packets and a second MCU will be required to interact with the sensor and process the data to be sent over the mesh."

Keep in mind, this project is intended to be a template only, I have however used this template to develop working remote sensor systems. It is up to you to cut, paste, plagiarize, and modify the template to your heart's content and make the project your own.

Is There Such a Thing as a Usable BOT?

· 10 min read
Mark Spencer
MeshEnvy Advisory Board

While Meshtastic (MT) and MeshCore (MC) have some useful features to evaluate the path and signal quality between two nodes, there are instances where those features fall short; particularly when operating in a remote location without a robust mesh architecture or where there are no "active" mesh participants with the time nor proclivity to respond to signal strength requests. For example, a Scout camp is setting up a temporary, stand alone Meshtastic network to cover the confines of the camp area and the leaders want to verify the coverage using handheld nodes. In this case, a "Ping-Pong" like system would be useful.

In this article I will present a "Ping-Pong" system that is an example of a simple application that is based on the MT Universal Serial Interface that was the topic of a previous article. In the Ping-Pong application, the PIC of the Universal Serial Interface is programmed to listen for the word "Ping" received via the Serial Module, and if received, the word "Ping" is replaced with the word "Pong", and modified packet is transmitted back on a private channel. This verifies the integrity of the path between the two nodes without the need for other operators to be involved. I view the Ping-Pong system as a piece of mesh and LoRa test equipment. It also demonstrates how the Universal Serial Interface can be used for command and control of attached devices and sensors.

Block diagram of the Ping-Pong system: a PIC24 listens on UART for Ping from a Meshtastic Serial Module and responds with Pong on a private channel

Improving Life at the End of the Mesh

· 4 min read
Mark Spencer
MeshEnvy Advisory Board

The addition of the Topaz MeshCore Node by MeshEnvy introduced MeshCore into the Antelope Valley and Coleville in Mono County California. Before that Node addition, it was crickets down here. The Mesh now covers from the Soldier Meadows area north of Black Rock to Topaz/Coleville in the south: a distance of 210 miles. The issue with this new resource is reaching the last mile with a WisMesh Tag which is a bit hard-of-hearing. I added the Coleville Node to provide more reliable coverage of the Antelope Valley with hand-held or mobile MC systems like the WisMesh Tag. The resulting improvement was on the order of approximately -4dB Tag to Topaz vs. +11.75dB Tag-Coleville-Topaz and beyond.

MeshEnvy coverage map from the Soldier Meadows area north of Black Rock to Topaz and Coleville south, about 210 miles

Vertical Antenna Comparison

· 7 min read
Mark Spencer
MeshEnvy Advisory Board

What is the best vertical antenna for a Mesh or LoRa radio?

From the beginning of my tenure with Mesh and LoRa, I have used the RAK4631/RAK19007 combination to homebrew my own hand-held and stand-alone Node devices. Since signal quality is important to LoRa, the antenna is something within my control that I can change to make the systems more effective. I found the plethora of antennas available daunting with wide ranges in advertised performance metrics and prices. I set out to determine which antenna provides the most bang for the buck.

Summary: The TX915-JKD-20, available from Amazon, proved to be the best performer at the best price. Figure 1 shows the tabular summary of the antennas tested.

Summary table of vertical antenna SWR, gain, and cost test results

Antennas tested (figure 1):