# jagahpee/cdac_project architecture

> Architecture diagram of the GitHub repository jagahpee/cdac_project, 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/jagahpee/cdac_project
- Repository: https://github.com/jagahpee/cdac_project

## Overview

This repository contains two ESP32 IoT products. The glove workflow senses finger movement, maps gestures to communication, and presents or sends the result; the fire system senses hazards and provides local and remote alerts. The sampled files show glove sensor/configuration declarations and the fire integrations’ sensor and connectivity setup. The root README documents the user-facing capabilities, but the main firmware files were not sampled, so workflow links are based on that documentation rather than verified call paths.

Main entry points: [`01_Smart_Hand_Gloves/Code/Smart_Gloves/Smart_Gloves.ino`](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Smart_Gloves.ino) (Gesture recognition), [`02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino`](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino) (Fire monitoring), [`01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Pin_Declarations.h`](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Pin_Declarations.h) (Finger sensors), [`02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/library.h`](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/library.h) (Fire and climate sensors)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_glove["Smart hand gloves"]
  node_flex_sensors["Finger sensors"]
  node_gesture_firmware["Gesture recognition<br/>[Smart_Gloves.ino]"]
  node_speech_output["Speech output"]
  node_glove_oled["OLED text"]
  node_glove_mqtt["Glove IoT alerts"]
end

subgraph group_glove_internal["Glove internals"]
  node_glove_sensor_tasks["Sensor tasks"]
  node_glove_state["Gesture messages<br/>[Global_variable.h]"]
  node_glove_config["Pins and tracks<br/>[ENUM_TRACK_NO.h]"]
end

subgraph group_fire["Fire alarm"]
  node_fire_sensors["Fire and climate sensors<br/>[library.h]"]
  node_fire_firmware["Fire monitoring<br/>[MQTT_01.ino]"]
  node_fire_local["Local warnings<br/>[function.ino]"]
  node_blynk_monitor["Blynk monitoring<br/>[BLYNK.ino]"]
  node_mqtt_alerts["MQTT alerts<br/>[MQTT_01.ino]"]
end

subgraph group_fire_internal["Fire internals"]
  node_fire_config["Sensor and display setup<br/>[library.h]"]
end

node_wearer(("Glove wearer"))
node_remote_device(("Remote device"))
node_occupants(("People nearby"))
node_blynk_service(("Blynk service"))
node_mqtt_service(("MQTT service"))

node_wearer -->|"moves fingers"| node_flex_sensors
node_flex_sensors -->|"senses motion"| node_gesture_firmware
node_gesture_firmware -->|"plays speech"| node_speech_output
node_gesture_firmware -->|"shows text"| node_glove_oled
node_gesture_firmware -->|"sends notification"| node_glove_mqtt
node_glove_mqtt -->|"notifies"| node_remote_device
node_glove_sensor_tasks -.->|"uses state"| node_glove_state
node_glove_config -->|"defines pins"| node_flex_sensors
node_occupants -->|"exposes hazard"| node_fire_sensors
node_fire_sensors -->|"provides readings"| node_fire_firmware
node_fire_firmware -->|"triggers warnings"| node_fire_local
node_fire_firmware -->|"sends monitoring data"| node_blynk_monitor
node_blynk_monitor -->|"updates dashboard"| node_blynk_service
node_fire_firmware -->|"sends emergency alerts"| node_mqtt_alerts
node_mqtt_alerts -->|"publishes alert"| node_mqtt_service
node_fire_local -->|"warns audibly"| node_occupants
node_fire_config -->|"defines sensors"| node_fire_sensors

