Replacing potentiometer with Arduino-control