I am using a valve in a project and I want to open the valve initially for sometime (around 1~5 sec) and then close it. Later, when a certain condition is fulfilled, I am opening the valve again.
Though it opens initially, it does not open for the time I mentioned in the code. If i set it open for 5 sec, it opens for less that 3 sec and if I set it for 1 sec, it opens for more than 1 sec. I am not sure what am doing wrong. Also, the peak counter is supposed to count counts 1, open, count 2 and opens but sometimes, it just counts 2,3,4,5. It misses counting 1 and am guessing this is due to the timing of the initially opened valve. Can you please help me figure out the mistake?
The valve speed mentioned in the data sheet is : Speed from closed to opened: ~100ms