Student development platform for the FIBER IoT temperature monitoring system.
Runs on Raspberry Pi 4 Compute Module with Raspberry Pi OS (Bookworm 64-bit) — a simplified version of the production Yocto-based system designed for learning.
DS18B20 Sensors (1-Wire)
|
v
+--------------+ +------------+ +-------------------+
| FIBER App | MQTT | Mosquitto | MQTT | Node-RED |
| (Rust) |------>| Broker |------>| Dashboard 2.0 |
| |<------| :1883 |<------| :1880 |
+--------------+ +------------+ +-------------------+
| |
reads sensors +---------+
monitors alarms | Browser |
controls LEDs/buzzer +---------+
config/
fiber.config.yaml # FIBER app configuration
fiber.sensors.config.yaml # Sensor alarm thresholds (6-level)
fiber.service # FIBER systemd service
mosquitto.conf # MQTT broker config
ds2482-init.sh # 1-Wire bridge init script
ds2482-init.service # 1-Wire bridge systemd service
w1-rescan.sh # 1-Wire bus rescan script
w1-rescan.service # 1-Wire rescan systemd service
w1-rescan.timer # 1-Wire rescan timer (1s interval)
docs/
manual-setup.md # Step-by-step setup (recommended)
architecture.md # System architecture and data flow
mqtt-reference.md # MQTT topics and payload formats
setup-guide.md # Setup guide (uses install.sh)
node-red/
flows.json # Dashboard 2.0 flows
install.sh # Automated installer (alternative to manual setup)
Follow the Manual Setup Guide for step-by-step commands after a fresh Raspberry Pi OS install.
- Raspberry Pi 4 Compute Module + IO Board
- Raspberry Pi OS 64-bit (Bookworm)
- DS18B20 temperature sensors with DS2482 I2C-to-1-Wire bridge
- SSH access to the Pi
- Install system dependencies (
i2c-tools,mosquitto,sqlite3, ...) - Enable hardware interfaces (1-Wire, UART, SPI6, I2C, PWM)
- Configure Mosquitto MQTT broker
- Clone this repo and copy config files + binary
- Set up 1-Wire bridge services
- Start the FIBER application
- Install Node-RED + Dashboard 2.0
- Open the dashboard at
http://<pi-ip>:1880/dashboard
| Service | Port | Access |
|---|---|---|
| Mosquitto MQTT | 1883 | mosquitto_sub -h localhost -u fiber -P fiber_dev -t 'fiber/#' -v |
| Node-RED Editor | 1880 | http://<pi-ip>:1880 |
| Node-RED Dashboard | 1880 | http://<pi-ip>:1880/dashboard |
| User | Password |
|---|---|
fiber |
fiber_dev |
| Document | Description |
|---|---|
| Manual Setup | Step-by-step commands after fresh RPi OS install |
| Architecture | System diagram, data flow, component details |
| MQTT Reference | All topics, payload formats, and test commands |