diff --git a/docs/arduino-documentation/i2c-ESP32.md b/docs/arduino-documentation/i2c-ESP32.md index 18a4203..4e61e06 100644 --- a/docs/arduino-documentation/i2c-ESP32.md +++ b/docs/arduino-documentation/i2c-ESP32.md @@ -22,9 +22,10 @@ Its pretty weird that it only works on default with GPIO 8 and 9, and i dont hav - https://learn.sparkfun.com/tutorials/i2c - https://www.esp32.com/viewtopic.php?t=20070 - https://www.esp32.com/viewtopic.php?t=23659 - +- Copilot contributed to the grammatical correctness of this document. + This pinout diagram from an old esp32 board shows GPIO 8 and 9 as the default I2C pins. And this appears to be the case for the **ESP32-S3 DevKitC** as well. ![ESP32-S2 Saola Pinout diagram](image.png) -**Written by Sietse** \ No newline at end of file +**Written by Sietse** diff --git a/docs/assets/ImagesSp1/digitaleInfrastructuur.png b/docs/assets/ImagesSp1/digitaleInfrastructuur.png new file mode 100644 index 0000000..ff2bf71 Binary files /dev/null and b/docs/assets/ImagesSp1/digitaleInfrastructuur.png differ diff --git a/docs/infrastructuur.md b/docs/infrastructuur.md new file mode 100644 index 0000000..d63c293 --- /dev/null +++ b/docs/infrastructuur.md @@ -0,0 +1,31 @@ +# 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.jpg) + +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. \ No newline at end of file