Long story short, I was chosen to build a rig to test the life of a spring at my work. Exciting, I know. So far the rig consists of an air operated pneumatic piston, an air solenoid ( http://www.amazon.com/gp/product/B008IGHNUI?psc=1&redirect=true&ref_=od_aui_detailpages00 ) a regulator and few other parts.
What I need the controller to do is activate the solenoid about 30 reps per minute. The solenoid is normally closed so it just needs a current to open, when I loses current it closes. When the solenoid opens the piston extends and compresses the testing spring, when the solenoid closes it closes the piston and releases the spring. In addition to that, I need the arduino to count how many cycles it performs. This count can be done either when the piston hits a micro switch or hopefully the arduino can internally count how many times it sends off current to the solenoid. I’m hoping it can count 100,000 cycles. I already have an Arduino Uno and LCD with backpack. One of my main questions is how
to power the solenoid since it requires 12v. I was looking into 5v coil relays built for the arduino.
I don’t even have the slightest clue how to write code, my coworker does but he’s swamped with work and my deadlines coming up. You have no reason to help me and im not asking anyone here to write
codes for me or anything like that. I’m just asking for a little guidance, Maybe a parts list and example codes. Thank you all in advance.