# ashwath-0007/smartparkassist architecture

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

- Interactive diagram: https://gitdiagram.com/ashwath-0007/smartparkassist
- Repository: https://github.com/ashwath-0007/smartparkassist

## Overview

SmartParkAssist is an ESP32-based parking aid. Its principal workflow measures obstacle distance using ultrasonic time-of-flight, then provides proximity feedback through a five-stage LED indicator and a live phone dashboard served over the ESP32’s Wi-Fi access point. The README describes these capabilities but no source excerpts or implementation files were provided, so implementation nodes use the only available source directory and relationships are limited to those documented.

Main entry points: [`SmartParkAssistCode`](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode) (ESP32 controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sensing["Distance sensing"]
  node_esp32["ESP32 controller"]
  node_ultrasonic["Ultrasonic sensing"]
  node_distance["Distance measurement"]
end

subgraph group_feedback["Driver feedback"]
  node_led["Five-stage LED gauge"]
end

subgraph group_connectivity["Phone connectivity"]
  node_accesspoint["Wi-Fi access point"]
  node_dashboard["Live distance dashboard"]
end

node_driver(("Driver"))
node_phone(("Smartphone"))

node_esp32 -->|"uses"| node_ultrasonic
node_esp32 -->|"calculates"| node_distance
node_distance -->|"indicates proximity"| node_led
node_distance -->|"updates distance"| node_dashboard
node_esp32 -->|"provides Wi-Fi"| node_accesspoint
node_phone -->|"connects to"| node_accesspoint
node_phone -->|"views"| node_dashboard
node_led -->|"signals warning"| node_driver

click node_esp32 "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"
click node_ultrasonic "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"
click node_distance "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"
click node_led "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"
click node_accesspoint "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"
click node_dashboard "https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode"

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_esp32,node_ultrasonic,node_distance toneBlue
class node_led toneAmber
class node_accesspoint,node_dashboard toneMint
class node_driver,node_phone toneIndigo
```

## Components

### Distance sensing

- [ESP32 controller](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`
- [Ultrasonic sensing](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`
- [Distance measurement](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`

### Driver feedback

- [Five-stage LED gauge](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`

### Phone connectivity

- [Wi-Fi access point](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`
- [Live distance dashboard](https://github.com/ashwath-0007/smartparkassist/blob/main/SmartParkAssistCode): `SmartParkAssistCode`

### Other components

- **Driver**
- **Smartphone**

## Connections

- ESP32 controller → Ultrasonic sensing: uses (evidence: `README.md`)
- ESP32 controller → Distance measurement: calculates (evidence: `README.md`)
- Distance measurement → Five-stage LED gauge: indicates proximity (evidence: `README.md`)
- Distance measurement → Live distance dashboard: updates distance (evidence: `README.md`)
- ESP32 controller → Wi-Fi access point: provides Wi-Fi (evidence: `README.md`)
- Smartphone → Wi-Fi access point: connects to (evidence: `README.md`)
- Smartphone → Live distance dashboard: views (evidence: `README.md`)
- Five-stage LED gauge → Driver: signals warning (evidence: `README.md`)
