OpenWRT for Energy Monitoring
summary
A DIN‑rail energy monitor is built around Microchip energy‑ASIC over SPI with voltage and current channels (two‑channel sampling shown), migrating from ESP8266/ESP32 firmware to OpenWRT Linux host (Onion Omega, Mediatek) so Python/C Python can run, MQTT TLS uploads happen, and local OLED shows readings. SPI details matter: half‑duplex mode, hold chip‑select between send/read, and the host’s SPI flash forbids attaching the meter at boot; observed SPI clock ~250 kHz, measured ~241 V and ~17 W with power factor ~0.6 during demos — the system works.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:00Introduction to Energy Monitoring
- 2:50Energy Monitoring Components
- 5:50Current Build
- 7:45Family
- 8:10SPI Bus
- 9:20SPI Modes
- 10:10History of the SPI
- 10:55OpenWRT
- 11:55Arduino
- 13:00MicroPython
- 13:35OpenWRT Board
- 14:20MQTT
- 14:50Plan
- 15:25Software
- 16:00Micro Python
- 16:55Design Inspiration
- 17:25Sense Energy Monitor
- 18:00Target Enclosure
- 18:20Measurement Module
- 19:30Onion Demo
- 22:10Voltage Demo
related talks
21mMonitoring your home, with DevOps observability tools
30mOpen AMI - A Case Study of Global Collaboration
41mBuilding Wireless Sensors
15mDeveloping an Open Source (Hardware and Software) LoRaWAN Sensor
40mDay-1 with a TTIG-868
32mOpen source home automation
43mMonitoring a small world
06mSmart Metering Solutions with LoRaWAN Devices
