Rotary potentiometer and incremental counter for each maximum