Table of Contents

Smart Hydration System

author Ioana Cristea ACES 2021
[Video]

1.Project Objective

The idea behind this project is to keep the customer hydrated.
This will be achieved by determining the amount of water inside a water glass and sending email notifications based on how much and when does the user drink from it.

2.Project Description

The Smart Hydration System consists of a glass that is monitored in order to give feedback to the user regarding the water he drank.
Each time the user does not drink water, an email notification will be sent.
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.
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

The hardware system consists of:

 ESP32 Wroom Board

 HC-SR04 Ultrasonic Distance Sensor

 10 LED Bar


The Hardware Diagram looks like this:  Hardware Diagram

4.Software Description

The Intel Galileo board was programmed using the Arduino IDE. The program is based on the two well-known functions: setup() and loop().
The setup() function ensures that each pin has the right direction set.
It also starts the server with the webpage.

The loop() function represents the core of the software project. This function is executed in a forever loop in which the following steps are followed:

 The software diagram

5.Issues and Solutions

This project, as any project presented some technical issues.
The main problem was that the water pump did not function connected directly to a digital pin.
I came to figure out that this could be resolved using a current amplifier, although I didn't have the components necessary to implement it.

6.Conclusions

This project shows how easy is to make everyday life more simple. Using only a handful of components and taking some time to investigate how they work, a self smart hydrating system can be achieved.
Although, the project is not one that a person might use in real life, as there are some limitations such as taking the filled glass to drink from it it’s quite hard without messing up the circuits.

Download the source code

iot_smart_hydrating_system.rar