That's what motor drives are for.