Use a median filter and an irr filter for the adc value which measures the current