Arduino-based interrupt-driven tachometer