rename files
use external interrupt to measure frequency