I need help with my prototype for our research. I want a water dispenser that has selectable water levels like 250ml 500ml and 750ml. the components should have 5v dc pump with flow sensor. is there anyway anyone can help me with the code and the electrical components
Quite surely. What help you need with your components?
Why your pump should be 5VDC specific?
You want to measure water flow or water level? There's a big difference.
What help you need with your components? how to connect them to the arduino/breadboard and code it
Why your pump should be 5VDC specific? because my arduino is 5v and the pump looks like this
You want to measure water flow or water level? There's a big difference. water flow, our prototype is just like a water dispenser but with selectable water levels (water levels means how much water that has been released)
and also the pushbutton, the pushbutton are the modes of the different water levels
You can't run ANY pump directly from arduino. Do you have specs for your pump?
Flow meter can measure how much water is going to the dispenser, but doesn't know water level of that dispenser. What's your application?
we wanted to be like this video https://youtu.be/XO4h00Cr6FU?si=F8r4S-IIbd1wBXuc
Flow meter can measure how much water is going to the dispenser, but doesn't know water level of that dispenser. What's your application? flow meter, sorry for making you confused i just use the term "water level"
I didn't have patience to watch the video, but I can tell from the image that the pump is driven by relay module and there's nothing measuring water level or flow so it's done time based.
Do you have relay module?
yes i do, does it makes hard when we still use the flow sensor?
If that flow sensor is designed for that tiny flow, you can use it. If not, you get better results time based.
i thought the 5vdc your talking about earlier is the water pump, sorry for the misunderstanding
I don't understand. Explain better.
Hi, @tristanity
If your preset levels are fixed then sensors on the side of the container will measure the water level.
If you want to measure dispensed volume of various adjustable presets, then you will need a flow meter on the output of the container.
You would need to check if the flow meter is accurate at the flow rate you aim to have.
Gravity fed or using a pump to pump out the water, plus a valve to stop the flow.
How accurate do you need the measured amount to be?
Tom....
![]()
again, sorry for the misunderstanding. the picture that you've shown i was confused why theres a "5vdc" there. then i remembered you asking "Why your pump should be 5VDC specific?" i thought you were talking about the water pump thats why i answered "because my arduino is 5v" the pump that i bought is 5volts because the arduino uno can only handle 5v right?
may i ask what is the code for this?
Question: when i turn on/plug my arduino, is it normal for the relay make noises for a sec and when i attach the pump to the relay, should it be turned on for a sec too because the relay was turned on for a sec?
You don't power the pump from arduino. It could be 12V, 240V or whatever.
Even if your pump is 5VDC, you power it from 5V power supply.
So make it just like the video.
Did you try it?
kinda confusing because it has many wires
Your image shows a wiring very much different I posted.
Your pump is not powered anyhow. The relay is just shorting pump supply wires..
so what do i do?
those are the only thing that i have
Post us more images of your project?
So we can see your complete project.
Then the most important bit.
Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.
Did you look at the GitHub that was linked with that video?
Do you have a DMM? Digital MultiMeter?
Tom....
![]()


