This shows you the differences between two versions of the page.
iothings:proiecte:2021:smarthydration [2022/01/11 19:21] ioana.cristea0112 |
iothings:proiecte:2021:smarthydration [2022/01/20 19:03] (current) ioana.cristea0112 |
||
---|---|---|---|
Line 2: | Line 2: | ||
<sub>author Ioana Cristea</sub> | <sub>author Ioana Cristea</sub> | ||
<sub>ACES 2021</sub> \\ | <sub>ACES 2021</sub> \\ | ||
- | <sub>[[yt-link | [Video]]]</sub> | + | <sub>[[https://youtu.be/OxXadC4ws0Y | [Video]]]</sub> |
=== 1.Project Objective === | === 1.Project Objective === | ||
Line 14: | Line 14: | ||
The email notification will arrive at an interval established by the user. \\ | The email notification will arrive at an interval established by the user. \\ | ||
If the user does not drink in the interval specified, and did not receive an email during this period, than a new email will be sent. \\ | If the user does not drink in the interval specified, and did not receive an email during this period, than a new email will be sent. \\ | ||
- | For a visual feedback, there is a led bar indicating the level of the water. | + | For a visual feedback, there is a led bar indicating the level of the water. \\ |
- | + | The platform used for programming the Intel Galileo board is Arduino IDE. \\ | |
=== 3.Hardware Description === | === 3.Hardware Description === | ||
Line 21: | Line 21: | ||
* ** ESP32 Wroom Board ** | * ** ESP32 Wroom Board ** | ||
* The ESP Wroom Board controls the entire system. It sends the emails to the user, it monitors the water level and gives feedback. | * The ESP Wroom Board controls the entire system. It sends the emails to the user, it monitors the water level and gives feedback. | ||
+ | * This board can be used with the Arduino IDE. | ||
+ | {{ :iothings:proiecte:2021:esp32-board.jpg? 200 | ESP32 Wroom Board}} | ||
* ** HC-SR04 Ultrasonic Sensor ** | * ** HC-SR04 Ultrasonic Sensor ** | ||
Line 27: | Line 29: | ||
* The ultrasonic sensor has the role to measure the level of water within the glass. This level is measured at every iteration of the program loop. | * The ultrasonic sensor has the role to measure the level of water within the glass. This level is measured at every iteration of the program loop. | ||
* The trigger signal is linked to the digital GPIO 33, the echo signal is linked to the GPIO 25, the VCC signal is linked to 5V and the ground signal is linked to GND. | * The trigger signal is linked to the digital GPIO 33, the echo signal is linked to the GPIO 25, the VCC signal is linked to 5V and the ground signal is linked to GND. | ||
- | {{ hc-sr04.jpg | HC-SR04 Ultrasonic Distance Sensor}} | + | {{ :iothings:proiecte:2021:hc-sr04.jpg? 200 | HC-SR04 Ultrasonic Distance Sensor}} |
* ** Led Bar ** | * ** Led Bar ** | ||
* The Led Bar is not a necessary component, but it gives some more feedback to the user. | * The Led Bar is not a necessary component, but it gives some more feedback to the user. | ||
+ | * The led bar is formed by 10 parallel leds. | ||
+ | * Each led is enseried with a 220 ohm resistance to protect them from burning out. | ||
+ | * For this project only 4 leds were used to offer a visual representation of the water lever, the more leds are turned on, the higher the water level is. | ||
+ | * The 4 leds are linked to the pins 12,14,27,26. | ||
* The Led Bar has all the LEDs on when the glass is full in order to attract the user and make him feel like he needs to drink water. | * The Led Bar has all the LEDs on when the glass is full in order to attract the user and make him feel like he needs to drink water. | ||
* When the glass is empty, all the LEDs are off, these would not attract the user. This would be more effective if the glass would fill automatically (from a barrel of 2l per day). | * When the glass is empty, all the LEDs are off, these would not attract the user. This would be more effective if the glass would fill automatically (from a barrel of 2l per day). | ||
- | * Of course there are intermediary stages for the LEDs based on the level of the water which will attract more or less the user to drink the water. | ||
- | * Each LED is connected to a GPIO pin of the ESP32 Board on one side and to a resistor followed by GND on the other side. | ||
{{ :iothings:proiecte:2021:led_bar.jpg?200 | 10 LED Bar}} | {{ :iothings:proiecte:2021:led_bar.jpg?200 | 10 LED Bar}} | ||
* ** Glass of water ** | * ** Glass of water ** | ||
* The water glass is a normal glass, on top of which the ultrasonic sensor is placed. | * The water glass is a normal glass, on top of which the ultrasonic sensor is placed. | ||
- | * This glass was supposed to be filled automatically, but the water pump did not work in my configuration because of the current provided by the board pins. This could have been resolved with a current amplificator, but I didn't have the necessary components for implementing this. | + | * This glass was supposed to be filled automatically, but the water pump did not work in my configuration because of the current provided by the board pins. This could have been resolved with a current amplificator, but I didn't have the necessary components for implementing this. \\ |
+ | \\ | ||
+ | The Hardware Diagram looks like this: | ||
+ | {{ :iothings:proiecte:2021:hw_diagram.jpg | Hardware Diagram}} | ||
=== 4.Software Description === | === 4.Software Description === |