AI-on-the-edge-device
This is an example of Artificial Intelligence (AI) calculations on a very cheap hardware.
Details on function, installation and configuration can be found on the Wiki Page
A 3d-printable housing can be found here: https://www.thingiverse.com/thing:4573481
respectively ESP32-Cam housing only: https://www.thingiverse.com/thing:4571627
Donate
If you would like to support the developer with a cup of coffee you can do that via Paypal.
In other cases you can contact the developer via email: ![]()
Change log
Known Issues
- slow response of web server during picture analysis
- spontaneous reboots (mostly due to html access during image processing) - self recovery implemented
General remark: Beside the firmware.bin, typically also the content of /html needs to be updated!
Rolling - (2021-07-11)
- GPIO: implements basic functionality for GPIO handler.
- Configuration via config.ini / HTML page
- GPIO 12, 13, 1, 3, 0, 4 can be used (see restrictions in HTML configuration page)
- GPIO can be used as input or output
- pullup / pulldown can be enabled
- supports all interrupt types of the ESP32
- publishing via MQTT or HTTP
- definition of the MQTT topic name
- HTML: implements regex mask for text input fields (currently enabled for GPIO inputs and main topic)
- HTML: automatic detection of select fields
- MQTT: added readings for uptime and freeMem (can be used for tracking with Infux DB and as memory leak detection)
- MQTT: connection is no longer terminated and reestablished on each flow
- Classe ConfigFile created. Can be used by all components in the future.
- Bugfix: memory leaks in ClassFlowAnalog and ClassFlowControll fixed.
- Removed compiler warnings
Rolling - (2021-07-08)
- MQTT: added json output
Rolling - (2021-07-07)
- Updated server configuration (avoid server blocking in case too many connections in parallel)
- HTML: update ROI definition (show all ROIs)
Rolling - (2021-07-05)
- Update jquery, inital config.ini
Rolling - (2021-07-03)
- Parameter
MaxRateValueindividual for each number - BugFix: MQTT server tried to connect even in case it was disabled
Rolling - (2021-07-01)
-
NEW FEATURE: adding support for more than 1 number on a meter (e.g. two different power readings) Therefore the concept of "Numbers" is implemented - a bunch of digits and analog counters are combined to one number. You can define them during setup of digital and analog ROIs:

-
MQTT: standardization of the naming - only the main topic needs to be specified. The subtopics will be named automatically. This is necessary to handle the multi number option. ATTENTION: the parameter
maintopicneeds to be set -
Remark:
- This is an early stage - do only use it on a test system and make a backup of your configuration.
- The documentation is not updated yet.
-
ATTENTION: the configuration and prevalue files are modified automatically and will not be backward compatible!
Rolling - (2021-06-17)
- bug fix setting hostname, Flash-LED not off during reboot
Rolling - (2021-06-11)
- Restructuring for multi number counters
- Major internal and html changes (html and firmware)
- ATTENTION: the configuration and prevalue files are modified automatically and will not be backward compatible!
7.1.2 MQTT-Update - (2021-06-17)
- NEW: 7.1.2: bug fix setting hostname, Flash-LED not off during rebootNEW: 7.1.1: bug fix wlan password with "=" (again)
- MQTT error message: changes "no error", send retain flag
- Update wlan handling to esp-idf 4.1
- Upgrade digital CNN to v8.7.0 (added new images)
- Bug fix: MQTT, WLAN, LED-Controll, GPIO usage, fixed IP, calculation flow rate
7.0.1 MQTT-Update - (2021-05-13)
-
NEW: 7.0.1: bug fix wlan password with "="
-
Upgrade digital CNN to v8.5.0 (added new images)
-
New MQTT topics: flow rate (units/minute), time stamp (last correct read readout)
-
Update MQTT/Error topic to " " in case no error (instead of empty string)
-
Portrait or landscape image orientation in rotated image (avoid cropping)
Additional ideas
There are some ideas and feature request, which are not followed currently - mainly due to capacity reasons on side of the developer. They are collected here: FeatureRequest.md
History
6.7.2 Image Processing in Memory - (2021-05-01)
5.0.0 Setup Modus - (2020-12-06)
4.1.1 Configuration editor - (2020-12-02)
4.0.0 Tflite Core - (2020-11-15)
3.1.0 MQTT-Client - (2020-10-26)
2.2.1 Version Control - (2020-09-27)
2.1.0 Decimal Shift, Chrome & Edge - (2020-09-25)
2.0.0 Layout update - (2020-09-12)
1.1.3 Initial Version - (2020-09-09)
Full Changelog
Solved topics
- n.a.


