# blasted-ctrl/edgeinspect architecture

> Architecture diagram of the GitHub repository blasted-ctrl/edgeinspect, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/blasted-ctrl/edgeinspect
- Repository: https://github.com/blasted-ctrl/edgeinspect

## Overview

EdgeInspect is an early ESP32 project skeleton for an industrial inspection machine. The README describes an intended object-to-inspection-to-actuation workflow, but the only sampled runtime file, `src/main.cpp`, contains empty `setup()` and `loop()` functions; none of the described subsystems is implemented in the sampled code. The diagram therefore records the documented product flow, with README paths identifying planned capabilities, and separates it from the current firmware entry point.

Main entry points: [`README.md`](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md) (Sensor fusion)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_object(("Object"))
node_camera["Camera<br/>[README.md]"]
node_vision["Computer vision<br/>[README.md]"]
node_ml["ML prediction<br/>[README.md]"]
node_sensors["Physical sensors<br/>[README.md]"]
node_fusion["Sensor fusion<br/>[README.md]"]
node_state["State machine<br/>[README.md]"]
node_decision["Final decision<br/>[README.md]"]
node_servo["Servo actuator<br/>[README.md]"]
node_outcome["PASS / REJECT<br/>[README.md]"]
node_firmware["Firmware scaffold<br/>[main.cpp]"]

node_object -->|"is inspected by"| node_camera
node_camera -->|"provides images to"| node_vision
node_vision -->|"feeds prediction"| node_ml
node_ml -->|"feeds prediction"| node_fusion
node_sensors -->|"provides readings"| node_fusion
node_fusion -->|"informs state"| node_state
node_state -->|"determines"| node_decision
node_decision -->|"controls"| node_servo
node_servo -->|"accepts or rejects"| node_outcome

click node_camera "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_vision "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_ml "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_sensors "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_fusion "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_state "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_decision "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_servo "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_outcome "https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md"
click node_firmware "https://github.com/blasted-ctrl/edgeinspect/blob/main/src/main.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_object toneIndigo
class node_camera,node_vision,node_ml,node_sensors,node_fusion,node_state,node_decision,node_servo,node_outcome,node_firmware toneTeal
```

## Components

### Other components

- **Object**
- [Camera](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Computer vision](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [ML prediction](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Physical sensors](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Sensor fusion](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [State machine](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Final decision](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Servo actuator](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [PASS / REJECT](https://github.com/blasted-ctrl/edgeinspect/blob/main/README.md): `README.md`
- [Firmware scaffold](https://github.com/blasted-ctrl/edgeinspect/blob/main/src/main.cpp): `src/main.cpp`

## Connections

- Object → Camera: is inspected by (evidence: `README.md`)
- Camera → Computer vision: provides images to (evidence: `README.md`)
- Computer vision → ML prediction: feeds prediction (evidence: `README.md`)
- ML prediction → Sensor fusion: feeds prediction (evidence: `README.md`)
- Physical sensors → Sensor fusion: provides readings (evidence: `README.md`)
- Sensor fusion → State machine: informs state (evidence: `README.md`)
- State machine → Final decision: determines (evidence: `README.md`)
- Final decision → Servo actuator: controls (evidence: `README.md`)
- Servo actuator → PASS / REJECT: accepts or rejects (evidence: `README.md`)
