Looking to build a Clean-In-Place system. I'm a beginner with Arduino and not sure where to start. Needing to know how to control valves (open at different times). Want them to open depending on temperature and water level.
Take a peace of paper, a pencil and design, based on the IPO model, a program structure plan before start coding.
Identify functions and their depencies. Now start with coding and testing, function by function.
At the end merge all tested function via control function together to get the final sketch.
The basics for coding the project are to be found in the IDE as examples.
@cmsiv I thought this would make more sense later when I was sober and well rested.
With two out of three, I am still confused.
At step 6, why isn't anyhting flowing into tank RT?
At step 11, there is nothing to connect the large pump with the RT.
In any case let us assume you actually know what you want to do.
There is nothing hard about this problem as I can see, beyond getting that list and diagram to agree to make sense.
Then a program is easy.
Take a look into finite state machines and the IPO model for process handling.
As for the valves, it is not clear what kind of current must be carried by the open/close switch.
Are you using on/off valves with the three wire interface? A relay could replace the switch and be driven by the Arduino. You can get bistable or "latching" relays so they would not be enrgized all the time in one state or the other.
Or you could use a high side MOSFET switch almost without a doubt, like described here
The switch green wire would go to the MOSFET, and there would be no motor explicitly in the circuit.
Adding the diode on the red and black wires would not hurt and might be a Good Idea.
Looking for some help with what Arduino equipment I need to get started on this. Also some help on the code for valves to open and close at different times on a delay. I’ve read that I might need a relay (not sure what that is). Anything helps
Your two or more topics on the same or similar subject have been merged.
Why did you start a second one on the same subject ?
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
@cmsiv you have added a diagram that has less information than the first diagram, a new diagram which makes as little sense to me as the first.
You have not specific any more detail, or in any easier way to understand, than your list from the top post.
The valve you link is a like a switch, send fluid one way or the other, how is that in the line?
Sry, if this is all obvious to everyone I'll just watch.
But you are wondering what a relay is, or do I misunderstand?
Just in case
We will suggest a relay sometimes when an Arduino has to essentially close a switch to effect control in the real world. Here presumably the output contacts would be wired to complete the circuit with the green wire, thus switch the valve to its alternate state.