Motor speed or motor power consumption control