In modern industrial environments, equipment health often degrades silently long before a catastrophic failure. Many IoT solutions attempt predictive maintenance, but they frequently suffer from two critical flaws: hardware overload and data noise. Single-chip monitoring systems that simultaneously handle high-resolution displays, Wi-Fi stacks, and precise sensor acquisition often crash or experience severe latency, creating blind spots that miss transient mechanical faults.

Moreover, raw accelerometer data is inherently offset by Earth's gravity. Without complex manual calibration, separating true mechanical vibration from static sensor orientation is difficult. Finally, fragile physical screens mounted on vibrating, dirty machinery become a major failure point.

Project overview: Sentinel V2 central unit

Sentinel V2 is a decentralized monitoring ecosystem designed to bridge the gap between raw machine data and actionable industrial intelligence. Instead of a fragile on-machine display, Sentinel V2 uses a headless dual-node star topology: a Raspberry Pi Pico acts as a dedicated data acquisition (DAQ) edge node, and a central Raspberry Pi Pico W serves as the network gateway and local web server.

The system samples three-axis vibration, temperature, humidity, and atmospheric pressure at high speed. The edge node employs a dynamic high-pass Alpha filter to digitally remove gravity, providing clean linear acceleration readings that reflect actual mechanical stress.

To avoid reliance on a physical screen, the edge node uses a REYAX RYLR999 transceiver to broadcast data simultaneously on two different radio bands:

  • LoRa (866 MHz): Sends long-range telemetry to the central Pico W gateway, which updates a responsive, color-coded SCADA web dashboard every second via the Fetch API.
  • BLE (Bluetooth Low Energy): Broadcasts real-time diagnostics directly to a technician's smartphone, creating a virtual human-machine interface (HMI) at the edge.

1: Hardware configuration and system architecture

The project uses a distributed computing architecture and requires two independent nodes: a central gateway (Pico W) and a sensor data acquisition node (Pi Pico).

2: Pi Pico data acquisition node (edge) assembly

The Raspberry Pi Pico serves as a high-speed DAQ node, sampling the sensor array and performing complex digital signal processing (DSP) filter operations.

  • Vibration sensor (MPU6050): Uses dedicated I2C bus 1 for maximum isolation. Connect SDA to GPIO 2 and SCL to GPIO 3.
  • Environmental sensors (BMP280 and DHT11): Use I2C bus 0. For the BMP280, connect SDA to GPIO 4 and SCL to GPIO 5; connect the DHT11 data pin to GPIO 15.
  • Power: Connect each sensor's power to the Pico's 3V3 output and GND pins.
  • Mechanical mounting: The MPU6050 must be rigidly mounted to the monitored equipment. The high-pass filter logic assumes the sensor is firmly attached to the vibration source to ensure signal integrity.

3: Wiring the REYAX RYLR999 transceiver

The RYLR999 module is central to the project but requires careful power management. While its data lines operate at 3.3V logic (ideal for the Pico), the RF amplifier draws significant transient current to transmit a 30 dBm signal and must be powered from 5V to function properly.

  1. Power distribution: Connect the RYLR999 VDD pin directly to the VBUS pin on the Raspberry Pi Pico/Pico W. Connect GND to the Pico's ground. This taps the raw 5V from USB power without going through the Pico's internal 3.3V regulator.
  2. Dual UART connection (edge node): The RYLR999 has two physical UART interfaces—one for LoRa and one for BLE.
    • Connect Pico GP0 (TX) to the module's RXD (LoRa).
    • Connect Pico GP1 (RX) to the module's TXD (LoRa).
    • Connect Pico GP8 (TX) to the module's RXD_BLE (BLE).
    • Connect Pico GP9 (RX) to the module's TXD_BLE (BLE).
  3. UART connection (gateway node): The central Pico W only needs the LoRa link to receive data. Connect its GP0 to RXD and GP1 to TXD.

4: AT command testing and configuration

Before writing complex sensor logic, verify that the REYAX module works and is configured for the same RF protocol. The RYLR999 is controlled via simple ASCII AT commands.

