Edit product

$0+

eRCaGuy_Timer2_Counter (downloadable Arduino library)

Recommended donation: $5 for home use; $50~$100+ for business use under the included copy-left, open-source GNU GPLV3 or later license (contact me for other license options).

Enter a donation amount, or $0, above. Donations are greatly appreciated. 

License: open-source, copy-left GNU GPLV3 or later license. Commercial (closed-source, proprietary) licenses sold at request. Contact me if desired.

Q: Can you sell free software? A: Read here.

Have you ever noticed that when you call the Arduino micros() function, it only returns values in multiples of 4 microseconds? Have you ever wished you could get higher-resolution time-stamps, to decrease error and jitter when reading pulse widths or frequencies? If so, this library is for you! It will give you a substitute for the micros() function with up to 8x better resolution.

"Dude, your lib is really very useful and precise." ~André Frazatto

"Thanks for posting this code, it saved me from a couple more hours of debugging" ~Adam Krasuski

Your donations brighten my day, help support my family, and keep me doing and sharing my projects! :)

This Arduino library allows you to call a method like timer2.get_micros() in place of just micros(), in order to get a time stamp with a resolution of 0.5us instead of 4us. This is very useful when you need to determine periods and frequencies very precisely. Check out the examples. You may find the "read_PWM_pulses_on_ANY_pin_via_pin_change_interrupt" example especially useful, as it will measure the period of a PWM pulse, fast or slow, on *any* pin, and print the result to the serial monitor. This can be used to read an RC PWM pulse as well.

Library webpage: http://www.electricrcaircraftguy.com/2014/02/Timer2Counter-more-precise-Arduino-micros-function.html.

If you're not completely satisfied, I have a 30 day money-back guarantee.

You've purchased this product

See it in your library

View in Library
Sorry, this item is not available in your location.
Sold out, please go back and pick another option.

Name a fair price:

0 ratings

  • You'll get one downloadable zip file.
  • Required SoftwareArduino IDE
  • Required HardwareArduino Uno or similar
  • LicenseGPLV3 or later (contact me if you'd like to purchase an alternate license)

Checkout

eRCaGuy_Timer2_Counter (downloadable Arduino library)

Enter your info to complete your purchase

Card

···· ···· ···· 4242
Test card

05/18

Card

Use a different card?

Card

pp paypal

or pay with

We do not keep any of your sensitive credit card information on file with us unless you ask us to after this purchase is complete.

or pay with

Your purchase was successful!

We charged your card and sent you a receipt

    Gumroad Library

    Download from the App Store or text yourself a link to the app

    Thanks for downloading! Click the share buttons below to let your friends know about it.

    License: GPLV3 or later

    Github repository link: https://github.com/ElectricRCAircraftGuy/eRCaGuy_Timer2_Counter

    Main sales page: https://gumroad.com/gabrielstaples

    Good news! Since you already have a Gumroad account, it's also been added to your library.

    Powered by Gumroad