# nathanfe05/esp-32-led-staircase architecture

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

- Interactive diagram: https://gitdiagram.com/nathanfe05/esp-32-led-staircase
- Repository: https://github.com/nathanfe05/esp-32-led-staircase

## Overview

This small ESP32 project controls a staircase LED installation using two PIR motion sensors and a web server for user control. The documented workflow is motion or web access reaching the ESP32, which controls the LEDs. The README establishes these capabilities, but no source excerpts were available, so the graph does not infer finer software stages or implementation details.

Main entry points: [`ESP32 Version 19/ESP32 Version 19.ino`](https://github.com/nathanfe05/esp-32-led-staircase/blob/main/ESP32%20Version%2019/ESP32%20Version%2019.ino) (ESP32 Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_resident(("Resident"))
node_pir_sensors["PIR Sensors"]
node_web_server["Web Server"]
node_esp32["ESP32 Controller"]
node_leds["Staircase LEDs"]

node_resident -->|"controls via"| node_web_server
node_pir_sensors -->|"trigger motion"| node_esp32
node_web_server -->|"provides control"| node_esp32
node_esp32 -->|"controls lighting"| node_leds

click node_web_server "https://github.com/nathanfe05/esp-32-led-staircase/blob/main/ESP32%20Version%2019/ESP32%20Version%2019.ino"
click node_esp32 "https://github.com/nathanfe05/esp-32-led-staircase/blob/main/ESP32%20Version%2019/ESP32%20Version%2019.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_resident,node_pir_sensors,node_leds toneIndigo
class node_web_server toneMint
class node_esp32 toneTeal
```

## Components

### Other components

- **Resident**
- **PIR Sensors**
- [Web Server](https://github.com/nathanfe05/esp-32-led-staircase/blob/main/ESP32%20Version%2019/ESP32%20Version%2019.ino): `ESP32 Version 19/ESP32 Version 19.ino`
- [ESP32 Controller](https://github.com/nathanfe05/esp-32-led-staircase/blob/main/ESP32%20Version%2019/ESP32%20Version%2019.ino): `ESP32 Version 19/ESP32 Version 19.ino`
- **Staircase LEDs**

## Connections

- Resident → Web Server: controls via (evidence: `README.md`)
- PIR Sensors → ESP32 Controller: trigger motion (evidence: `README.md`)
- Web Server → ESP32 Controller: provides control (evidence: `README.md`)
- ESP32 Controller → Staircase LEDs: controls lighting (evidence: `README.md`)
