How to code a machine
Does anybody know the general process I would need to go through to begin coding a machine to essentially pump and open a valve as well as display the current process it is doing, I don't need someone to write the code( as I am willing and eager to learn) I would like to know the best way to go about it. Should I use an Arduino and if so what're the best ways to go about combining it with code to produce the desired effect. Thanks for your time
Posted Apr 14, 2019, 1:50 PM UTC
25
You could use an Arduino with a relay. The way you control the relay is the same as the way you would control an led.
What are the functions of a relay?
Think of it as a switch that you can turn on/off with the Arduino. Then you will have one circuit with higher voltage, controlled by the switch (the relay) and one circuit with lower (safer) voltage, that controls the switch (relay).
A relay usually amplifies and separates multiple systems, so you can have arduino run at about 5V and control but the pump/valve at a different voltage (like 12V), without burning your board.