Arduino PWM Interrupt Clock

Using the milli() function in order to do accurate timing on the Arduino doesn’t work because it shares the same priority in code execution as any other code. I wrote a blog post that talks about using PWM and an interrupt in order to create a much more accurate clock. In my post I talk about how to wire the PWM to the interrupt and how to use the Adafruit 2.2 inch TFT LCD to display the time. The full post with pics, links and demo code is here:
https://contractorwolf.wordpress.com/arduino-pwm-interrupt-clock/

I also recorded a video of it in action:

About james wolf

.NET Application Developer mostly, but I mess around in many other technologies as well. I also spend a lot of time messing with Arduino, Netduino, SparkCore and Raspberry Pi projects.
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s