Go Down

Topic: Frequency measurement with Arduino 1.5 (Read 1 time) previous topic - next topic


I am trying to measure the resonant frequency of a tank circuit (capacitor and inductor in series) using an op-amp and the FreqCount library, available at http://www.pjrc.com/teensy/td_libs_FreqCount.html

Running only #include <FreqCount.h> returns:

In file included from C:\Users\cschmidt\Documents\Arduino\libraries\FreqCount\FreqCount.cpp:27:
C:\Users\cschmidt\Documents\Arduino\libraries\FreqCount\/util\timers.h:4: fatal error: avr/io.h: No such file or directory
compilation terminated.

I checked, and indeed there is no timers.h in util for the Arduino 1.5.2 install that I have. I tried a few other libraries of similar function, and got similar errors; one was looking for avr/interrupt.h

It seems like a version issue, where header and cpp files are calling for things that don't exist in 1.5.2

Should I drop in these files from previous releases of the Arduino software?
Is anyone aware of a Due specific frequency counter with ~1Hz resolution across its range?

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131