Hello all,
I need an Arduino library file named as "FreqPeriod. h" but I couldn't find a zip file of that library on the Internet. Instead of a zip file I could find a code on github but I don't know how to use it on my program. Please help me to solve this problem?
Hello Nigel,
Thank you very much for the reply. I tried as you said but I couldn't find a option to download it as a zip file. I will add the link of the github below.
I added the library file but the program doesn't compile and it shows an error in the .cpp file of the library. I'll paste the error message below.
C:\Users\user\Documents\Arduino\libraries\FreqPeriod\FreqPeriod.cpp:114:4: error: expected constructor, destructor, or type conversion before '(' token
ISR(TIMER1_OVF_vect ) {
^
C:\Users\user\Documents\Arduino\libraries\FreqPeriod\FreqPeriod.cpp:119:4: error: expected constructor, destructor, or type conversion before '(' token
Yes I pasted the . cpp file also. Actually I'm a newbie in coding and I can't understand how to solve this problem. Could please you guide me to fix this error and compile this program properly?
I'm trying to build a vehicle speed detector using a HB100 radar sensor. Can I use the FreqMeasure library for that and how can I modify the following example code of the FreqMeasure library for that purpose?
void loop() {
if (FreqMeasure.available()) {
// average several reading together
sum = sum + FreqMeasure.read();
count = count + 1;
if (count > 30) {
float frequency = FreqMeasure.countToFrequency(sum / count);
Serial.println(frequency);
sum = 0;
count = 0;
}
}
}
I'm trying to build a circuit that can be used to measure the speed of vehicles on the road. The sensor that I'm going to use is HB100 radar sensor and the datasheet shows that it has X-Band frequency: 10.525 GHz. I'm quite not sure how to build a source code for this sensor and what library I should use for this.