I’m new here and very new to Arduino in general. I’m a homebrewer and I’d like to build an Arduino based flow sensor/meter with an electric solenoid valve that would shut off the flow once a target volume is reached. I have the following components:
- Arduino Uno R3
- 16x2 Sainsmart LCD shield (however, I’d like to bypass the 6 on-board buttons altogether and simply add 2 momentary push buttons (SPST-NO) to act as a “menu” and “exit” buttons)
- KY-040 Rotary encoder module
- YF-S201 Hall Effect water flow counter
- 12V DC N/C 0-0.8MPa electric solenoid valve
- 5V 1 channel relay module board
- Piezo buzzer
- DS18B20 temperature probes
I want the main screen to display the following information: Target volume, Current volume, and % of target volume reached.
Besides the flow meter functionality and solenoid valve triggering once a target volume is reached, I’d like to use a rotary encoder to do things like:
- Toggle the units being displayed (chose between litres or gallons);
- Change the target volume;
- Display temperatures (toggle between F or C);
- Display flow rates (gallons/hour or litres/hour);
- Turn piezo buzzer function on/off with a visual display of that action (i.e. icon on main screen)
I would like the piezo buzzer to be triggered to sound once 90% of target volume is reached, increasing the frequency as the volume approaches 100% of target. Once target is reached, display a message (i.e. something like “VALVE CLOSED. TARGET REACHED”).
I realize that some of my components will need to be calibrated in order to be used properly and I can manage that calibration once the code is written.
Is there a good source for help on how to program this? I have no idea where to start!! I’m willing to learn step by step or function by function, but I’m overwhelmed on the amount of information out there and how to compile it all together into one project.
Thanks ahead of time!