stabilising motor speed with PID controller