Flash a basic serial pass-through sketch to the Pico so you can send commands from the Arduino IDE serial monitor (set baud rate to 115200, with "Newline and Carriage Return" enabled). Perform the following steps on both modules:

  • Test connection: Send the AT command. The module should respond with +OK.
  • Set operating band: Send AT+BAND=866000000 to set the frequency to the license-free 866 MHz industrial band. (Set the frequency according to your local regulations.)
  • Set network ID: Send AT+NETWORKID=18 to isolate plant data from nearby RF interference.
  • Set spreading factor and bandwidth: Send AT+PARAMETER=9, 7, 1, 12. This command sets the hopping duration and bandwidth. The gateway and node must share these exact parameters to decode each other's packets correctly.
  • Assign node addresses: Send AT+ADDRESS=0 on your gateway module and AT+ADDRESS=101 on your node module.
  • Set LoRa module power: If testing indoors or at close range, reduce power to 10 dBm by sending AT+CRFOP=10. This lowers output power to prevent module damage. Only increase power (up to 30 dBm) when maximum range is needed.
  • Set BLE name: Use the command AT+NAME=Sentinel_Node_101 to set the BLE name. Match the LoRa pins with the corresponding BLE receive and transmit pins.

Upload this code to set the AT parameters:

5: Virtual HMI via BLE diagnostics

Instead of mounting a fragile LCD screen on vibrating equipment, we leverage the RYLR999's transparent GATT Bluetooth feature.

When a field technician approaches the machine, they simply open a standard BLE testing app (such as LightBlue) on their smartphone. By connecting to the module's default UUID (4880c12c-fdcb-4077-8920-a450d7f9b907) and enabling UTF-8 string notifications, the smartphone instantly becomes a real-time diagnostic dashboard. The edge node code sends formatted telemetry (e.g., V:0.5G, T:28C) directly to the phone, completely independent of the main LoRa network.

6: Software development (edge node and gateway)

Both nodes are developed using the Arduino IDE.

Part 1: Pico DAQ edge node

By offloading sensor tasks to the Pi Pico, we ensure continuous data acquisition without network latency issues. The edge node actively cancels gravity to extract the vibeMag variable, formats the data into a concise ASCII payload, and sends it to the central gateway every two seconds using AT+SEND=0,length,payload.

Part 2: Central Pico W gateway

The gateway listens for +RCV= packets from the local RYLR999 module's UART interface. It dynamically parses the sender ID, unpacks vibration and environmental data, and stores them in an internal array. It then runs an asynchronous web server on the local Wi-Fi network.

7: Web server implementation

The Pico W includes an optimized HTTP web server that serves a minimal dashboard designed for remote monitoring.

Asynchronous refresh: Instead of reloading an HTML iframe, the dashboard uses a custom JavaScript fetch() loop to query a JSON endpoint (/api/data) once per second. This ensures a continuous, reliable telemetry stream without excessive network bandwidth.

Context-aware visual alerts: Based on equipment health, the dashboard's CSS automatically switches between industrial gray (normal), safety orange (warning), and vivid red (danger), creating a highly visible remote alarm system.

8: Practical non-line-of-sight (NLOS) range test

LoRa radio waves do not simply penetrate dense machinery. However, in industrial facilities, 866 MHz signals can effectively use waveguide effects to achieve long-range transmission.

In long-range tests, we achieved reliable data transmission over 7.5 km. Rather than relying solely on line-of-sight, the 30 dBm signal from the RYLR999 reflects off concrete walls, metal ducts, and solid corridors. By precisely setting the spreading factor to SF9 and keeping packet size small, the central gateway extracted data with zero packet loss from weak reflected signals below the industrial noise floor.

What this means for your build

  • Decentralize to avoid blind spots: Splitting data acquisition and network gateway functions across two microcontrollers prevents latency and crashes that can hide transient faults.
  • Filter gravity at the edge: Implement a high-pass Alpha filter on the DAQ node to deliver clean linear acceleration data without manual calibration.
  • Power RF amplifiers correctly: Always power the RYLR999's VDD from a 5V source (e.g., VBUS) to handle the current draw of 30 dBm transmissions.
  • Leverage BLE for local diagnostics: Use the module's transparent GATT feature to turn any smartphone into a virtual HMI, eliminating fragile on-machine displays.
  • Tune LoRa parameters for NLOS environments: Set the spreading factor to SF9 and keep packets small to maintain reliable links in reflective industrial spaces.

Source: compiled from public web sources.