Useless Machine - Portable Water Bottle Filling Station
by lucabalica in Circuits > Arduino
177 Views, 1 Favorites, 0 Comments
Useless Machine - Portable Water Bottle Filling Station
.jpg)

.jpg)
.jpg)
https://youtu.be/qtVzrZqI5Gc
Have you ever wanted to fill up your water bottle but dreaded getting up and going to the water filling station? Fear no more! The portable water filling station has you covered. You can take it anywhere with you, easily fill up your water bottle through the sensor operated pump, and refill it's water supply seamlessly by simply attaching a new plastic water bottle on top!
Supplies







circuit:
- arduino uno kit
- ultrasonic sensor
- solenoid valve
- submersible 12v pump
- lcd screen
box:
- 3/4" plywood
- plastic water bottle
- flexible tubing
- acrylic sheets (2)
tools:
- cutting tools (laser cutter or power saw)
- hot glue gun
- wire cutters, wire strippers
Build Circuit on Tinkercad

assemble the following circuit on tinkercad. The lightbulb is a placeholder for the relay that activates the pump and valve.
Write Code
this is the logic for the code that runs this system:
1. Setup
- Initialize the LCD display.
- Configure ultrasonic sensor pins (trigger & echo).
- Set up relay pin as an output.
- Set up button pin as an input.
- Ensure relay starts OFF.
- Display "Distance:" on LCD.
2. Main Loop (Repeated Continuously)
- Measure Distance Using Ultrasonic Sensor
- Send a LOW pulse to trigger pin.
- Send a HIGH pulse.
- Read echo time in microseconds.
- Convert echo time to distance in centimeters.
- Read Button State
- Check if button (A0) is pressed (HIGH).//for testing pump
- Display Distance on LCD
- Move cursor to second row.
- Clear previous distance reading.
- Print distance value followed by " cm".
- Check If Relay Should Activate
- If distance < 5 cm OR button is pressed:
- Turn relay ON.
- Display "ON" on the LCD.
- Else:
- Turn relay OFF.
- Display "OFF" on the LCD.
- Wait 500ms Before Next Reading (To Avoid Flickering LCD Updates)
Build Box




build this box as specified:
Build Water System

build this water system as illustrated, and test it for leaks.
Assemble Physical Circuit


Assemble the circuit shown in the the tinkercad image, but replace the light with the pump and valve. Wire the pump and valve as specified to tap into the barrel jack power cable (The pump and valve will be powered from a standard 12v plug). Use this to test all components before installing the hardware in the box.
Fit Circuit and Water System to Box


Squeeze the circuit into the back compartment, the water system into the top, and make sure you use long enough wires to connect the screen to its slot, and the ultrasonic sensor to its slot.
Close It Up and Enjoy!
.jpg)