Interrupt timer based stuff primarily for DAQ on arduino