This shows you the differences between two versions of the page.
|
iothings:proiecte:2024:temperature_monitor [2025/01/14 11:57] alexandru.chirila01 |
iothings:proiecte:2024:temperature_monitor [2025/01/14 12:41] (current) alexandru.chirila01 |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ---- | ---- | ||
| - | This project is meant to monitor the temperature for a certain room: the room where the sensor will be placed. It is a simplist project consisting of two parts: | + | This project is meant to monitor the temperature for a certain room: the room where the sensor will be placed. It only prints data when the temperature changes by at least 0.5 °C since the last printed temperature value. It also plays a notification sound when this change of temperature occurs. The project consists of two separate parts: |
| - | - An arduino program which monitors the temperature and sends it to a Firebase database | + | - An arduino program which monitors the temperature and sends it to a Firebase database. The program runs on an ESP32 |
| - | - A Python script which can be run on any computer or even an Android phone or an iPhone (Python interpreter installation required) | + | - A Python script which gets the temperature from the database. It can be run on any computer or even an Android phone or an iPhone (Python interpreter installation required) |
| + | |||
| + | === Schematic === | ||
| + | ----- | ||
| + | |||
| + | {{:iothings:proiecte:2024:schema_2.png?600|}} | ||
| === Hardware Description === | === Hardware Description === | ||
| Line 87: | Line 92: | ||
| As said before, the data read from sensor is saved in Firebase and is updated in real time in the output of the python script. | As said before, the data read from sensor is saved in Firebase and is updated in real time in the output of the python script. | ||
| - | === Running the Python script === | + | === Python script === |
| ---- | ---- | ||
| - | Running the python script is as follows: | + | In order for the Python script to run, the playsound3 library needs to be installed. Here is a simple way to install it via pip: |
| - | $ python .\app_client.py | + | pip install git+https://github.com/sjmikler/playsound3.git |
| - | Temperature at 2025-01-14 11:49:49.943171: 32.45°C | + | |
| - | Temperature at 2025-01-14 11:50:26.979049: 32.97°C | + | Running the python script is done as follows: |
| - | Temperature at 2025-01-14 11:50:45.226801: 33.53°C | + | |
| | | ||
| {{:iothings:proiecte:2024:running_the_script.png?700|}} | {{:iothings:proiecte:2024:running_the_script.png?700|}} | ||
| Line 100: | Line 104: | ||
| https://randomnerdtutorials.com/esp32-firebase-realtime-database/ | https://randomnerdtutorials.com/esp32-firebase-realtime-database/ | ||
| + | |||
| + | https://github.com/sjmikler/playsound3 | ||