Square wave generator and frequency meter

With TIMER1 and 16MHz Arduino, you can go as low as ~0.25 Hz (or 4 seconds per cycle)