I need to find a sketch that will tell me how many impulses(ticks) in time, like say a second of a rotary encoder. it can be very simple so I can see the code and understand it. counting the number of times a button is pushed in a minute will do also.
Thanks
The best way is to write some code yourself. Then, you will understand what you wrote.
There are libraries that deal with reading rotary encoders, using interrupts or not. Find one that you like, and use it. The number of times that an encoder has changed state is one piece of information that you need. The time in which it changed that number of times is the other.
There are tons of examples dealing with RPM, which seems to be what you are trying to measure.
Thanks, got it.