4 years, 9 months ago.

Read Frequency from external Input

Hello everyone.

I'm currently working on a motor controller from my upper apprentice and my task is to measure a precise rpm from the motor. Now, I read that there's a capture feature from Timer2 or something and I want to use this capture thing to get precise timings to then calculate the frequency and rpm.

The problem is: I don't know how to use this capture feature? I'm not a beginner in programming but I'm a beginner in reading datasheets and convert the information to code from the DS.

I would be thankful, if you could help me with this problem.

1 Answer

4 years, 9 months ago.

Hello Joel,

This frequency counter isn't a sophisticated program but maybe can help you get started.
Or see Kenji's Simple Frequency Counter if you need higher accuracy.