click node_flex_sensors "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Pin_Declarations.h"
click node_gesture_firmware "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Smart_Gloves.ino"
click node_speech_output "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino"
click node_glove_oled "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Definitions.ino"
click node_glove_mqtt "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/MQTT_Function_Definition.ino"
click node_glove_sensor_tasks "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino"
click node_glove_state "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Global_variable.h"
click node_glove_config "https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/ENUM_TRACK_NO.h"
click node_fire_sensors "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/library.h"
click node_fire_firmware "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino"
click node_fire_local "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/function.ino"
click node_blynk_monitor "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/BLYNK.ino"
click node_mqtt_alerts "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino"
click node_fire_config "https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/library.h"

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_flex_sensors,node_gesture_firmware,node_speech_output,node_glove_oled,node_glove_mqtt toneBlue
class node_glove_sensor_tasks,node_glove_state,node_glove_config toneAmber
class node_fire_sensors,node_fire_firmware,node_fire_local,node_blynk_monitor,node_mqtt_alerts toneMint
class node_fire_config toneRose
class node_wearer,node_remote_device,node_occupants,node_blynk_service,node_mqtt_service toneIndigo
```

## Components

### Smart hand gloves

- [Finger sensors](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Pin_Declarations.h): `01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Pin_Declarations.h`
- [Gesture recognition](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Smart_Gloves.ino): `01_Smart_Hand_Gloves/Code/Smart_Gloves/Smart_Gloves.ino`
- [Speech output](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino): `01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino`
- [OLED text](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Definitions.ino): `01_Smart_Hand_Gloves/Code/Smart_Gloves/GPIO_Definitions.ino`
- [Glove IoT alerts](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/MQTT_Function_Definition.ino): `01_Smart_Hand_Gloves/Code/Smart_Gloves/MQTT_Function_Definition.ino`

### Glove internals

- [Sensor tasks](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino): `01_Smart_Hand_Gloves/Code/Smart_Gloves/Task_Definitions.ino`
- [Gesture messages](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/Global_variable.h): `01_Smart_Hand_Gloves/Code/Smart_Gloves/Global_variable.h`
- [Pins and tracks](https://github.com/jagahpee/cdac_project/blob/main/01_Smart_Hand_Gloves/Code/Smart_Gloves/ENUM_TRACK_NO.h): `01_Smart_Hand_Gloves/Code/Smart_Gloves/ENUM_TRACK_NO.h`

### Fire alarm

- [Fire and climate sensors](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/library.h): `02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/library.h`
- [Fire monitoring](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino): `02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino`
- [Local warnings](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/function.ino): `02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/function.ino`
- [Blynk monitoring](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/BLYNK.ino): `02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/BLYNK.ino`
- [MQTT alerts](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino): `02_Smart_Fire_Alarm_and_Alert_System/Code/MQTT/MQTT_01/MQTT_01.ino`

### Fire internals

- [Sensor and display setup](https://github.com/jagahpee/cdac_project/blob/main/02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/library.h): `02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/library.h`

### Other components

- **Glove wearer**
- **Remote device**
- **People nearby**
- **Blynk service**
- **MQTT service**

## Connections

- Glove wearer → Finger sensors: moves fingers (evidence: `README.md`)
- Finger sensors → Gesture recognition: senses motion (evidence: `README.md`)
- Gesture recognition → Speech output: plays speech (evidence: `README.md`)
- Gesture recognition → OLED text: shows text (evidence: `README.md`)
- Gesture recognition → Glove IoT alerts: sends notification (evidence: `README.md`)
- Glove IoT alerts → Remote device: notifies (evidence: `README.md`)
- Sensor tasks → Gesture messages: uses state
- Pins and tracks → Finger sensors: defines pins (evidence: `01_Smart_Hand_Gloves/Code/Smart_Gloves/Library.h`)
- People nearby → Fire and climate sensors: exposes hazard (evidence: `README.md`)
- Fire and climate sensors → Fire monitoring: provides readings (evidence: `README.md`)
- Fire monitoring → Local warnings: triggers warnings (evidence: `README.md`)
- Fire monitoring → Blynk monitoring: sends monitoring data (evidence: `README.md`)
- Blynk monitoring → Blynk service: updates dashboard (evidence: `README.md`)
- Fire monitoring → MQTT alerts: sends emergency alerts (evidence: `README.md`)
- MQTT alerts → MQTT service: publishes alert (evidence: `README.md`)
- Local warnings → People nearby: warns audibly (evidence: `README.md`)
- Sensor and display setup → Fire and climate sensors: defines sensors (evidence: `02_Smart_Fire_Alarm_and_Alert_System/Code/Blynk/BLYNK/library.h`)
