when I detect the desidered position how stop the piston rod in this position for 10 seconds?
Simply de-energize the relay or motor controller that you are using to control the electrical valve for 10 seconds.
Of course, first you have to decide how you will use the Arduino to control the electrical valve, and since we have no information about the valve, we can't help.
Like the video? No. That cylinder is single action with an open vent. The tennis ball supplies the return force for the piston and the open vent allows the piston to move very rapidly
The cylinder you specified is a double action device using pressure on either side of the piston to move it. The piston can only move as fast as the air can escape from the other side. To stop and hold the piston you need to apply equal air pressure to both sides of the piston at the same time.
You can do all this with valving, but it is a lot more complicated than you are suggesting. You need to draw a diagram of all components connected together and then imagine the steps needed to control the valves for the functions you need, moving left, moving right, venting the other side to release it's pressure, and finally, to apply the same pressure to each side of the piston.
Paul_KD7HB:
Like the video?functions you need, moving left, moving right, venting the other side to release it's pressure, and finally, to apply the same pressure to each side of the piston.
Paul
Unfortunatley you cannot use PWM effectivley with a compressible gas so on off switching with a valve does not work well.
Boardburner2:
Unfortunatley you cannot use PWM effectivley with a compressible gas so on off switching with a valve does not work well.
An analogue (proportional ) valve is needed.
How would a proportional valve hold the piston in position, as the OP asked?
With 5 standard valves, he would be able to do just what the video showed, plus being able to hold the piston in position.
Two valves on each port of the cylinder. One of the pair to allow venting of air from the low pressure side of the piston. One pair to allow high pressure air into the cylinder. And one valve to allow high pressure air to the opposite side to stop and hold the piston in place.
Paul_KD7HB:
Two valves on each port of the cylinder. One of the pair to allow venting of air from the low pressure side of the piston. One pair to allow high pressure air into the cylinder. And one valve to allow high pressure air to the opposite side to stop and hold the piston in place.
The last part in particular doesn't sound correct. Creating a connection between both ports of the cylinder where both sides of the cylinder are pressurized would always result in the cylinder extending fully (if it's not a double-ended cylinder). To lock the cylinder in place both ports would need to be closed.
With respect to the problem as a whole I would have thought that a single, 5 port, 3 position solenoid valve would be sufficient. You would need to add flow restrictors to the ports of the cylinder in order to expect any sort of positional control of course.