Inspiration

The theme of the hackathon was West Texas, and after brainstorming some ideas based around cattle tracking, and we thought about how West Texas is mostly dry, and doesn't get a lot of water, so a water tracking webapp idea was created.

What it does

It uses an ultrasonic sensor and an arduino to track when water was running through a faucet, and creates a timestamp of that action to estimate the amount of water used. After creating the timestamp, the data is then sent to a MongoDB database, where a back-end server would manage the connection to the database and the other parts of the project. We used python to create graphs of the data to help visualize it, then the graphs would be exported to the webapp to display the data to the user.

How We built it

We spent about 30 minutes discussing the design and scope of the project, and then we allocated the work to what suited who the best. Then we just started setting up environments and frameworks needed for our project, and started to code.

Challenges We ran into

Some challenges we experienced included: -learning how to create a database using mongodb -learning how to use matlab to visualize data -learning how to use react-native and the expo framework Unfortunately, due to how we structured the project, we didn't have the ability to create a back-end webserver for our webapp, so we couldn't send data to the database through the arduino and we couldn't retrieve data from the database, so we had to adjust the scope of our project.

Github Repository

https://github.com/dohnnie/SELDEW/tree/master/water_usage_collector https://github.com/wumboingwumbos/HackathonWaterTracker/tree/main

Sources Used

https://docs.arduino.cc/tutorials/uno-r4-wifi/led-matrix/ -Led Matrix images https://docs.sunfounder.com/projects/umsk/en/latest/02_arduino/uno_lesson23_ultrasonic.html -Ultrasonic setup code https://github.com/sstaub/Timer -Using the timer in arduino https://chatgpt.com/ -python matplotlib graphs

Share this project:

Updates