Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/FreqCount/Serial_Output" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2016-07-14 tzikis

    see also the library's documentation page: https://www.pjrc.com/teensy...

  • 2016-07-13 codebender

    Hey there! According to the description of the library "FreqCount measures the frequency of a signal by counting the number of pulses during a fixed time.". If you take a closer look at the FreqCount.h file, you'll notice that the parameter of the begin function refers to milliseconds. So I'm guessing it the period during which the library counts pulses.

  • 2016-07-11 Emma D

    Quick question, what does the 1000 stand for in FreqCount.begin(1000) ?

  • 2015-11-20 codebender

    This example was tested on 2016-06-02 and it compiles on Arduino Uno, Arduino Leonardo, Arduino Mega.