Calibrating Nawrath's "FreqCounter.h"

Greetings,

I am also using Nawrath's "FreqCounter.h" I am using the following demo code:

// Frequency Counter Lib example

/*
  Martin Nawrath KHM LAB3
  Kunsthochschule f¸r Medien Kˆln
  Academy of Media Arts
  http://www.khm.de
  http://interface.khm.de/index.php/labor/experimente/	
 */
#include <FreqCounter.h>


unsigned long frq;
int cnt;
int pinLed=13;

void setup() {
  pinMode(pinLed, OUTPUT);

  Serial.begin(115200);        // connect to the serial port

  Serial.println("Frequency Counter");

}



void loop() {

  // wait if any serial is going on
  FreqCounter::f_comp=10;   // Cal Value / Calibrate with professional Freq Counter
  FreqCounter::start(100);  // 100 ms Gate Time

  while (FreqCounter::f_ready == 0) 

  frq=FreqCounter::f_freq;
  Serial.print(cnt++);
  Serial.print("  Freq: ");
  Serial.println(frq);
  delay(100);  //original delay delay(20);
  digitalWrite(pinLed,!digitalRead(pinLed));  // blink Led

}

Which is the example.

When I put 280 Hz in I get a reading of 28.

When I put 28,000 Hz in I get a reading of 2,800.

How should I correct for this factor of 10 error?

Thanks and...

Kindest Regards,

Paul Flint

multiply by 10?

maybe it has to do with this line - FreqCounter::f_comp=10;

Hi People.
Sorry but a newby here. Where do I find the lirary item Freqcounter.h so that I can include it in a sketch please?
I am sure that the answer is staring me in the face but damned if I can find it.

Thanks for your help,

Jeff.

Did you look here?
https://www.pjrc.com/teensy/td_libs_FreqCount.html

Yes I did, I still couldn't find it.

In fact I do not seem to be able to locate any of the Include ZCXVBZB.h type files. is there something not included in my IDE?

Regards Jeff