modify interval by use of a potentiometer