# tendo10110/itrack architecture

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

- Interactive diagram: https://gitdiagram.com/tendo10110/itrack
- Repository: https://github.com/tendo10110/itrack

## Overview

This ESP32 demo continuously captures camera images, runs Edge Impulse object detection, reads GPS coordinates, and sends inference and location data to Firebase. The single sketch owns device setup and the loop, so its documented responsibilities are represented as separate components sharing the same source path. Relationships are based on the README; no source excerpts were available to verify implementation details.

Main entry points: [`example/esp32_camera/esp32_camera.ino`](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino) (Setup and Loop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_device["Device Setup"]
  node_loop["Setup and Loop<br/>[esp32_camera.ino]"]
  node_wifi["WiFi Connection<br/>[esp32_camera.ino]"]
end

subgraph group_processing["Sensing and Inference"]
  node_camera["Camera Capture<br/>[esp32_camera.ino]"]
  node_gps["GPS Parsing<br/>[esp32_camera.ino]"]
  node_inference["Image Inference<br/>[esp32_camera.ino]"]
end

subgraph group_cloud["Cloud Reporting"]
  node_firebase_client["Firebase Client<br/>[esp32_camera.ino]"]
end

node_camera_module(("Camera Module"))
node_gps_module(("GPS Module"))
node_edge_impulse["Edge Impulse"]
node_firebase[("Firebase")]
node_wifi_network(("WiFi Network"))

node_loop -->|"connects to"| node_wifi
node_loop -->|"initializes and captures"| node_camera
node_camera -->|"captures images"| node_camera_module
node_loop -->|"runs inference"| node_inference
node_inference -->|"classifies images"| node_edge_impulse
node_loop -->|"reads coordinates"| node_gps
node_gps -->|"parses GPS data"| node_gps_module
node_loop -->|"sends results"| node_firebase_client
node_firebase_client -->|"pushes and deletes data"| node_firebase
node_wifi -->|"connects over"| node_wifi_network

click node_loop "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"
click node_wifi "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"
click node_camera "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"
click node_gps "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"
click node_inference "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"
click node_firebase_client "https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino"

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_loop,node_wifi toneBlue
class node_camera,node_gps,node_inference,node_firebase toneAmber
class node_firebase_client toneMint
class node_camera_module,node_gps_module,node_edge_impulse,node_wifi_network toneIndigo
```

## Components

### Device Setup

- [Setup and Loop](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`
- [WiFi Connection](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`

### Sensing and Inference

- [Camera Capture](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`
- [GPS Parsing](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`
- [Image Inference](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`

### Cloud Reporting

- [Firebase Client](https://github.com/tendo10110/itrack/blob/main/example/esp32_camera/esp32_camera.ino): `example/esp32_camera/esp32_camera.ino`

### Other components

- **Camera Module**
- **GPS Module**
- **Edge Impulse**
- **Firebase**
- **WiFi Network**

## Connections

- Setup and Loop → WiFi Connection: connects to (evidence: `README.md`)
- Setup and Loop → Camera Capture: initializes and captures (evidence: `README.md`)
- Camera Capture → Camera Module: captures images (evidence: `README.md`)
- Setup and Loop → Image Inference: runs inference (evidence: `README.md`)
- Image Inference → Edge Impulse: classifies images (evidence: `README.md`)
- Setup and Loop → GPS Parsing: reads coordinates (evidence: `README.md`)
- GPS Parsing → GPS Module: parses GPS data (evidence: `README.md`)
- Setup and Loop → Firebase Client: sends results (evidence: `README.md`)
- Firebase Client → Firebase: pushes and deletes data (evidence: `README.md`)
- WiFi Connection → WiFi Network: connects over (evidence: `README.md`)
