I have now spent several hours searching for the library referenced in numerous arduino frequency counter article (frequencycounter.H) and regardless of how I search the arduino forum or any listing of libraries or google, it does not come up. So where is the magic decoder ring that allows you to find a specific library? It must be simpler then what I have experienced.
regards,
Herb
I'd suggest this one.
http://www.pjrc.com/teensy/td_libs_FreqCount.html
Or connect your counter input to the T1 pin and use the 16-bit hardware timer 1 to do your counting. Don't forget to install an overflow interrupt handler. You can similarly do period measurement by connecting your signal to ICP1 and clocking timer 1 from the CPU clock. It requires half an hour poring over the datasheet, but the code is pretty simple.
thank you for the response but I am still not able to find the library required in this project (freqcount.h)
if I put that in the search box nothing comes up or a a lot of discussions regarding the library .... so where is the library ????
Herb
Freqcount.h is NOT a library, it's a C Header file. The Library which contains that file is accessable at the link CrossRoads gave earlier, look for "Download: FreqCount.zip (version 1.0) " on that page.
Hello,
I was trying to use the FreqCount library (I am making something that can 'measure' the frequency on an analog input). But when I compiled it this error came on my screen: C:\Users\user\Documents\Arduino\libraries\FreqCount/util/timers.h:4: fatal error: avr/io.h: No such file or directory
compilation terminated.
Is there some of you that knows how to fix this problem?
Thank you so much!
RobinC,
Belgium