# bug7a/arduino-mantar-otomasyonu architecture

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

- Interactive diagram: https://gitdiagram.com/bug7a/arduino-mantar-otomasyonu
- Repository: https://github.com/bug7a/arduino-mantar-otomasyonu

## Overview

This is an Arduino-based oyster-mushroom grow-box automation. Its documented workflow reads temperature and humidity, humidifies to keep humidity above 80%, ventilates for 10 seconds each hour, and turns on lighting for four hours when it gets dark; temperature is displayed but not automatically controlled. The README documents these relationships, but no firmware excerpt was provided, so the graph does not infer internal code structure.

Main entry points: [`mantar_main/mantar_main.ino`](https://github.com/bug7a/arduino-mantar-otomasyonu/blob/main/mantar_main/mantar_main.ino) (Arduino firmware)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sensing["Sensing"]
  node_dht11["DHT11 sensor"]
  node_ldr["LDR sensor"]
end

subgraph group_firmware["Automation"]
  node_firmware["Arduino firmware<br/>[mantar_main.ino]"]
end

subgraph group_outputs["Outputs"]
  node_humidifier["Ultrasonic humidifier"]
  node_fans["Ventilation fans"]
  node_neopixel["Neopixel lighting"]
  node_lcd["LCD display"]
end

node_environment(("Grow-box conditions"))

node_environment -->|"provides readings"| node_dht11
node_environment -->|"provides light"| node_ldr
node_dht11 -->|"sends readings"| node_firmware
node_ldr -->|"signals darkness"| node_firmware
node_firmware -->|"controls humidity"| node_humidifier
node_firmware -->|"runs hourly"| node_fans
node_firmware -->|"lights four hours"| node_neopixel
node_firmware -->|"displays temperature"| node_lcd

click node_firmware "https://github.com/bug7a/arduino-mantar-otomasyonu/blob/main/mantar_main/mantar_main.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_dht11,node_ldr toneBlue
class node_firmware toneAmber
class node_humidifier,node_fans,node_neopixel,node_lcd toneMint
class node_environment toneIndigo
```

## Components

### Sensing

- **DHT11 sensor**
- **LDR sensor**

### Automation

- [Arduino firmware](https://github.com/bug7a/arduino-mantar-otomasyonu/blob/main/mantar_main/mantar_main.ino): `mantar_main/mantar_main.ino`

### Outputs

- **Ultrasonic humidifier**
- **Ventilation fans**
- **Neopixel lighting**
- **LCD display**

### Other components

- **Grow-box conditions**

## Connections

- Grow-box conditions → DHT11 sensor: provides readings (evidence: `README.md`)
- Grow-box conditions → LDR sensor: provides light (evidence: `README.md`)
- DHT11 sensor → Arduino firmware: sends readings (evidence: `README.md`)
- LDR sensor → Arduino firmware: signals darkness (evidence: `README.md`)
- Arduino firmware → Ultrasonic humidifier: controls humidity (evidence: `README.md`)
- Arduino firmware → Ventilation fans: runs hourly (evidence: `README.md`)
- Arduino firmware → Neopixel lighting: lights four hours (evidence: `README.md`)
- Arduino firmware → LCD display: displays temperature (evidence: `README.md`)
