Hi everyone,
I'm not sure if this is the right place to ask, because my problem is not with the arduino itself but still with an arduino project.
Anyway, here's what I'm working on:
I have an undersink reverse osmosis unit that provides me with soft water for my tea kettle. I've used arduino to add a flow sensor that shows me how much water has been dispensed on a little display, so I know when I have just enough to fill my teapot. This is working great so far. Basically, when I open the tap, the flow sensor starts giving signals that trigger an interrupt and turn on the display.
Now, for "version 2.0" I want to be able to open the tap, then push a button to make it automatically stop dispensing when I have enough for my teapot.
I bought a solenoid valve for this and I want to use a relay to control it with my arduino. Like pretty much all cheap solenoid valves, it opens when powered and closes without power, which I like beause it also adds a failsafe.
My initial plan was to connect the solenoid valve to the "normally on" side of the relay and have it only turned off by the arduino if I have pressed the button and the volume limit is reached. However, it draws quite a bit of energy when it's powered (close to 10W) and that's a little too much for me to have it powered pretty much 24/7, plus I'm a bit worried about overheating issues.
So now I would like to do it the opposite way. The solenoid valve would normally be unpowered and shut off, only to be opened when the arduino is turned on by an interrupt from the flow sensor. Sounds better, right? But it's not going to work this easily. I've attached a schematic of my setup.
The RO unit only produces water when a builtin pump is turned on. When I open the tap, the pressure inside the pipe drops, which is registered by the pressure sensor attached to my RO unit, that then turns on the pump. When I close the tap, the pressure in the pipe quickly increases, which triggers the pressure sensor that turns off the pump.
But if I put in a solenoid valve somewhere between the pressure sensor and the tap, it will no longer register any pressure drop. And the arduino won't know it's supposed to open the valve as long as it doesn't get a signal from the flow sensor.
I could add another button or switch to wake up the arduino first, but I would prefer to just open the tap and have everything turn on and work. Another idea I had was to add something like an air spring between the solenoid valve and the flow sensor, so enough water is mechanically stored to trigger the flow sensor when the tap is opened. But I'm not sure if I can build it in a way that would work reliably and I also don't want to add more potential leakage points to the whole system and eventually flood my apartment.
So, is there anyone here who's maybe a bit smarter than me and has a clever idea for a solution?
Thanks a lot in advance!