# vin070104/ranat-towards-cleaner-and-brighter-india architecture

> Architecture diagram of the GitHub repository vin070104/ranat-towards-cleaner-and-brighter-india, 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/vin070104/ranat-towards-cleaner-and-brighter-india
- Repository: https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india

## Overview

RANAT is an embedded solar-tracking and monitoring project. Its documented workflow uses light and obstruction sensors to guide panel movement, stores excess generated energy, and reports solar voltage through an ESP8266 to ThingSpeak. The repository contains two code text files and a demonstration video, but no source excerpts were provided; the links below therefore reflect README-documented behavior, not verified calls between code modules.

Main entry points: [`SOLAR TRACKER CODE.txt`](https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/SOLAR%20TRACKER%20CODE.txt) (Tracking control), [`WiFi Code.txt`](https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/WiFi%20Code.txt) (Voltage monitoring)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_tracking["Solar tracking"]
  node_ldr["LDR sensors"]
  node_ir["IR obstruction sensors"]
  node_tracker["Tracking control"]
  node_motors["Panel motors"]
  node_panel["Solar panel"]
end

subgraph group_storage["Energy storage"]
  node_ess[("Battery storage")]
end

subgraph group_monitoring["IoT monitoring"]
  node_voltage["Voltage monitoring<br/>[WiFi Code.txt]"]
  node_esp8266["ESP8266 Wi-Fi"]
  node_thingspeak["ThingSpeak"]
end

node_sunlight(("Sunlight"))
node_operator(("System user"))

node_sunlight -->|"illuminates"| node_ldr
node_sunlight -->|"generates energy"| node_panel
node_ldr -->|"guides tracking"| node_tracker
node_ir -->|"signals obstruction"| node_tracker
node_tracker -->|"adjusts position"| node_motors
node_motors -->|"repositions"| node_panel
node_panel -->|"stores excess energy"| node_ess
node_panel -->|"monitors output"| node_voltage
node_voltage -->|"sends readings"| node_esp8266
node_esp8266 -->|"logs readings"| node_thingspeak
node_operator -->|"views monitoring"| node_thingspeak

click node_tracker "https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/SOLAR%20TRACKER%20CODE.txt"
click node_voltage "https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/WiFi%20Code.txt"

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_ldr,node_ir,node_tracker,node_motors,node_panel,node_operator toneBlue
class node_ess toneAmber
class node_voltage,node_esp8266,node_thingspeak toneMint
class node_sunlight toneIndigo
```

## Components

### Solar tracking

- **LDR sensors**
- **IR obstruction sensors**
- [Tracking control](https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/SOLAR%20TRACKER%20CODE.txt): `SOLAR TRACKER CODE.txt`
- **Panel motors**
- **Solar panel**

### Energy storage

- **Battery storage**

### IoT monitoring

- [Voltage monitoring](https://github.com/vin070104/ranat-towards-cleaner-and-brighter-india/blob/main/WiFi%20Code.txt): `WiFi Code.txt`
- **ESP8266 Wi-Fi**
- **ThingSpeak**

### Other components

- **Sunlight**
- **System user**

## Connections

- Sunlight → LDR sensors: illuminates (evidence: `README.md`)
- Sunlight → Solar panel: generates energy (evidence: `README.md`)
- LDR sensors → Tracking control: guides tracking (evidence: `README.md`)
- IR obstruction sensors → Tracking control: signals obstruction (evidence: `README.md`)
- Tracking control → Panel motors: adjusts position (evidence: `README.md`)
- Panel motors → Solar panel: repositions (evidence: `README.md`)
- Solar panel → Battery storage: stores excess energy (evidence: `README.md`)
- Solar panel → Voltage monitoring: monitors output (evidence: `README.md`)
- Voltage monitoring → ESP8266 Wi-Fi: sends readings (evidence: `README.md`)
- ESP8266 Wi-Fi → ThingSpeak: logs readings (evidence: `README.md`)
- System user → ThingSpeak: views monitoring (evidence: `README.md`)
