Adding Arduino Nodes
Expand your MudPi system by integrating Arduino-based sensor nodes.
Why Use Arduino?
Arduino boards excel as dedicated sensor nodes. They provide native analog-to-digital conversion, are extremely low power, and can run independently while reporting data to your main Raspberry Pi controller.
6+
Analog Inputs
<50mA
Power Draw
~$5
Per Node
Communication Options
Choose Your Protocol
Serial (USB)
Direct USB connection. Simple, reliable, and no additional hardware needed. Best for single-node setups where the Arduino is near the Pi.
I2C
Wire protocol for short-distance communication. Supports multiple devices on a single bus. Good for nodes within a few meters of the Pi.
WiFi (ESP8266/ESP32)
Wireless via MQTT or HTTP. Best for remote nodes. ESP32 boards are Arduino-compatible and include built-in WiFi.
Arduino Sketch
Upload a sketch to your Arduino that reads sensors and sends data over serial. MudPi's Arduino worker parses the incoming data and publishes it to Redis.
Data Format
MudPi Configuration
Add an Arduino node to your MudPi configuration. MudPi will automatically detect the serial port:
Finding the Serial Port
Connect the Arduino via USB and find its port:
ls /dev/ttyUSB* /dev/ttyACM*
The Arduino typically shows up as /dev/ttyUSB0 or /dev/ttyACM0.
Tip