Hello Everybody!
First,I appoligise if I maybe can't explain everything in English correct....I'm from Sweden and will do my best to explain my "problem"
I'm 58 years old,and totaly new to Arduino,are a machine technician,and familiar with pneumatics,sensors and similar,but newbie to programing.
But I really want to learn,are curious and like to learn new things!
I will try to explain my project,appologise if it's a long topic!
Attach a simple schematics how everything will be connected,hope it will show my intention.
First,the thing I want the "machine" to do:
In normal inactive state,both cylinders are retracted,and control valves are without signal.
SQ#1 and SQ#3 gives a +5vDC outsignal.
When it start,(button,power up or similar,no preference how to start the sequence),cylinder #1 should extend to end,(SQ#2 gives a +5v signal),and retract directly.
When cylinder #1 retracts,Cylinder #2 should extend to end and retract directly.
(SQ#3 and SQ#4 send a +5vDC outsignal when retracted and extended.)
Then cylinder #1 should extend and retract again,and cylinder #2 again....on and on constantly until I power down,flip a switch or similar.
Start and stop can be Power down the module or by a switch,no need for advanced solutions to start and stop,main thing is to get a safe loop to run this sequense for say 4-500 cycles.
IF possible can it be done in some way when using the SQ1-4 for signals to the Control Valves?
Say cylinder #2 can not extend before cylinder #1 have retracted?
The speed of the cylinders are not critical,they can run slow if neccesary,that will be controled by the pneumatic system.
The parts that will be used:
Arduino REV3 SMD Board.
Festo pneumatic cylinders.
Festo CPE14-M1BH-5L-QS-8 control valves.(24VDC/1,28W Coil)
SMC D-M9PW cylinder proximity switches.(5VDC PNP "Reed type" switch,10mA current draw)
24VDC Switched Power supply for pneumatic control valves.
The 5VDC supply needed for the SQ:s and Mosfet I hope to take from the Arduion,if possible?
When I have done other things like this,I always used "mechanical switches",or control everything with pneumatic switches.....it works,but "bulky" and not up to modern standard.
I really want to learn to control things with "computers",it's fun and more up to modern standard!!
Ihope to get some advice how to make a simple and functionable sketch for this,and try to learn what I'm doing during the programing sequense.
If I can do this and learn and understand what the program is doing,I maybe can take a new approach to when I build things in my home workshop.
Really greatful and very Thankful for any help or pointers in the right direction,just remember...I'm old and a newbie,so if it's simple and just basic function should I be very greatful.
Best Regards
Anders from Sweden.