Merge branch 'main' of ssh://gitlab.fdmci.hva.nl/propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-3/qaajeeqiinii59

This commit is contained in:
Sietse Jonker
2024-02-09 16:29:53 +01:00
11 changed files with 65 additions and 35 deletions

View File

@@ -9,4 +9,5 @@ nav:
- 📚 Documentatie: - 📚 Documentatie:
- I2C: arduino-documentation/i2c-ESP32 - I2C: arduino-documentation/i2c-ESP32
- 🧠 Brainstorm: - 🧠 Brainstorm:
- Ideeën: brainstorm/ideeën - Ideeën: brainstorm/ideeën
- Database design: brainstorm/Database

View File

@@ -1,3 +0,0 @@
# Feedback:

View File

@@ -0,0 +1,11 @@
# The Plan.
Around the school, we will collect various information using nodes, which we will ultimately process into a database.
The locations we choose for the nodes can vary between ceilings and walls to gather various measurements effectively.
The measurements will include: temperature, CO2, humidity, and sound.
At one of the nodes, a screen with a survey will also be placed so that we can receive feedback from the students.
The node with the screen will be placed near the coffee machines and the water tap to ensure it is easily accessible and located in a frequently visited area.
This way, we can obtain as many results as possible and have the best possible overview of where attention is needed.

View File

@@ -0,0 +1,22 @@
# Infrastructuur
## Database en nodes
![!\[Database en nodes\](assets/ImagesSp1/Sp1DataTrack.jpg)
](../assets/ImagesSp1/Sp1DataTrack.jpg)
You can see that in the picture we've drew all the nodes and the tables for the database, every node has multiple sensors and only node 1 has an extra screen. The database is used to store all the data that the nodes collect. Here is a picture that
shows what the nodes do:
![alt text](../assets/ImagesSp1/Sp1Node.jpg)We also have this sketch digitalised in a simpler way:
![alt text](../assets/ImagesSp1/digitaleInfrastructuur.png)
You can see that every node measures:
- Temperature
- Humidity
- CO2 level
- Sound level
Each of these factors can have an influence on the comfort and efficientie the students can have.
The nodes are connected to the database using post requests, every node sends a post request to the database with the sensordata it has collected. The database then stores this data in the right table. This is the table called "Node" in the first picture.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

View File

@@ -0,0 +1,30 @@
# Database
## v1
This was our first version of the database. It isnt normalized and not optimized for performance. It was a starting point to see what we needed. We where still missing some colums.
![Databasev1](../assets/Database/IMG_0909.jpg)
## v2
This is our second version of the database. We added some columns and normalized the database based on feedback within the group.
![Databasev2](../assets/Database/IMG_0908.jpg)
## v3
Based on feedback from Mats we finished the database.
```
Note niet direct praten met de db, maar dan via de website via een api.
Niet alle data in 1 tabel gaan versamelen, maar in meerdere tabellen en dan per meting een tabel.
indentiviceren van de comunicatie methodes (rode lijntjes)
afbeelding met beschreiving in markdown
tabel: node
info: Id, Naam, Locatie.
Tabel: meting
info: id, node-Id, type sensor, waarde.
```
We added extra tables for identifying and naming nodes. We also changed the Measurements table so we dont have to send all data at once. This will make it easier to add new nodes that are missing some sensors.
![Databasev3](../assets/Database/Screenshot%202024-02-09%20130735.png)

View File

@@ -1,31 +0,0 @@
# Infrastructuur
## Database en nodes
![Database en nodes](assets/ImagesSp1/Sp1DataTrack.jpg)
You can see that in the picture we've drew all the nodes and the tables for the database, every node has multiple sensors and only node 1 has an extra screen. The database is used to store all the data that the nodes collect. Here is a picture that shows what the nodes do:
![Nodes](assets/ImagesSp1/Sp1Node.jpg)
We also have this sketch digitalised in a simpler way:
![Nodes](assets/ImagesSp1/digitaleInfrastructuur.png)
You can see that every node measures:
- Temperature
- Humidity
- CO2 level
- Sound level
The nodes are connected to the database using post requests, every node sends a post request to the database with the sensordata it has collected. The database then stores this data in the right table. This is the table called "Node" in the first picture.
## Database tables
The database is used to store all the data that the nodes collect. The database is a MySQL database and is hosted on the Raspberry Pi. The database has 3 tables:
- One for the nodes
- One for the enquete data
- one for the questions of the enquete
We are considering making a table to connect the enquetedata and questions.