# Test

# Projektstart

Im Anhang befindet sich die Projektidee + benötigte Ressourcen

# Documentation

<span style="color: #2a6099;"><span style="font-size: large;">**Personenzähler via Motion Detection Sensor**</span></span>

<span style="color: #000000;"><span style="font-size: medium;">**Idee:**</span></span>

<span style="color: #000000;"><span style="font-size: medium;">Wir wollen einen Sensor bauen, der Personen zählt, die den Raum betreten und den Raum verlassen. Jedes mal, wenn eine Person den Raum betritt, werden Daten an den Broker gesendet (Eintrittsdatum, aktuelle Personenanzahl im Raum) zusätzlich geht für jede Person, die den Raum betritt ein grünes Licht an (LED Stripes) und wenn eine Person den Raum verlässt, ein Licht aus. </span></span>

<span style="color: #000000;"><span style="font-size: medium;">Wenn die erste Person den Raum betritt, wird eine Nachricht der Person gesendet, dass sie das Licht anmachen soll. (Benachrichtigung via E-Mail o.Ä.). Wenn die letzte Person im Raum ist, ist das letzte Lämpchen rot, um zu signalisieren, dass sie die Fenster schließen soll und die Tür zuschließen sollte. Auch dies wird per Benachrichtigung gesteuert. Ist die Personenanzahl = 0, so leuchtet kein Lämpchen.</span></span>

<span style="color: #000000;"><span style="font-size: medium;">**Benötigte Ressourcen:**</span></span>

<span style="color: #000000;"><span style="font-size: medium;">**Hardware:**</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- 2x PIR Sensor → Baumi</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- Mikrocontroller (ESP-32) → Baumi</span></span>

<span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">- LED Stripes (</span></span></span>WS2812B <span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">)</span></span></span>

<span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">- </span></span></span><span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">Lautsprecher (DFPlayer Mini + Micro-SD-Karte) → ?</span></span></span>

<span style="color: #000000;"><span style="font-size: medium;">**Software:**</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- Brokerserver, zum Speichern der Daten / Rasberry Pi mit Docker Container</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- InfluxDB2 für das Speichern in Datenbanken</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- MQTT, um Daten schnell lesen zu können</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- NodeRed, um Daten umzuwandeln und in der InfluxDB speichern zu können</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- Grafana, um Daten zu visualisieren</span></span>

<span style="color: #000000;"><span style="font-size: medium;">- HiveMQ Anmeldeverwaltung für Broker   
</span></span>

<span style="color: #000000;"><span style="font-size: medium;">**Links:**</span></span>

<span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">- LED Stripes: </span></span></span>[<span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">LED Stripes – AliExpress</span></span></span>](https://de.aliexpress.com/item/2036819167.html?spm=a2g0o.productlist.main.1.413e2f62enjbOs&algo_pvid=2a527e2a-eaf5-4be9-83c1-6e7a2c4c46cd&algo_exp_id=2a527e2a-eaf5-4be9-83c1-6e7a2c4c46cd-0&pdp_ext_f=%7B%22order%22%3A%226348%22%2C%22eval%22%3A%221%22%2C%22fromPage%22%3A%22search%22%7D&pdp_npi=6%40dis%21EUR%214.85%210.99%21%21%215.59%211.14%21%402103890117701050617512711ee193%2112000033705280747%21sea%21DE%210%21ABX%211%210%21n_tag%3A-29910%3Bd%3Ad3d2254%3Bm03_new_user%3A-29895%3BpisId%3A5000000197696397&curPageLogUid=qWK27zZ5tW3L&utparam-url=scene%3Asearch%7Cquery_from%3A%7Cx_object_id%3A2036819167%7C_p_origin_prod%3A)

- <span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">YOLO (Camera detection): [YOLO - Github](https://github.com/ultralytics/ultralytics)</span></span></span>
- <span style="color: #000000;"><span style="font-size: medium;"><span style="font-weight: normal;">Home Wi-Fi (Sensorverwaltung)</span></span></span>