Control device applied to an
electric power steering device to assist a driver's steering operation, comprising: - a rotating electrical
machine (10, 210) with a
stator (12, 212) with a first winding group (13) and a second winding group (14) which are wound onto the
stator in at least three phases, a rotor (15) which is rotatably arranged with respect to the
stator, and a shaft (16) which rotates together with the rotor; - a substrate (41, 241, 341, 351, 355) that is arranged at an axial end of the rotating electrical
machine; - a first control element (51-56) which (i) is arranged on a surface (42, 242, 342) of the substrate (41) in a first region (R1) and (ii) forms a first
inverter (50) which switches a power supply to the first winding group; - a second control element (61-66) which (i) is arranged on the same surface of the substrate as the first control element in a second region (R2) and (ii) forms a second
inverter (60) which switches a power supply to the second winding group, wherein the second region (R2) is symmetrical to the first region (R1) with respect to a shaft of the rotating electrical
machine; - a first connecting line (135) extending from each of the at least three phases of the first winding group to be connected to the substrate; and - a second connecting line (145) extending from each of the at least three phases of the second winding group to be connected to the substrate, - wherein the first connecting line and the first control element, as well as the second connecting line and the second control element, each have reversed phase sequences in an arrangement of phase sequences from one end near a reference position to another end of the arrangement, such that
magnetic leakage flux and variation in wiring impedance among the at least three phases are reduced, - wherein the reference position has an electrical
energy supply area (Rin) which is (i) an area outside the first area (R1), the second area (R2) and a control element area (R3) which has a central axis (O) of the rotating electrical machine, and (ii) an area with a circuit pattern which supplies electrical energy from a battery (109) to the first and second inverters.