Best way to control an air pump machine? Answered
So I have a project in school and I need to create a bag that's expanding and contracting (inflating and deflating)
I thought to put an air pressure machine, like the ones for a car or air beds and connect to the pressure control the arduino, remove the buttons and connect wires to the mechanism - then code the arduino to turn the air pressure - on for a few seconds and then turn on the air pressure to suck the air for a few seconds and reverse it again and again;
(I added a picture to illustrate it)
How can I achieve this exactly? Can I simply connect them to a digital output and simply close the circuit somehow every time I want it to be on and turn open it when I want ti to be off?