This is a great project and will run on an Arduino Nano or even a pro mini. The code is well written and commented and available for download. I recommend this project for beginners as it is a good example of how to write and comment your code. I ran this code to compare to something similar I did using the 32768Hz output from a DS3231 RTC. Well presented Anas.
why do you put setup code into the loop()? That's where setup() is made for. And the loop() repeats itself, so no need for the loop inside. That would be a simple if().
Sir i need to write a code for arduino that calculates the frequency of a vpulse with timer 1 using counter mode only on pin2 of the arduino without resorting the interrupt service. Can you help me with such a code..
Thanks for the video! i'm using an additional frequency source but i having a hard time to track both frequency Inputs! Could you give me a hint how to attach an additional clock/timer/measurement for the secound frequency source?
Hi. It's not possible with ATmega328 (Uno/Nano), since it has only one 16-bit timer (Timer 1) that supports external clock input. Consider using Arduino Mega, which has 4 16-bit timers.
Hi, thanks for your feedback. To be able to calculate the percentage of error of Arduino-based frequency counter, we need to compare it with an actual device, which I don't have.
Hi. I did not measure the maximum frequency since it depends on prescaler used for Timer 1. You can watch my other video on frequency measurement via Timer 1, where I use another technique: ruclips.net/video/fq4rNQ84kec/видео.html
Why it does not count frequency higher than 7 MHz ??? Do you have any notion what is the reason? Theoretically there's no reason, signal, fx of 9MHz is OK, Timer1overflowCounts is less then 200, so what?
This is a great project and will run on an Arduino Nano or even a pro mini. The code is well written and commented and available for download. I recommend this project for beginners as it is a good example of how to write and comment your code. I ran this code to compare to something similar I did using the 32768Hz output from a DS3231 RTC. Well presented Anas.
Thanks
This is so well presented and useful! Thanks very much!
Thank you
Anas very good, of the continuity to the videos of Websocket.
What is the max frequency it can measure, and what is the resolution of the frequency measurement?
Very nice!
Thanks
why do you put setup code into the loop()? That's where setup() is made for. And the loop() repeats itself, so no need for the loop inside. That would be a simple if().
Sir i need to write a code for arduino that calculates the frequency of a vpulse with timer 1 using counter mode only on pin2 of the arduino without resorting the interrupt service. Can you help me with such a code..
I need to input a sign wave to display RPM. Will this design trigger accurately with a sign wave?
Thanks for the video! i'm using an additional frequency source but i having a hard time to track both frequency Inputs! Could you give me a hint how to attach an additional clock/timer/measurement for the secound frequency source?
Hi. It's not possible with ATmega328 (Uno/Nano), since it has only one 16-bit timer (Timer 1) that supports external clock input. Consider using Arduino Mega, which has 4 16-bit timers.
Thanks for the video great project but I have a question.What is the error rate of the counter?
Hi, thanks for your feedback. To be able to calculate the percentage of error of Arduino-based frequency counter, we need to compare it with an actual device, which I don't have.
bro what is the max frequency that it can count please answer 🙏🙏
Hi. I did not measure the maximum frequency since it depends on prescaler used for Timer 1. You can watch my other video on frequency measurement via Timer 1, where I use another technique: ruclips.net/video/fq4rNQ84kec/видео.html
Why it does not count frequency higher than 7 MHz ??? Do you have any notion what is the reason? Theoretically there's no reason, signal, fx of 9MHz is OK, Timer1overflowCounts is less then 200, so what?