This shows you the differences between two versions of the page.
iothings:proiecte:2021:pulsemonitorsystem [2022/01/28 08:36] ana_maria.cretan [Software flow] |
iothings:proiecte:2021:pulsemonitorsystem [2022/01/28 08:40] (current) ana_maria.cretan [Software flow] |
||
---|---|---|---|
Line 17: | Line 17: | ||
{{:iothings:proiecte:2021:schematic_iot_prj_2022-01-24.png?500|}} | {{:iothings:proiecte:2021:schematic_iot_prj_2022-01-24.png?500|}} | ||
- | ====== Software flow ====== | + | ====== Work flow ====== |
The implementation consists of three connections: | The implementation consists of three connections: | ||
- | * Connection with the pulse sensor MAX301000 | + | * Connection with the pulse sensor MAX301000 - for data receiving |
- | * Connection to the Adafruit IO through MQTT clinet | + | * Connection to the Adafruit IO through MQTT client - for displaying the data and its interpretation |
- | * Connection to the IFTTT API | + | * Connection to the IFTTT API - for the email alert feature |
The main functionality of the code is displayed by the following diagram. The //setup()// function is executed first and is used to enable the wi-fi connection, connect to the MQTT client, and config the pulse sensor. | The main functionality of the code is displayed by the following diagram. The //setup()// function is executed first and is used to enable the wi-fi connection, connect to the MQTT client, and config the pulse sensor. | ||
Line 28: | Line 28: | ||
In the setup section of the code, the Wi-Fi connection is established, followed by the MQTT connection for the web application and the configuration of the pulse sensor. | In the setup section of the code, the Wi-Fi connection is established, followed by the MQTT connection for the web application and the configuration of the pulse sensor. | ||
- | During the loop section, the connection to the MQTT client is checked first along with the switch state from the application. The data published to the web display can we stopped at any time (while connected) by turning the switch block off. | + | During the loop section, the connection to the MQTT client is checked first along with the switch state from the application. The data published to the web display can be stopped at any time (while connected) by turning the switch block off. |
- | ====== Software code detailed ====== | + | ====== Software implementation ====== |
The code is developed using Arduino IDE,and the following libraries: | The code is developed using Arduino IDE,and the following libraries: |