Frequency Counter using Arduino Timers

Поделиться
HTML-код
  • Опубликовано: 16 июл 2024

Комментарии • 17

  • @ericgorder1
    @ericgorder1 Год назад

    This is so well presented and useful! Thanks very much!

  • @postiemania
    @postiemania 3 года назад +2

    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.

  • @incxxxx
    @incxxxx 2 года назад

    Very nice!

  • @marcosgiovanni9682
    @marcosgiovanni9682 3 года назад

    Anas very good, of the continuity to the videos of Websocket.

  • @samshurp4518
    @samshurp4518 Год назад +1

    What is the max frequency it can measure, and what is the resolution of the frequency measurement?

  • @verarschn
    @verarschn 2 года назад

    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?

    • @AnasKuzechie
      @AnasKuzechie  2 года назад +1

      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.

  • @sdgreen4580
    @sdgreen4580 2 года назад

    I need to input a sign wave to display RPM. Will this design trigger accurately with a sign wave?

  • @mertyasinaycicek7656
    @mertyasinaycicek7656 2 года назад

    Thanks for the video great project but I have a question.What is the error rate of the counter?

    • @AnasKuzechie
      @AnasKuzechie  2 года назад

      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.

  • @ViruteVentura
    @ViruteVentura Год назад

    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..

  • @michaeljoshuamanallo1742
    @michaeljoshuamanallo1742 2 года назад

    bro what is the max frequency that it can count please answer 🙏🙏

    • @AnasKuzechie
      @AnasKuzechie  2 года назад +1

      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

  • @incxxxx
    @incxxxx 2 года назад

    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?