I have got a large wooden disc for some purpose which rotates in its center axis. But I need to find the number of rotations or simply stop the disc when number of turns reaches a certain point.
So I tried with a reed switch and a magnet. So the magnet attached to the rotating disc and reed switch at a static position where the magnet comes closer while rotating.
So I connect this setup to arduino and modified the debouncing code and added few variables to count the number of times the reed switch changes its state.
But the problem is when it turns slowly the counter variable increments without any issue. But when moves fast the triggering is not at all happening since magnet moves very fast near to the reed switch.
So which is the best way to count the number of turns of the disc..
I thought about a spring switch.. But had some thoughts will there be any better solution
measure RPM
is not same ascount number of rotations
\$\endgroup\$