Join Medium for free to get updates from this writer. The code begins by including the TimerOne library, which allows the Arduino to use a hardware timer (specifically Timer1) for precise, ...