Smart Waterdispenser

by LanderDepotter in Circuits > Raspberry Pi

202 Views, 0 Favorites, 0 Comments

Smart Waterdispenser

download.png
Blokschema.PNG

What is the function?

Waterdispenser that measures the amount of water you drink with a waterflowsensor, using RFID to work with different users, it is also possible the measure the temperature of the water.

Github: https://github.com/howest-mct/2021-2022-projectone-DepotterLander

Supplies

COMPONENTS:

- Raspberry Pi4 (Link)

- T-Cobbler (Link)

- 12V to 5V converter to power the RPi (Link)

- Micropump (Link)

- Driver to power the Micropump (MOSFET, TRANSISTOR)

- 12V power supply (Link)

- Waterflowsensor (Link)

- Temperaturesensor (Link)

- RFID (Link)

- LCD-Display (Link)

- Wood

List of materials with prices and links is included.

Building the Circuit

breadborddd.PNG
schematicc.PNG

Building the complete circuit for the project. In the pictures there is a schematic that you can use to build the complete circuit, see the intro to see with supplies you need to build the circuit.

Reading Values From the 3 Different Sensors.

20220530_125433[1703].jpg
20220530_125428[1705].jpg
20220530_125359[1704].jpg
20220606_105705[1714].jpg
RFIDCODE.PNG
tempcode.PNG
Waterflowcode.PNG

- Temperaturesensor make use of the one wire that is build in to the RPi.

- Waterflowsensor

- RFID (Make use of library SimpleMFRC522)

In the added pictures you see bits of code the read the sensors,

The complete code is in the Github link in the intro of the instructable.

LCD-display

20220606_105728[1713].jpg
LCDCODE.PNG

I use the LCD-display to display the IP-address of the RPi, this is possible with simple code.

See code in added picture.

The complete LCD function is in the Github link aswell.

Powering the Micropump

20220606_105755[1712].jpg
POMPCODE.PNG

The pump uses 12V voltage, it is unpossible to power the pump directly with our RPi so you will need an extra powersupply. With the use of a MOSFET and transistor we can turn on the pump with our RPi. The pump has to have a signal of 5V, 3,3V is not enough that is why I use an extra transistor.

See the added pictures for more information.

Database

Knipsel.PNG

To save how much water the user drinks we save our data in a Database. I use MySQL to make my own database suited to my project.

See added pictures to see how I built up the DB.

Website

Websitehomepage.PNG
websiteprofilepage.PNG

I have also build a website to go with the complete project, on the website it is possible to see how much water you have been drinking, if you completed your daily goal and some information about the user that is logged in at that point.

I use data from the selfmade DB to display on the website and it is also possible to change data in DB using the website.

See the complete HTML, CSS + backend code on Github.

Housing

20220606_100616[1715].jpg
20220606_101137[1716].jpg
20220613_213326[1731].jpg
20220613_213336[1732].jpg
20220613_213357[1733].jpg
20220619_144019[1739].png
20220619_144030[1740].png

The complete housing of the project is made out of wooden MDF-plates that are 18mm wide.

Wood and water do not go well together so I made a little bucket in Inox so the water won't spill on the wood.

See pictures to have the measurements of the complete housing.

Putting All of the Electronics in to the Housing.

20220619_153430[1746].jpg
20220619_153426[1745].jpg
20220619_153412[1744].jpg
20220619_153406[1743].jpg
20220619_181200[1751].jpg

As you can see on the step before there is space to put all the electronics on top of the water storage. The micropump is fitted to a clamp and the waterflow is tied down to the wood. With a couple of different hoses the water is pumped out of the watertank and pumped in to the water bottle.