Back to Engineering

Software ยท Embedded ยท Personal Project ยท ESP32

IoT Firmware AI HackLab

An embedded experimentation lab built around a real ESP32. Explore firmware behavior, detect anomalies, and analyze constrained hardware through a full inspection pipeline, from device to dashboard.

ESP32 Embedded C Python FastAPI Streamlit Firmware Testing AI-assisted Analysis
Real Hardware, not a simulation
E2E Device to dashboard pipeline
AI Assisted anomaly inspection

Firmware as something to observe, stress and inspect.

Most IoT projects read data, send it to a dashboard and stop. Here the firmware is the object of study: an embedded-to-analysis pipeline on a real ESP32, built to show what the device is actually doing.

The gap

Firmware is invisible

In most embedded projects, firmware runs but isn't observed. Bugs, anomalies, and unexpected behaviors exist but aren't captured until something breaks in production.

The ambition

Make it inspectable

Build a platform that treats firmware output as analyzable data, with a defined pipeline from device behavior to human-readable insight.

The constraint

Real hardware only

No simulator, no mocked board: a real ESP32 under real firmware execution, with real signal noise.

One ESP32, validated on physical hardware.

  • Board deployed and physically connected
  • Firmware executing under test conditions
  • Telemetry streamed to the analysis layer
  • Anomalies surfaced by the inspection pipeline

Three layers, one coherent pipeline.

Each layer has a clear responsibility. Together they turn firmware execution into interpretable, actionable data.

01 - Embedded Layer

ESP32 Platform

  • ESP32 running real firmware in controlled test conditions
  • Observable device behavior under defined scenarios
  • Continuous telemetry output, logs, signals, state changes

02 - Analysis Layer

Python Processing

  • Ingestion of raw firmware telemetry from the device
  • Anomaly-oriented reasoning, not just logging
  • Behavior inspection and pattern extraction

03 - Interface Layer

FastAPI + Streamlit

  • FastAPI backend exposes processed inspection results
  • Streamlit frontend for clear, readable visualization
  • Direct interpretation of embedded outputs for the operator

Device to dashboard.

A linear, inspectable chain: each handoff is explicit and verifiable.

๐Ÿ”Œ ESP32 Board
โ†’
๐Ÿ“ก Telemetry / Logs
โ†’
๐Ÿ Python Processing
โ†’
โšก FastAPI Service
โ†’
๐Ÿ“Š Streamlit Dashboard

What was validated.

ESP32 Real hardware deployment
Multi Embedded test scenarios
E2E Full pipeline validated
AI Anomaly inspection integrated

Lessons learned

01

How to treat firmware as an observable artifact, not just executable code, and design around that assumption from the start.

02

How to connect real embedded hardware to a software-side analysis pipeline, and make the handoff reliable enough to trust.

03

How to build a credible experimental environment from minimal physical hardware.

ESP32 Embedded C MicroPython Python FastAPI Streamlit Serial / UART Firmware Analysis