Provided is a control device for an alternating-current rotary
electric machine that can reduce
noise and suppress an increase in
noise of the alternating-current rotary
electric machine by taking into account a
mechanical resonance period of the alternating-current rotary
electric machine, and an
electric power steering device. The control device (10) for the alternating-current rotary electric
machine switches n zero-phase candidate
voltage values in order every switching period (Tv) to calculate a zero-phase
voltage value (Vz), turns on and off a switching element based on a
voltage command value corrected based on the zero-phase voltage value (Vz), sets a deviation between the zero-phase voltage value (Vz) and a value that is a j multiple of the zero-phase voltage value (Vz) delayed by the switching period (Tv) as a zero-
phase time delay deviation value (Vzdif), j is a natural number that minimizes a difference between a half period of a
mechanical resonance period (Tm) of the alternating-current rotary electric
machine and a j multiple of the switching period (Tv), the n zero-phase candidate voltage values are set in advance so that a
root mean square value (Vzdif_rms) of the zero-
phase time delay deviation value is smaller than an alternating-current component
root mean square value (VzAC_rms) of the zero-phase voltage value.