Smart Building - CompEngIoT-UnicalStudentsOrg/SB-Documentation GitHub Wiki
Principle idea
The principle idea is to divide the architecture of the project in 3 infrastructure:

End devices
The End devices in our system are represented by a set of Arduino (and/ or maybe some ESP32) divided one of each room of our house. Our goal is to have at least one working arduino for each person of the project.
The arduino purpose is divided in 3 phase:
- Detect, every X time (through a sensor), humidity and temperature.
- After some other Y time, that can be random, we simulate that the arduino fail the sensing, and send instead an error message.
- Actuate (we got some ideas to propose).
Edge devices
In our Smart Building project the Edge Devices are represented by a set of Raspberry. Our goal is to have at least one working Raspberry Pi for each person of the project (or at least something that can virtualize it).
On the raspberry, will be deployed the Tensor flow platform and a Nodered app which have multiple tasks:
- Acquire data from Arduino
- Pre-process the data (at least to know if sensor failed or if it is a real good value) 2b. Ask Tensor flow to predict a value (in case of failure)
- Some decision making
- Forward the data to the Cloud
Cloud
We have not decided yet the infrastructure which will host the cloud: the main question is if use an own made server (with another raspberry) or one available online (like Aws, Azure, etc...)
The main focus of the cloud is to host another Nodered app, with the following tasks:
- Receive data from the Edge devices
- Decision making about the Heating, Ventilation and Air Conditioning of the room (HVAC) and decision making about some feature for COVID safety purpose: we are thinking about some calculation on the humidity (because it's know in literature that at high humidity the air transmits more particles).
And in the cloud centric simulation the cloud will host also the tensor flow platform.
Connection: End devices >> << Edge devices
For the connection purpose between End Devices and Edge Devices we decided to use the Serial port that arduino and Raspberry has.
Connection: Edge devices >> << Cloud
For the connection purpose between Edge devices and Cloud we decided to use the MQTT protocol.
Ideas
One idea for a service that our smart building can offer is about the COVID safety for each room:
- Calculate dynamically how many people are in the room (with some sensor or some qr code feature like in UNICAL)
- Calculate dynamically the minimum distance the person need to respect for the COVID safety (based on Humidity and number of people in the room)
- If the distance are over limits we try to reduce humidity (opening a window or starting a dehumidificator)
- If the humidity can't be lowered we start an alarm (or notify the single person on telegram) and ask to people to leave room.