filmov
tv
Arduino LCD Screen Stopwatch using Timer Interrupts

Показать описание
This is a prototype that was designed to utilize timer interrupts so an accurate timer can be created. Many people like to use delay() for timing purposes, but I don’t like it because it prevents me from doing anything else during the delay. Also, this is inaccurate for exact timing because the time it takes for the other commands is not consistent and and hard to approximate. Using a timer interrupt, I can run a function on the second every second, regardless of what ever is going on. Next step is to integrate the buttons and potentiometer so I can set timers, start, pause and stop them. I also need to figure out the sound aspect of it since I’ve never used sound in projects before. I have passive and active buzzers, but it would be fun if I could actually incorporate a speaker. We’ll take care of that once the timers are working.