Measure frequency accurately on Arduino MICRO


I’m am trying to accurately measure the frequency of a pulse on an Arduino MICRO.
I have tried the frequmeasure library but I can’t make it work on the MICRO.

Do you see any alternative library that uses TIMER3 to measure frequency?


Post your code (between code tags), and what frequency are you trying to measure?


I’m measuring a frequency of about 100Hz.
Sending a clean square signal on hte sensor pin it’s working fine fine with Arduino Nano, but nor on Arduino MICRO:

#include <FreqMeasure.h>

void setup() {

void loop() {

  float frequency = FreqMeasure.countToFrequency(;

Library can be found here: FreqMeasure Library, for Measuring Frequencies in the 0.1 to 1000 Hz range, or RPM Tachometer Applications

Note that I need to use TIMER3 on arduino MICRO, if you look in the .h it seems to be configured that way, but nothing detected on any pin.

THanks for your help.