PID controlled DC motor with adjustable setpoint with ATMEGA2560