Wiznet makers

irina

Published August 28, 2025 ©

109 UCC

5 WCC

88 VAR

0 Contests

0 Followers

0 Following

Original Link

IRIV IO Controller - Send Sensor readings to IRIV PiControl using MQTT

Tutorial on sending RS-485 humidity & temperature data from IRIV IO Controller to IRIV PiControl via MQTT, with Mosquitto and Paho MQTT setup.

COMPONENTS
PROJECT DESCRIPTION

Hardware Setup

  • IRIV IO Controller (running CircuitPython)
  • IRIV PiControl (acting as MQTT broker and subscriber)
  • RS-485 Modbus humidity & temperature sensor
  • Ethernet network setup (router/switch, cables, USB-C for power & programming)

System Architecture

  1. The IRIV IO Controller collects real-time data from the RS-485 sensor.
  2. It publishes the data to the MQTT broker (IRIV PiControl).
  3. The PiControl, as a subscriber, receives and monitors the data.

PiControl Configuration (Broker Role)

  • SSH access to PiControl
  • Install Paho MQTT (pip3 install paho-mqtt)
  • Install and enable Mosquitto (sudo apt install mosquitto mosquitto-clients, systemctl enable/start mosquitto)
  • Configure mosquitto.conf with allow_anonymous true and listener 1883

IRIV IO Controller Configuration

  1. Connect RS-485 sensors to the IO Controller.
  2. Use CircuitPython to publish sensor readings to PiControl via MQTT.
Documents
Comments Write