A configuration-driven system that turns ESP32, ESP8266, BK72xx and RP2040 microcontrollers into smart devices controlled from Home Assistant and other home automation systems.
jomjol/AI-on-the-edge-device
An ESP32-CAM based device that photographs analog water, gas or power meters and uses on-device AI to convert the readings into digital values.
- Stars
- 8,884
- Forks
- 929
- Open issues
- 205
- Last commit
- yesterday
What is it?
AI on the Edge Device connects existing non-digital meters, such as water, gas and electricity meters, to digital systems without replacing them. An ESP32 board with a supported camera captures photos of the meter at set intervals, extracts the regions of interest from the image, and runs them through a TensorFlow Lite model to read the digits.
The firmware handles inline image processing such as feature detection, alignment and ROI extraction, and includes an integrated camera and illumination. Readings can be sent to an MQTT broker, written to InfluxDB 1 or 2, or exposed through a REST API, and the device integrates with Home Assistant. A web interface handles administration, and firmware can be updated over the air.
The hardware is a small, low-cost board, and 3D-printable housings for water, power and gas meters are published alongside the project. Setup is documented on a separate MkDocs site, with flashing done through a browser-based web installer or standard ESP32 tools.
Key features
- 01Recognizes meter digits with an on-device TensorFlow Lite model.
- 02Performs inline image processing for alignment and ROI extraction.
- 03Publishes readings via MQTT, InfluxDB 1/2, or a REST API.
- 04Integrates with Home Assistant.
- 05Provides a web interface for administration and supports over-the-air updates.
Use cases
- Logging water or gas consumption from an existing analog meter into a home dashboard.
- Feeding electricity meter readings into Home Assistant or InfluxDB without replacing the meter.
- Building a low-cost smart-meter setup on an ESP32-CAM.
Quick start
- 1
Download the latest release from the Releases page
- 2
Flash the ESP32 over USB with the browser-based Web Installer
- 3
Set up the SD card automatically after firmware install, or manually following the documentation
Things to know
- Requires a supported ESP32 camera board and a physical analog meter to photograph.
- The license is not clearly identified in the project metadata.
In collections
Topics
FAQ
- What is AI-on-the-edge-device?
- An ESP32-CAM based device that photographs analog water, gas or power meters and uses on-device AI to convert the readings into digital values. AI on the Edge Device connects existing non-digital meters, such as water, gas and electricity meters, to digital systems without replacing them. An ESP32 board with a supported camera captures photos of the meter at set intervals, extracts the regions of interest from the image, and runs them through a TensorFlow Lite model to read the digits.
- Is AI-on-the-edge-device free to use? What license does it have?
- AI-on-the-edge-device is open source under the Other license. Check the license terms before using it in commercial products.
- Is AI-on-the-edge-device still maintained?
- Actively maintained. The last commit to AI-on-the-edge-device was on Oct 23, 2026.
- What can I use AI-on-the-edge-device for?
- Logging water or gas consumption from an existing analog meter into a home dashboard. Feeding electricity meter readings into Home Assistant or InfluxDB without replacing the meter. Building a low-cost smart-meter setup on an ESP32-CAM.
- How do I install AI-on-the-edge-device?
- Download the latest release from the Releases page Flash the ESP32 over USB with the browser-based Web Installer Set up the SD card automatically after firmware install, or manually following the documentation
- Where can I get AI-on-the-edge-device?
- The source code and installation instructions are on GitHub: https://github.com/jomjol/AI-on-the-edge-device
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A personal AI assistant firmware in pure C that runs on a $5 ESP32-S3 chip, chatting with you over Telegram.
A lightweight neural network inference framework for running AI models on Espressif ESP series chips, with an ONNX-to-.espdl quantization path via ESP-PPQ.
Turns an ESP32 into a private, local Wi-Fi motion sensor that detects movement from changes in Wi-Fi signals, with no camera or microphone.
Self-hosted NVR that runs realtime object detection on local IP camera feeds, built for Home Assistant integration.
Open-source-source-available system that turns existing IP or RTSP cameras into real-time parking space occupancy detection with dashboards and alerts.