LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Autofilling Water Pitcher

I'm designing a water pitcher with 8 different buttons: 40 oz, 32 oz, 24 oz, 20 oz, 16 oz, 12 oz, 10 oz, 8 oz, and manual.  I want each button to be pressed and it connects to a flow sensor that pours 90% of the fill volume (ex for 40 oz it would pour 36 oz) then automatically closes the valve and stops pouring water.  The goal is to be able to just place a cup in and press a button then it fills for you.  Im thinking a while loop with a cluster that has all the buttons in it but idk.  I'd also like the manual one to just be a switch that opens the valve for however long I want to then close it again when the switch is flipped.  

0 Kudos
Message 1 of 5
(136 Views)

A pitcher does not have buttons. As I first step, I recommend to leave out any hardware (valves, flow sensors, etc.) and work out all the logic in a simulation.

 

Create a proper state machine with the desired buttons and their desired mechanical actions and a tank indicator to show the fill level. What is your LabVIEW knowledge? Your "plan" is very vague. Did you do any basic tutorials yet?

0 Kudos
Message 2 of 5
(118 Views)

I meant more of a water fountain.  Yeah I'll start with a state machine to see how it functions then go from there.  

0 Kudos
Message 3 of 5
(95 Views)

A state machine is the way to go here. Think though your states well and I think you'll be able to implement it easily enough. Off the top of my head, an "Idle" state and a "Filling" state should do most of what you want. Transitions from Idle to Filling would happen whenever you clicked a button. In Filling, watch your flow sensor and integrate it. Once it reaches your target value, transition back to Idle.

 

I'd start by making it entirely manual- keep both states, but transition only with a "manual" button. Once that works like you want, add the flow sensor but only to monitor- show the value on the front panel. Once that works, you can add logic to switch based on the integrated flow sensor reading.

 

(Or you might find it easier to do a weight-based sensor, as scales are super cheap, are often easier to read than a flow sensor, and you don't have to do any integration.)

0 Kudos
Message 4 of 5
(52 Views)

Ok nice thank you! I was debating weather to use a flow sensor or a weight sensor and I thought the flow would be easier to measure the fluid oz but you are right that it would work better.

0 Kudos
Message 5 of 5
(38 Views)