Quote Originally Posted by gutisie View Post

The botton is pressed by a piston.
So I need to stop the piston after 3 pulses.

Thanks.
Some Hall effect sensor would be to consider, instead ...

just me ...

Alain