For the school project I must measure frequency with Arduino Atmega2560 (or some other microcontroller). The idea is to have timer interrupt set to 1 second and external square signal (frequency) connected to pin interrupt. Each interrupt on pin increment counter for 1. Every second (timer interrupt) the frequency is calculated and counter is reset to 0. The frequency I must measure vary from 2-11 kHz. Can this be done?