# djpeper1111/fuen-fysieke-simulatie architecture

> Architecture diagram of the GitHub repository djpeper1111/fuen-fysieke-simulatie, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/djpeper1111/fuen-fysieke-simulatie
- Repository: https://github.com/djpeper1111/fuen-fysieke-simulatie

## Overview

This is a small Arduino household-load and V2G indicator, implemented entirely in one source file. The loop reads a potentiometer, maps its value to a displayed load, and compares it with a threshold. Normal load selects a normal status; overload first signals an alert, then activates the battery and V2G indicators after three seconds. The README is empty, so the architecture is based only on the sampled source; the LCD and LEDs are represented as external hardware.

Main entry points: [`huisje_transformator.cpp`](https://github.com/djpeper1111/fuen-fysieke-simulatie/blob/main/huisje_transformator.cpp) (Load Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_controller["Load Controller"]
node_potentiometer(("Load Potentiometer"))
node_lcd["LCD"]
node_indicators["Status LEDs"]

node_controller -->|"reads input"| node_potentiometer
node_controller -->|"updates display"| node_lcd
node_controller -->|"drives indicators"| node_indicators

click node_controller "https://github.com/djpeper1111/fuen-fysieke-simulatie/blob/main/huisje_transformator.cpp"

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_controller toneTeal
class node_potentiometer,node_lcd,node_indicators toneIndigo
```

## Components

### Other components

- [Load Controller](https://github.com/djpeper1111/fuen-fysieke-simulatie/blob/main/huisje_transformator.cpp): `huisje_transformator.cpp`
- **Load Potentiometer**
- **LCD**
- **Status LEDs**

## Connections

- Load Controller → Load Potentiometer: reads input (evidence: `huisje_transformator.cpp`)
- Load Controller → LCD: updates display (evidence: `huisje_transformator.cpp`)
- Load Controller → Status LEDs: drives indicators (evidence: `huisje_transformator.cpp`)
