Set the motor speed.