convert adc value into bi-directional step