---
title: "Easy way to drink more water every day ? IoT Project"
url: "https://maker.wiznet.io/annjaison/projects/Easy-way-to-drink-more-water-every-day-IoT-Project/"
markdown_url: "https://maker.wiznet.io/annjaison/projects/Easy-way-to-drink-more-water-every-day-IoT-Project/md"
type: "UCC: User Created Content"
author: "annjaison"
original_author: "annjaison"
original_url: "https://www.hackster.io/jehoon/easy-way-to-drink-more-water-every-day-17bb39"
published: "2020-09-22"
language: "en"
hardware: ["WIZnet WIZwiki-W7500", "SparkFun XBee Explorer Regulated", "OLED Display (SeeedStudio)", "Load Cell + HX711", "LED (generic)", "Tact Switch"]
likes: 0
views: 412
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Easy way to drink more water every day ? IoT Project

> Easy way to drink more water every day ? IoT Project

Original author: annjaison (source: https://www.hackster.io/jehoon/easy-way-to-drink-more-water-every-day-17bb39)

## Components

- **WIZnet WIZwiki-W7500** x 1
- **SparkFun XBee Explorer Regulated** x 1 ([docs](http://cdn.sparkfun.com/datasheets/Wireless/Zigbee/XBee-Regulated-v14.pdf))
- **OLED Display (SeeedStudio)** x 1
- **Load Cell + HX711** x 1
- **LED (generic)** x 2
- **Tact Switch** x 2

## Article

## Story

#### Easy way to drink more water every day.

How much water do you drink a day You will be aware of the importance of The habit of drinking water without mentioning.

We need to drink more water. So, I wanted to know how much drinking water.

#### Components

WIZwiki W7500(Wiznet) ?? 2 Xbee(Digi) ?????????? 2 SD card ???????????? 1 OLED Display(SeeedStudio) ?? 1 Load Cell + HX711 ?????? 1 LED ????????????? 2 Tact Switch ????????? 2

#### Overall Scheme

![](https://hackster.imgix.net/uploads/image/file/78705/0_all.png?auto=compress%2Cformat&w=740&h=555&fit=max)

When I drink water, a Client send amount of water to Host. Host can store the amount of water and Real time(using NTP) to SD card.

#### How to check the amount of water you drink.

1. Make a chart and tick it off each time you drink a glass.

2. Automatic sensing
  - Ultrasonic sensor to check the amount of water
  - Measure weight of the water.

##### Weight of water?

Pure water has its highest density of 1000 kg/m3 at temperature 4C(39.2F)

- 1g = 1ml <https://en.wikipedia.org/wiki/Specific_weight>

#### Load cell + HX711

##### Strain gauge

The force being sensed deforms a strain gauge. The strain gauge measures the deformation (strain) as a change in electrical resistance, which is a measure of the strain and hence the applied forces.

![](https://hackster.imgix.net/uploads/image/file/78706/2_loadcell.png?auto=compress%2Cformat&w=740&h=555&fit=max)

<https://en.wikipedia.org/wiki/Load_cell><http://www.rdpe.com/ex/hiw-sglc.htm>

##### Make Cup holder(3D modeling)

![](https://hackster.imgix.net/uploads/image/file/78707/3_loadcell.png?auto=compress%2Cformat&w=740&h=555&fit=max)

used 123D Design tool <http://www.123dapp.com/123D_Design/cup-base/4445833>

##### Calibration & Measurement

![](https://hackster.imgix.net/uploads/image/file/78708/4_calibnmeasure.png?auto=compress%2Cformat&w=740&h=555&fit=max)

This 9V battery is 44g and I made sure that the measurements. (W:43g -> Current weight, B:43g -> Temporary value for comparison) For Calibration, You have to change the value of scale in source code.

#### Hardware

##### Client

![](https://hackster.imgix.net/uploads/image/file/78709/5_client.png?auto=compress%2Cformat&w=740&h=555&fit=max)

##### Host

![](https://hackster.imgix.net/uploads/image/file/78710/6_host.png?auto=compress%2Cformat&w=740&h=555&fit=max)

##### Overall

![](https://hackster.imgix.net/uploads/image/file/78711/7_total.png?auto=compress%2Cformat&w=740&h=555&fit=max)

#### Operation method

##### Test data

![](https://hackster.imgix.net/uploads/image/file/78712/8_flow.png?auto=compress%2Cformat&w=740&h=555&fit=max)

1. Client send the data to Host. send 134: data type(Store at SD card: 1) + amount of water(34ml)

2. Access and request to NTP server for realtime.

3. Save realtime and a amount of water in SD card.

##### Actual data

![](https://hackster.imgix.net/uploads/image/file/78713/9_flow1.png?auto=compress%2Cformat&w=740&h=555&fit=max)

1. Put up a cup of water on top of the Load cell weight sensor

2. Client sensed 264ml of water.

3. When I was drinking water, W:0(Current weight:0, because of holding the hand), B:264(saved weight:264)

4. Sensed 180ml.

5. Put up a cup of water again. send data type(1) + 84ml of water.

#### Logged data on SD card

![](https://hackster.imgix.net/uploads/image/file/78714/10_waterlog1.png?auto=compress%2Cformat&w=740&h=555&fit=max)

#### Visualization

But, you don’t have to think about is do a few liters of water a day You just have to set the target amount of water. Then you can see the percentage of data like below.

#### Source code repository in mbed

##### Client

<https://developer.mbed.org/users/jehoon/code/WaterLogger/>

##### Host

<https://developer.mbed.org/users/jehoon/code/XbeeGateway/>

---

Source: https://maker.wiznet.io/annjaison/projects/Easy-way-to-drink-more-water-every-day-IoT-Project/
