This shows you the differences between two versions of the page.
iothings:proiecte:2021:flood-detection [2022/01/28 00:20] alexandru.ionascu |
iothings:proiecte:2021:flood-detection [2022/01/28 08:41] (current) alexandru.ionascu |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Flood Detecton System ==== | ==== Flood Detecton System ==== | ||
<sub>Alexandru Ionascu - AAC 2021</sub> \\ | <sub>Alexandru Ionascu - AAC 2021</sub> \\ | ||
- | <sub>[[https://youtu.be/t9QbCft8HMM | [Project Demo]]]</sub> | + | <sub>[[https://youtu.be/t9QbCft8HMM | [Project Video]]]</sub> |
=== 1. Project Objective === | === 1. Project Objective === | ||
Line 34: | Line 34: | ||
=== 4. Software Description === | === 4. Software Description === | ||
- | The code consists of two main functions: setup and loop. In the setup function, we will set the echo and trigger pins and we will connect to the local Wi-Fi network to perform further HTTP requests. Once the connection is established, in the loop function, we will measure the distance to the floor in centimeters by sending ulstrasonic impulses and if this is less than 2 centimeters, we will perform a POST request to the Pushover API. There will also be a 2s delay between requests to make avoid unnecessary push notifications. | + | The code consists of two main functions: **setup** and **loop**. In the setup function, we will set the echo and trigger pins and we will connect to the local Wi-Fi network to perform further HTTP requests. Once the connection is established, in the loop function, we will measure the distance to the floor in centimeters by sending ulstrasonic impulses and if this is less than 2 centimeters, we will perform a POST request to the Pushover API. There will also be a 2s delay between requests to make avoid unnecessary push notifications. |
The source code is listed below: | The source code is listed below: |