Patent Publication Number: US-2022224208-A1

Title: Rotary electric machine and manufacturing method for rotary electric machine

Description:
TECHNICAL FIELD 
     The present invention relates to a rotary electric machine and a method for manufacturing a rotary electric machine. 
     BACKGROUND ART 
     In the motor (rotary electric machine) described in Patent Document 1 below, the opening of the bottomed tubular housing is closed by a heat-sink. A substrate is fixed to the surface of the heat-sink opposite to the housing, and the heat-sink and the substrate are covered with a cover. That is, the heat-sink is arranged between the substrate and the housing. 
     CITATION LIST 
     Patent Literature 
     Patent Document 1 
     
         
         Japanese Patent Application Laid Open No. 2017-184542 
       
    
     SUMMARY OF INVENTION 
     Technical Problem 
     However, in the above mentioned motor, as described above, a heat-sink is arranged between the substrate and the housing, and the heat-sink and the substrate are covered with a cover. Therefore, there is room for improvement in terms of enhancing the heat dissipation effect of the heat-sink. 
     Further, in the assembly of the above mentioned motor, the heat-sink and the substrate are assembled to the housing, the terminals of the motor are connected to the substrate by soldering or the like, and then the cover is assembled. Therefore, there is room for improvement in terms of improving the assemblability of the motor. 
     In consideration of the above facts, an object of the present invention is to provide a rotary electric machine and a method for manufacturing a rotary electric machine, which can improve the heat dissipation effect of the heat-sink while improving the assemblability. 
     Solution of Problem 
     At least one embodiment of the present invention is a rotary electric machine comprising a motor portion with a bottomed tubular housing with one end in the axial direction closed, and a control unit assembled to an opening of the housing, wherein the control unit comprises a heat-sink that closes the opening of the housing, a substrate whose axial direction of the motor portion is the plate thickness direction and arranged on the motor portion side with respect to the heat-sink and fixed to the heat-sink, a connector assembly that is arranged on the side of the heat-sink opposite to the motor portion in a state where a part of the heat-sink is exposed to the outside and fixed to the heat-sink, and a connection terminal provided on one side surface of the substrate on the motor portion side and having a press-fitting portion that is press-fitted and fixed to the bus bar of the motor portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the heat-sink is formed with a pair of heat-sink-side positioning holes, and the substrate is formed with a pair of substrate-side positioning holes, and the connection terminal is held by a holder installed on one side surface of the substrate, wherein the holder is formed with a pair of positioning pins fitted in a heat-sink side positioning hole and the substrate side positioning hole. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the holder is formed with a guide portion that guides the bus bar to the press-fitting portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that a heat generating element is provided on the other side surface of the substrate on the heat-sink side, and the heat generating element and the connector assembly are not overlapped when viewed from the axial direction of the motor portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the substrate is divided into a first area provided with electronic components of the power supply system and a second area provided with electronic components of the control system, wherein the terminal of the connector assembly is connected to the substrate in the second area, and the heat-sink is formed with an insertion portion through which the terminal is inserted. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the connector assembly comprises a mold portion fixed to the heat-sink and a terminal integrally formed with the mold portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the mold portion comprises a mold body portion formed in a plate shape with the axial direction of the motor portion as the thickness direction, and a connector portion that is arranged on the outer side in the radial direction of the housing and extends from the mold body portion to one side in the axial direction of the motor portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the fins protruding toward the other side in the axial direction of the motor portion are formed on the heat sink, wherein the protruding height of the fins is set to be equal to or less than the thickness of the mold body portion. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that a plurality of the connector portions are formed in the mold portion, and the fixing portions of the mold body portion to the heat-sink are arranged between the connector portions. 
     At least one embodiment of the present invention is a rotary electric machine characterized in that the fixing portions of the mold body portion to the heat-sink is composed of a metal collar, wherein the collar is fastened and fixed to the heat-sink by a fastening member. 
     At least one embodiment of the present invention is a manufacturing method of rotary electric machine comprising a motor portion with a bottomed tubular housing with one end in the axial direction closed, a heat-sink that closes the opening of the housing, a substrate whose axial direction of the motor portion is a plate thickness direction and arranged on the motor portion side with respect to the heat-sink, a connector assembly arranged on the side of the heat-sink opposite to the motor portion, a connection terminal provided on one side surface of the substrate on the motor portion side and having a press-fitting portion that is press-fitted and fixed to the bus bar of the motor portion, comprising the steps of: a first step of fixing the substrate to the heat-sink, a second step of fixing the connector assembly to the heat-sink with a part of the heat-sink exposed to the outside, a third step of press-fitting and fixing the bus bar to the connection terminal and closing the opening of the housing with the heat-sink, and a fourth step of fixing the heat-sink to the housing. 
    
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         FIG. 1  is a perspective view which shows the rotary electric machine according to this embodiment in a partially disassembled state. 
         FIG. 2  is a vertical sectional view seen from one side of the second direction which shows the rotary electric machine according to this embodiment. 
         FIG. 3  is a side view seen from one side of the first direction which shows the connection state of a bus bar and a connector shown in  FIG. 2 . 
         FIG. 4A  is a bottom view of the ECU unit shown in  FIG. 1  as viewed from below, and  FIG. 4B  is a side view showing the ECU unit of  FIG. 4A . 
         FIG. 5  is an exploded perspective view of the ECU unit shown in  FIG. 4  disassembled and viewed from below. 
         FIG. 6  is an exploded perspective view of the ECU unit shown in  FIG. 4  disassembled and viewed from above. 
         FIG. 7  is a bottom view of the heat-sink shown in  FIG. 5  as viewed from below. 
         FIG. 8  is a plan view seen from above which shows the positional relationship between the FET of the circuit board shown in  FIG. 6  and the connector assembly. 
         FIG. 9  is a bottom view seen from below which shows the connector shown in  FIG. 5  in an enlarged manner. 
         FIG. 10  is an exploded perspective view of the connector shown in  FIG. 5  disassembled and viewed from below. 
         FIG. 11  is sectional view ( 11 - 11  line sectional view of  FIG. 4 ) which shows the holding state of the connection terminal in the terminal holder in the connector shown in  FIG. 4 . 
         FIG. 12  is a perspective sectional view showing a state in which the positioning pin of the terminal holder in the connector shown in  FIG. 4  is fitted in the positioning hole on the first heat-sink side of the heat-sink. 
         FIG. 13  is a perspective view which shows the example which provided fins to the heat-sink of the ECU unit shown in  FIG. 1 . 
     
    
    
     DESCRIPTION OF EMBODIMENTS 
     Hereinafter, the rotary electric machine  10  according to the present embodiment will be described with reference to the drawings. The rotary electric machine  10  is configured as a rotary electric machine applied to a steering device of a vehicle (automobile). As shown in  FIGS. 1 and 2 , the rotary electric machine  10  is formed in a roughly columnar shape as a whole. Further, the rotary electric machine  10  comprises a motor portion  12  and an ECU unit  14  as a “control unit” for controlling the rotation of the motor portion  12 . Hereinafter, each configuration of the rotary electric machine  10  will be described. 
     In the following description, one side of the rotary electric machine  10  in the axial direction (arrow A direction side of  FIGS. 1 and 2 ) is the lower side of the rotary electric machine  10 , and the other side of the rotary electric machine  10  in the axial direction (arrow B direction side of  FIGS. 1 and 2 ) is the upper side of the rotary electric machine  10 . In the following description, when the vertical direction is used, the upper-lower direction of the rotary electric machine  10  is indicated unless otherwise specified. 
     Further, in the following description, in a plan view seen from above, the direction orthogonal to the vertical direction is defined as the first direction (cf. arrows C and D in  FIGS. 1 and 2 ), and the direction orthogonal to the first direction is defined as the second direction (cf. arrow E and arrow F in  FIG. 1 ). 
     In addition, in a plan view, the overhead line that passes through the axis AL of the rotary electric machine  10  and extends in the first direction is defined as the first reference line L 1  (cf.  FIGS. 4 and 7 ), and the overhead line that passes through the axis AL of the rotary electric machine  10  and extends in the second direction is defined as the second reference line L 2  (cf.  FIGS. 4 and 7 ). 
     (The Motor Portion  12 ) 
     As shown in  FIGS. 1 and 2 , the motor portion  12  is configured as a three-phase alternating current brushless motor. The motor portion  12  comprises a housing  20 , a plate holder  24  housed in the housing  20 , a rotating shaft  28 , a stator  34 , a rotor  40 , and a bus bar unit  46 . 
     &lt;The Housing  20 &gt; 
     The housing  20  is formed in a roughly bottomed cylindrical shape that is open to the upper side, and constitutes the outer shell of the rotary electric machine  10 . A pair of mounting pieces  20 A are integrally formed on the outer peripheral portion of the lower end portion of the housing  20 . The pair of mounting pieces  20 A are arranged with the axial direction of the housing  20  as the plate thickness direction, and project from the housing  20  to one side in the first direction (arrow C direction side of  FIGS. 1 and 2 ) and the other side in the first direction (arrow D direction side of  FIGS. 1 and 2 ). A mounting hole  20 A 1  is formed through the mounting piece  20 A. A fastening member such as a bolt (not shown) is inserted into the mounting hole  20 A 1 , and the housing  20  (that is, the rotary electric machine  10 ) is fixed to the steering device by the fastening member. 
     A plurality of (three locations in the present embodiment) fixing portions  20 B extending outward in the radial direction are formed on the outer peripheral portion of the opening end portion of the housing  20 . One fixing portion  20 B protrudes from the housing  20  to one side in the first direction, and three fixing portions  20 B are arranged at equal intervals in the circumferential direction of the housing  20 . A screw portion  20 B 1  for fixing the heat-sink  60 , which will be described later, is formed through the fixing portion  20 B, and a female screw is formed on the inner peripheral surface of the screw portion  20 B 1 . 
     Further, in the central portion of the bottom wall of the housing  20 , a bottomed cylindrical fixed cylinder portion  20 C that is bulged downward is integrally formed, and a first bearing  22  for supporting the rotating shaft  28 , which will be described later, is fitted in the fixed cylinder portion  20 C. An insertion hole  20 C 1  for inserting a rotating shaft  28 , which will be described later, is formed through the bottom wall of the fixed cylinder portion  20 C, and the inside of the first bearing  22  and the outside of the housing  20  are communicated with each other by the insertion hole  20 C 1 . 
     &lt;Plate Holder  24 &gt; 
     The plate holder  24  is formed in a roughly circular plate shape with the vertical direction as the plate thickness direction, and is fitted in the intermediate portion in the vertical direction of the housing  20 . An insertion hole  24 A for inserting a rotating shaft  28 , which will be described later, is formed through the central portion of the plate holder  24 . Further, a second bearing  26  for supporting the rotating shaft  28 , which will be described later, is fixed to the central portion of the plate holder  24 , and the second bearing  26  and the first bearing  22  are arranged coaxially. 
     &lt;Rotating Shaft  28 &gt; 
     The rotating shaft  28  is formed in the shape of a round bar extending in the vertical direction, and is arranged coaxially with the housing  20  inside the housing  20 . The portion of the lower end side of the rotating shaft  28  is rotatably supported by the first bearing  22 , and the portion of the upper end side of the rotating shaft  28  is rotatably supported by the second bearing  26 . The upper end of the rotating shaft  28  projects upward with respect to the plate holder  24 , and the magnet  30  is fixed to the upper end. On the other hand, the lower end portion of the rotating shaft  28  projects downward with respect to the bottom wall of the housing  20 , and the gear  32  connected to the steering device is fixed to the lower end portion. 
     &lt;Stator  34 &gt; 
     The stator  34  is arranged inside the housing  20  on the lower side of the plate holder  24  and on the outer side in the radial direction of the rotating shaft  28 . The stator  34  has a stator core  36  made of a magnetic material, and the stator core  36  is formed in a cylindrical shape and is fitted inside the housing  20 . Further, a winding  38  corresponding to the U-phase, the V-phase, and the W-phase is wound around the stator core  36 . 
     &lt;Rotor  40 &gt; 
     The rotor  40  has a rotor core  42 , and the rotor core  42  is formed in a cylindrical shape with the vertical direction as the axial direction, and is arranged inside the stator  34  in the radial direction. The rotating shaft  28  is fitted into the shaft core portion of the rotor core  42 , and the rotor core  42  (rotor  40 ) and the rotating shaft  28  are configured to be integrally rotatable. Further, a plurality of magnets  44  (permanent magnets) are fixed in the rotor core  42 . As a result, the rotor  40  and the rotating shaft  28  are integrally rotated around the axis AL by passing a current through the U-phase, V-phase, and W-phase windings  38  of the stator  34 . 
     &lt;Bus Bar Unit  46 &gt; 
     The bus bar unit  46  is arranged above the stator  34  and is held by the plate holder  24 . The bus bar unit  46  comprises three bus bars  48  corresponding to the U-phase, V-phase, and W-phase windings  38  of the stator  34 , and a bus bar holder  50  for holding the bus bar  48 . One end of the bus bar  48  is connected to each of the U-phase, V-phase, and W-phase windings  38  of the stator  34 . As shown in  FIG. 3 , the other end of the bus bar  48  is configured as a bus bar terminal  48 A, and the bus bar terminal  48 A projects upward from the plate holder  24  and is arranged side by side in the second direction. Further, the bus bar terminal portion  48 A is formed in a roughly long plate shape having the first direction as the plate thickness direction and extending in the vertical direction. The bus bar terminal portion  48 A is connected to the connection terminal  86  of the connector  80  described later. 
     (ECU Unit  14 ) 
     As shown in  FIGS. 1 to 3 , the ECU unit  14  is assembled to the open end of the housing  20  to form the upper end of the rotary electric machine  10 . The ECU unit  14  comprises a heat-sink  60 , a circuit board  70  as a “substrate” for controlling the motor portion  12 , and a connector assembly  90  connected to the circuit board  70 . 
     &lt;Heat-Sink  60 &gt; 
     As shown in  FIGS. 1 to 7 , the heat-sink  60  is made of an aluminum alloy or the like having high thermal conductivity. The heat-sink  60  is formed in a roughly disk shape with the vertical direction as the plate thickness direction. A flange portion  60 A extending radially outward is integrally formed on the outer peripheral portion of the upper end portion of the heat-sink  60 , and the flange portion  60 A is formed over the entire circumference of the heat-sink  60  in the circumferential direction. The heat-sink  60  is fitted into the opening of the housing  20  from above, and the flange portion  60 A is arranged adjacent to the upper side of the opening end surface of the housing  20 . As a result, the opening of the housing  20  is closed by the heat-sink  60 . That is, the heat-sink  60  is configured as the lid portion of the housing  20 , and also constitutes a part of the outer shell of the rotary electric machine  10 . 
     Further, the flange portion  60 A is integrally formed with three first fixing portions  60 B protruding outward in the radial direction at positions corresponding to the screw portions  20 B 1  of the housing  20 . A fixing hole  60 B 1  is formed through the first fixing portion  60 B. The heat-sink  60  is fixed to the housing  20  by inserting the fixing screw SC 1  into the fixing hole  60 B 1  from above and screwing it into the screw portion  20 B 1  of the housing  20 . 
     Further, A pair of second fixing portions  60 C extending outward in the radial direction are integrally formed on the portion of the flange portion  60 A on the other side in the first direction, and the second fixing portions  60 C are arranged side by side in the circumferential direction of the heat-sink  60 . A first fixing screw portion  60 C 1  for fixing the connector assembly  90 , which will be described later, is formed through the second fixing portion  60 C, and a female screw is formed on the inner peripheral surface of the first fixing screw portion  60 C 1 . 
     A seal groove  60 D is formed in the vertical intermediate portion of the outer peripheral portion of the heat-sink  60 . The seal groove  60 D is opened to the outside in the radial direction of the heat-sink  60 , and extends over the entire circumference of the heat-sink  60  in the circumferential direction. A ring-shaped O-ring OL is housed in the seal groove  60 D, and the O-ring OL is made of an elastic member such as rubber. In the fixed state of the heat-sink  60  to the housing  20 , the O-ring OL is elastically deformed and is in close contact with the inner peripheral surface of the seal groove  60 D and the inner peripheral surface of the housing  20 . As a result, the space between the heat-sink  60  and the open end of the housing  20  is sealed by the O-ring OL to ensure the airtightness inside the housing  20 . 
     As shown in  FIGS. 5 and 7 , an installation portion  61  for installing the circuit board  70 , which will be described later, is formed on the outer peripheral portion of the lower surface  60 E of the heat-sink  60 . The installation portion  61  projects downward from the lower surface  60 E of the heat-sink  60  and is formed in a rib shape extending along the circumferential direction of the heat-sink  60 . Further, most of the installation portion  61  is formed on the outer peripheral portion of the heat-sink  60  on one side in the first direction and when viewed from below, the installation portion  61  is formed in a roughly C shape that is open to the other side in the first direction. That is, on the outer peripheral portion of the lower surface  60 E of the heat-sink  60 , a step portion  62  which is one step lower to the upper side than the installation portion  61  is formed on the portion on the other side in the first direction. Further, both ends in the longitudinal direction of the installation portion  61  are arranged on the other side in the first direction with respect to the second reference line L 2  in a bottom view (cf.  FIG. 7 ). That is, the length of the installation portion  61  in the longitudinal direction is set to ½ or more of the total length in the circumferential direction of the heat-sink  60 . 
     Further, the installation portion  61  has three first substrate fixing portions  63 A, a second substrate fixing portion  63 B, and a third substrate fixing portion  63 C protruding inward in the radial direction of the heat-sink  60 , wherein the tip surface (lower surface) of the first substrate fixing portion  63 A to the third substrate fixing portion  63 C is arranged flush with the tip surface (lower surface) of the installation portion  61 . The first substrate fixing portion  63 A, the second substrate fixing portion  63 B, and the third substrate fixing portion  63 C are respectively formed with a concave first substrate fixing screw portion  63 A 1 , the second substrate fixing screw portion  63 B 1 , and the third substrate fixing screw portion  63 C 1  that is open downward. Female threads are formed on the inner peripheral surfaces of the first substrate fixing screw portion  63 A 1 , the second substrate fixing screw portion  63 B 1 , and the third substrate fixing screw portion  63 C 1 . 
     Further, the first substrate fixing portion  63 A is formed at one end in the longitudinal direction of the installation portion  61 , and arranged on one side in the second direction (arrow E direction side in  FIG. 7 ) with respect to the first reference line L 1  and on the other side in the first direction with respect to the second reference line L 2 . The second substrate fixing portion  63 B is formed on one side in the longitudinal direction of the installation portion  61 . Specifically, the second substrate fixing portion  63 B is arranged on one side in the second direction with respect to the first reference line L 1  and on one side in the first direction with respect to the second reference line L 2 , in a bottom view. The third substrate fixing portion  63 C is formed on the other side portion in the longitudinal direction of the installation portion  61 . Specifically, the third substrate fixing portion  63 C is arranged on the other side in the second direction (arrow F direction side in  FIG. 7 ) with respect to the first reference line L 1  and slightly deviated from the one side in the first direction with respect to the second reference line L 2 , in the bottom view. 
     Further, a fourth substrate fixing portion  63 D for fixing the circuit board  70 , which will be described later, is formed on the lower surface  60 E of the heat-sink  60 . The fourth substrate fixing portion  63 D is formed in a roughly cylindrical shape having a relatively low height protruding downward, and the tip surface (lower surface) of the fourth substrate fixing portion  63 D is arranged flush with the tip surface (lower surface) of the installation portion  61 . A fourth substrate fixing screw portion  63 D 1  is formed inside the fourth substrate fixing portion  63 D, and a female screw is formed on the inner surface of the fourth substrate fixing screw portion  63 D 1 . Further, the fourth substrate fixing portion  63 D is arranged at a position on the other side in the second direction with respect to the first reference line L 1  and on one side in the first direction with respect to the second reference line L 2  in the bottom view. 
     Further, a portion of the heat-sink  60  on one side in the first direction (specifically, the portion on one side in the first direction from the position slightly deviated to the other side in the first direction with respect to the second reference line L 2 ) is configured as a heat dissipating portion  65  for dissipating heat generated by the FET  74  of the circuit board  70 , which will be described later. The heat dissipating portion  65  is formed with a first heat dissipating portion  65 A, a second heat dissipating portion  65 B, and a third heat dissipating portion  65 C protruding downward from the lower surface  60 E of the heat-sink  60 . The first heat dissipating portion  65 A to the third heat dissipating portion  65 C are formed in a roughly rectangular shape with the first direction as the longitudinal direction, in the bottom view. The amount of protrusion from the lower surface  60 E of the first heat dissipating portion  65 A to the third heat dissipating portion  65 C is set to be smaller than the amount of protrusion from the lower surface  60 E of the installation portion  61 . That is, the lower surfaces of the first heat dissipating portion  65 A to the third heat dissipating portion  65 C are arranged above the lower surface of the installation portion  61 . 
     Further, the first heat dissipating portion  65 A to the third heat dissipating portion  65 C are arranged side by side at a predetermined interval in the second direction. Specifically, the first heat dissipating portion  65 A is arranged between the third substrate fixing portion  63 C and the fourth substrate fixing portion  63 D, in a bottom view. In other words, the third substrate fixing portion  63 C, the first heat dissipating portion  65 A, and the fourth substrate fixing portion  63 D are arranged side by side in this order on one side in the second direction. 
     The second heat dissipating portion  65 B and the third heat dissipating portion  65 C are arranged side by side in the second direction at positions between the second substrate fixing portion  63 B and the fourth substrate fixing portion  63 D, in a bottom view. In other words, the fourth substrate fixing portion  63 D, the second heat dissipating portion  65 B, the third heat dissipating portion  65 C, and the second substrate fixing portion  63 B are arranged side by side in this order on one side in the second direction. 
     Further, a pair of positioning portions  66 ,  67  for determining the position of the connector  80  of the circuit board  70 , which will be described later, are formed on the lower surface  60 E of the heat-sink  60 . The positioning portions  66  and  67  project downward from the lower surface  60 E of the heat-sink  60 , and the amount of protrusion from the lower surface  60 E of the positioning portions  66  and  67  is set to be smaller than the amount of protrusion from the lower surface  60 E of the installation portion  61 . Further, the positioning portions  66  and  67  are arranged on the outer peripheral side of the lower surface  60 E of the heat-sink  60  on one side in the first direction, and are arranged adjacent to the inner side in the radial direction of the installation portion  61 . Specifically, the pair of positioning portions  66 ,  67  are arranged at positions symmetrical with respect to the first reference line L 1  in the second direction in the bottom view. 
     A first heat-sink side positioning hole  66 A as a concave “heat-sink side positioning hole” opened downward is formed on the lower surface of the positioning portion  66  on one side in the second direction, and the first heat-sink side positioning hole  66 A is formed in a circular shape when viewed from the bottom. On the other hand, a second heat-sink side positioning hole  67 A as a concave “heat-sink side positioning hole” opened downward is formed on the lower surface of the positioning portion  67  on the other side in the second direction, and the second heat-sink side positioning hole  67 A is formed in a roughly track shape with the second direction as the longitudinal direction when viewed from the bottom. That is, the heat-sink  60  is formed with a pair of first heat-sink side positioning holes  66 A and second heat-sink side positioning holes  67 A, and the first heat-sink side positioning hole  66 A and the second heat-sink side positioning hole  67 A are arranged side by side in the second direction. The width direction (first direction) of the second heat-sink side positioning hole  67 A is set to match the diameter of the first heat-sink side positioning hole  66 A. 
     The lower surface  60 E of the heat-sink  60  is formed with a recess  60 F open to the lower side in a portion other than the heat dissipating portion  65  (the portion on the other side in the first direction), and the recess  60 F is formed in a roughly hexagonal shape when viewed from the bottom. A terminal insertion portion  60 G as an “insertion portion” for inserting the terminal  94  of the connector assembly  90 , which will be described later, is formed through the portion on the other side in the first direction of the recess  60 F. The terminal insertion portion  60 G is formed in a roughly V shape open to one side in the first direction in a bottom view. 
     As shown in  FIG. 6 , on the upper surface of the heat-sink  60 , a relief  60 H opened upward is formed on the portion on one side in the first direction, and the relief  60 H is formed in a roughly fan shape in a plan view. 
     Further, on the upper surface of the heat-sink  60 , a plurality of (three places in this embodiment) second fixing screw portions  60 J for fixing the connector assembly  90 , which will be described later, are formed at positions between the relief  60 H and the terminal insertion portion  60 G. The second fixing screw portion  60 J is formed in a concave shape that is open to the upper side of the heat-sink  60 , and a female screw is formed on the inner peripheral surface of the second fixing screw portion  60 J. The second fixing screw portions  60 J at three locations are arranged at predetermined intervals in the second direction in a plan view. 
     &lt;Circuit Board  70 &gt; 
     As shown in  FIGS. 1-8 , the circuit board  70  is formed in a disk shape with the vertical direction as the plate thickness direction, and the diameter of the circuit board  70  is set to be slightly smaller than the diameter of the heat-sink  60 . The circuit board  70  is arranged coaxially with the heat-sink  60  and adjacent to the lower side (that is, the motor portion  12  side) of the installation portion  61  of the heat-sink  60 . As a result, a gap G (cf.  FIG. 4B ) is formed in the vertical direction between the outer peripheral portion of the circuit board  70  on the other side in the first direction and the stepped portion  62  of the heat-sink  60 . 
     Further, the circuit board  70  is formed through four substrate fixing holes  70 A (cf.  FIG. 6 ) at positions corresponding to the first substrate fixing screw portions  63 A 1  to the fourth substrate fixing screw portion  63 D 1  of the heat-sink  60 . The circuit board  70  is fixed to the heat-sink  60  by inserting the fixing screw SC 2  into the substrate fixing hole  70 A from below and screwing it into the first substrate fixing screw portion  63 A 1  to the fourth substrate fixing screw portion  63 D 1 . As a result, the motor portion  12  is arranged on one side in the plate thickness direction (lower side) of the circuit board  70 . 
     A magnetic sensor  72  is provided (mounted) at the center of the lower surface (one side surface) of the circuit board  70 . The magnetic sensor  72  is arranged close to the upper side of the magnet  30  on the rotating shaft  28  of the motor portion  12 , and the magnetic sensor  72  and the magnet  30  are arranged so as to face each other in the vertical direction (cf.  FIG. 2 ). As a result, the rotation amount (rotation angle) of the rotating shaft  28  is detected by the magnetic sensor  72 . 
     Further, the upper surface (other side) of the circuit board  70  is divided into a first area  70 AR 1  (see the hatched part in  FIG. 8 ) which is arranged vertically facing the heat dissipating portion  65  of the heat-sink  60 , and a second area  70 AR 2  which is arranged vertically facing the recess  60 F of the heat-sink  60 . Therefore, the terminal insertion portion  60 G of the heat-sink  60  is arranged so as to face the second area  70 AR 2  in the vertical direction. The first area  70 AR 1  is mainly provided with electronic components of the power supply system in the rotary electric machine  10 , and the second area  70 AR 2  is mainly provided with electronic components of the control system in the rotary electric machine  10 . 
     Specifically, as shown in  FIGS. 6 and 7 , FET  74   s  as a plurality of “heating elements” are provided (mounted) in the first area  70 AR 1  of the circuit board  70 . The plurality of FETs  74  are arranged at positions corresponding to the first heat dissipating section  65 A, the second heat dissipating section  65 B, and the third heat dissipating section  65 C of the heat-sink  60 . Specifically, in the first area  70 AR 1  of the circuit board  70 , a pair of FETs  74  are arranged at positions corresponding to the first heat dissipating portion  65 A, the second heat dissipating portion  65 B, and the third heat dissipating portion  65 C of the heat-sink  60 , and the paired FETs  74  are arranged side by side in the first direction (cf.  FIG. 7 ). Further, in the fixed state of the circuit board  70  to the heat-sink  60 , the amount of protrusion is set from the lower surface  60 E of the heat-sink  60  of the first heat dissipating portion  65 A, the second heat dissipating portion  65 B, and the third heat dissipating portion  65 C so that a slight gap is formed in the vertical direction between the FET  74  and the first heat dissipating portion  65 A, the second heat dissipating portion  65 B, and the third heat dissipating portion  65 C (cf.  FIG. 12 ). Grease or the like for heat dissipation is interposed in the gap. 
     Further, a pair of circular substrate-side positioning holes  70 B (cf.  FIG. 6 ) are formed through the circuit board at positions corresponding to the first heat-sink-side positioning holes  66 A and the second heat-sink-side positioning holes  67 A of the heat-sink  60 . The diameter dimension of the substrate side positioning hole  70 B is set to be roughly the same as the diameter dimension of the first heat-sink side positioning hole  66 A. 
     Further, as shown in  FIGS. 3, 4 and 5 , on the lower surface of the circuit board  70 , a connector  80  for connecting the circuit board  70  and the motor portion  12  (three bus bars  48 ) is provided on one side of the first direction (specifically, the position corresponding to the bus bar terminal  48 A described above). Hereinafter, the connector  80  will be described. 
     As shown in  FIGS. 3, 4, 5, and 9-12 , the connector  80  comprises three connection terminals  86  and a terminal holder  81  as a “holder” for holding the three connection terminals  86 . The bus bar terminal  48 A of the bus bar  48  is press-fitted into the connection terminal  86  to connect the motor portion  12  and the connection terminal  86 . That is, the connector  80  is configured as a so-called press-fit connector. 
     [Terminal Holder  81 ] 
     The terminal holder  81  is made of a resin material (insulating material). The terminal holder  81  is formed in a roughly E-shaped block shape that is open downward when viewed from the first direction. Specifically, the terminal holder  81  comprises a base portion  82  that constitutes a base end portion (upper end) of the terminal holder  81 , and three holding main body portions  83  that protrude downward (motor portion  12  side) from the base portion  82 . 
     The base portion  82  is formed in a roughly rectangular plate shape with the vertical direction as the plate thickness direction and the second direction as the longitudinal direction, and is installed on the lower surface of the circuit board  70 . The base portion  82  is arranged with respect to the circuit board  70  so that the central portion of the base portion  82  in the longitudinal direction coincides with the first reference line L 1  in the bottom view (cf.  FIG. 4 ). A pair of hole portions  82 A are formed through the base portion  82 , and the hole portions  82 A are arranged at positions symmetrical with respect to the first reference line L 1  in the second direction when viewed from the bottom. The hole  82 A is formed in a roughly track shape with the first direction as the longitudinal direction. The head of the fixing screw SC 2  is arranged in the hole  82 A on the other side in the second direction. 
     Further, the base portion  82  is integrally formed with a pair of positioning pieces  82 B extending to one side in the first direction at positions corresponding to the pair of hole portions  82 A. Each positioning pin  82 C is formed at the tip of the positioning piece  82 B, and the positioning pin  82 C is formed in a bottomed cylindrical shape that protrudes upward (circuit board  70  side) from the positioning piece  82 B and is open downward. Further, the diameter of the positioning pin  82 C is set to be roughly the same as the diameter of the substrate side positioning hole  70 B of the circuit board  70  and the first heat-sink side positioning hole  66 A of the heat-sink  60 . 
     The positioning pin  82 C on one side in the second direction is fitted in the positioning hole  70 B on the substrate side of the circuit board  70  and in the positioning hole  66 A on the first heat-sink side of the heat-sink  60  (cf.  FIG. 12 ). Further, the positioning pin  82 C on the other side in the second direction is fitted in the substrate side positioning hole  70 B of the circuit board  70  and in the second heat-sink side positioning hole  67 A of the heat-sink  60 . As a result, the position of the terminal holder  81  (that is, the connector  80 ) with respect to the heat-sink  60  is determined by the positioning pin  82 C. 
     The three holding main body portions  83  project downward from both ends in the longitudinal direction and the central portion in the longitudinal direction of the base portion  82 , respectively. The holding main body portion  83  extends along the width direction (first direction) of the base portion  82  in a bottom view. Further, the holding main body portion  83  comprises a holder portion  84  that constitutes one end of the holding main body portion  83  in the first direction, and a cover portion  85  that constitutes the other end of the holding main body portion  83  in the first direction. 
     The holder portion  84  is formed in the shape of a roughly rectangular parallelepiped block protruding downward from the base portion  82 . A pair of holding holes  84 A 1  and  84 A 2  are formed in the holder portion  84  in the central portion in the width direction (second direction) of the holding main body portion  83 , and the holding holes  84 A 1  and  84 A 2  are penetrated in the vertical direction. That is, the holding holes  84 A 1  and  84 A 2  also penetrate the base portion  82 . The holding holes  84 A 1  and  84 A 2  are formed in a roughly rectangular shape in a bottom view and are arranged side by side along the first direction. Further, the holding hole  84 A 2  arranged on the other side in the first direction is arranged at the end on the other side in the first direction of the holder portion  84 , and at the end of the holder portion  84  on the other side in the first direction, the holding hole  84 A 2  is opened to the other side in the first direction in a bottom view. Further, the dimensions of the holding holes  84 A 1  and  84 A 2  in the second direction are set to be slightly larger than the plate thickness of the connection terminal  86  described later. 
     The cover portion  85  is formed in a roughly U-shaped columnar shape open to one side in the first direction in a bottom view, and is formed in a roughly flat shape with the second direction as the thickness direction. Specifically, the cover portion  85  comprises a pair of first side walls  85 A with the second direction as the plate thickness direction, and a second side wall  85 B connecting the ends of the pair of first side walls  85 A on the other side in the first direction. The amount of protrusion of the cover portion  85  from the base portion  82  is significantly larger than the amount of protrusion of the holder portion  84  from the base portion  82 . Further, one side end in the first direction at the base end of the pair of first side walls  85 A is connected to the holder  84 . The inside of the cover portion  85  is configured as an accommodating portion  85 C for accommodating the connection terminal  86  described later. 
     A guide groove  85 D as a “guide portion” is formed at the tip end portion (lower end portion) of the pair of first side wall  85 A at the intermediate portion in the first direction. The guide groove  85 D is formed in a slit shape extending in the vertical direction and is penetrated in the second direction. A pair of inclined portions  85 E are formed at the opening end of the guide groove  85 D, and the inclined portions  85 E are inclined in a direction (outside of the guide groove  85 D in the width direction) in which they are separated from each other toward the lower side (opening side of the guide groove  85 D). Further, the groove width of the guide groove  85 D is set to be slightly larger than the plate thickness of the bus bar terminal portion  48 A, and in the connected state between the connection terminal  86  and the bus bar terminal  48 A, which will be described later, the bus bar terminal  48 A is inserted into the guide groove  85 D. 
     A pair of guide ribs  85 F are formed on the inner peripheral surfaces of the pair of first side walls  85 A. The guide ribs  85 F are arranged on one side and the other side in the first direction with respect to the guide groove  85 D, respectively, and extend downward from the base portion  82 . The guide ribs  85 F arranged to face each other in the second direction form a set, and the separation distance of the set guide ribs  85 F in the second direction is set so as to roughly match the plate thickness of the connection terminal  86  described later. An inclined surface  85 G is formed at the tip of the guide rib  85 F, and the inclined surface  85 G is inclined toward the first side wall  85 A toward the lower side. 
     Further, in the accommodating portion  85 C of the cover portion  85 , a support protrusion portion  85 H (cf.  FIG. 11 ) is provided at a boundary portion of the holder portion  84  with the holding hole  84 A 2  arranged on the other side in the first direction. The support protrusion  85 H protrudes downward from the base portion  82 , and the amount of protrusion of the support protrusion  85 H from the base portion  82  is smaller than the amount of protrusion of the holder portion  84  from the base portion  82 . Further, the support protrusion  85 H is formed in a roughly trapezoidal shape in a cross-sectional view seen from the second direction. 
     [Connection Terminal  86 ] 
     As shown in  FIGS. 10 and 11 , the connection terminal  86  consists of a metal plate material. Further, the connection terminal  86  is arranged with the second direction as the plate thickness direction, and is held by each of the three holding main body portions  83  in the terminal holder  81 . The connection terminal  86  is formed in a roughly crank-shaped plate shape when viewed from the second direction. 
     Specifically, the connection terminal  86  comprises a terminal fixing portion  87  constituting one end of the connection terminal  86  (end portion on one side in the first direction), a terminal connection portion  88  constituting the other end portion (end portion on the other side in the first direction) of the connection terminal  86 , and a connecting portion  89  that connects the terminal fixing portion  87  and the terminal connecting portion  88 . 
     The terminal fixing portion  87  is formed in a roughly inverted U-shaped plate shape that is open to the upper side (circuit board  70  side) when viewed from the second direction. Specifically, the terminal fixing portion  87  comprises a base portion  87 A constituting the lower end portion of the terminal fixing portion  87 , and a pair of terminal portions  87 B 1  and  87 B 2  extending upward from the base portion  87 A. The base portion  87 A is formed in a roughly rectangular plate shape, and is arranged adjacent to the lower side of the holder portion  84  of the terminal holder  81 . The pair of terminal portions  87 B 1  and  87 B 2  are arranged side by side in the first direction corresponding to the pair of holding holes  84 A 1  and  84 A 2  in the holder portion  84  of the terminal holder  81 . 
     Further, a plurality of (four locations in the present embodiment) protruding portions  87 C are integrally formed at the base end portion (lower end portion) of the terminal portion  87 B 1  arranged on one side in the first direction. Specifically, the two protruding portions  87 C are projected from the base end portion of the terminal portion  87 B 1  to one side in the first direction, and are arranged side by side in the vertical direction. Further, the other two protrusions  87 C are projected from the base end portion of the terminal portion  87 B 1  to the other side in the first direction, and are arranged side by side in the vertical direction. The protrusion  87 C is formed in a roughly wedge shape when viewed from the second direction. The terminal portion  87 B 1  is fitted into the holding hole  84 A 1  from below so that the protrusion  87 C wedges into the inner peripheral surface of the holding hole  84 A 1  of the terminal holder  81 . As a result, the terminal portion  87 B 1  (that is, the connection terminal  86 ) is held by the terminal holder  81 . 
     Further, a plurality of (in this embodiment, two locations) protrusions  87 C are integrally formed on the base end side of the terminal portion  87 B 2  arranged on the other side in the first direction, and the protrusion  87 C protrudes from the terminal portion  87 B 2  to one side in the first direction and the other side in the second direction. The terminal portion  87 B 2  is fitted into the holding hole  84 A 2  from below so that the protruding portion  87 C wedges into the inner peripheral surface of the holding hole  84 A 2  of the terminal holder  81 . As a result, the terminal portion  87 B 2  (that is, the connection terminal  86 ) is held by the terminal holder  81 . 
     Further, protruding portions  87 D (cf.  FIG. 10 ) projecting to one side in the second direction are formed on the portions on the base end side of the terminal portions  87 B 1  and  87 B 2 , respectively, and the protruding portion  87 D is formed by a half blanking process or the like. The terminal portions  87 B 1 ,  87 B 2  are fitted into the holding holes  84 A 1 ,  84 A 2  in a state where the protruding portion  87 D is in pressure contact with the inner peripheral surfaces of the holding holes  84 A 1 ,  84 A 2  of the terminal holder  81 . 
     Further, the tip portions (upper end portions) of the pair of terminal portions  87 B 1  and  87 B 2  project upward than the terminal holder  81  (the circuit board  70  side) and are inserted into the terminal hole  70 C of the circuit board  70 , and fixed to the circuit board  70  by soldering (cf.  FIG. 11 ). In  FIG. 11 , for convenience, the solder for fixing the pair of terminal portions  87 B 1  and  87 B 2  and the circuit board  70  is not shown. 
     The terminal connection portion  88  is formed in a roughly U-shaped plate shape that is open to the lower side (motor portion  12  side) when viewed from the second direction. That is, the terminal connection portion  88  is formed with a press-fitting groove  88 A that is open downward. The groove width on the opening side of the press-fitting groove  88 A is set to be larger than the groove width of the guide groove  85 D of the terminal holder  81 . On the other hand, the groove width on the bottom side of the press-fitting groove  88 A is set to become smaller toward the bottom of the press-fitting groove  88 A. 
     A terminal press-fitting portion  88 B as a “press-fitting portion” is respectively formed at the open end of the press-fitting groove  88 A. The terminal press-fitting portion  88 B is bent to one side in the second direction, and is formed in a roughly semicircular shape that is convex inward in the groove width direction of the press-fitting groove  88 A when viewed from the second direction. The distance between the pair of terminal press-fitting portions  88 B in the first direction is set to be slightly shorter than the plate thickness of the bus bar terminal portion  48 A. 
     Further, the terminal connection portion  88  is housed in the accommodating portion  85 C of the terminal holder  81 , and the entire terminal connection portion  88  is covered by the cover portion  85  of the terminal holder  81 . In the state of accommodating the terminal connection portion  88  in the accommodating portion  85 C, the lower end of the terminal connection portion  88  is arranged on the upper side of the inclined portion  85 E of the terminal holder  81 , and in the first direction, the guide groove  85 D of the terminal holder  81  and the press-fit groove  88 A of the terminal connection portion  88  are arranged at the same positions. Specifically, when viewed from the second direction, a part (top portion of the arc-shape) of the pair of terminal press-fitting portions  88 B is arranged at a position above than the inclined portion  85 E of the terminal holder  81 , and at the same time, the guide groove  85 D is arranged so as to project inward in the groove width direction. As a result, the bus bar terminal portion  48 A of the bus bar  48  is press-fitted between the pair of terminal press-fitting portions  88 B, and the terminal press-fitting portion  88 B is press-fitted to the bus bar terminal portion  48 A. In other words, the bus bar terminal portion  48 A is press-fitted and fixed to the terminal press-fitting portion  88 B. 
     Further, in this accommodation state, the terminal connection portion  88  is sandwiched in the second direction by the guide rib  85 F of the terminal holder  81 , and is arranged so as to be separated from the base portion  82  (that is, the circuit board  70 ) of the terminal holder  81  on the lower side. That is, a gap is formed between the terminal connection portion  88  and the base portion  82 , and the terminal connection portion  88  is held by the terminal holder  81  so as to be relatively displaceable in the vertical direction. 
     The connecting portion  89  is formed in a roughly rectangular plate shape with the second direction as the plate thickness direction, and connects the base end portion of the other terminal portion  87 B 2  of the terminal fixing portion  87  and the upper end portion of the terminal connecting portion  88 . That is, the connection terminal  86  is formed in a flat plate shape having no bent portion, except for the terminal press-fitting portion  88 B in the terminal connection portion  88 . Further, the connecting portion  89  is arranged above than the press-fitting groove  88 A (on the circuit board  70  side) and is accommodated in the accommodating portion  85 C of the terminal holder  81 . That is, the connecting portion  89  and the press-fitting groove  88 A are arranged so as to be offset in the vertical direction. 
     Further, the portion of the connecting portion  89  on the terminal fixing portion  87  side is arranged adjacent to the support protrusion  85 H of the terminal holder  81  on the lower side and is in contact with the support protrusion  85 H. In other words, the support protrusion  85 H supports the portion of the connecting portion  89  on the terminal fixing portion  87  side from the circuit board  70  side. As a result, when an upward press-fitting load acts on the terminal connecting portion  88  when the bus bar  48  is press-fitted into the terminal connecting portion  88 , the support projection portion  85 H is configured to receive the press-fitting load. Further, when a press-fitting load of a predetermined value or more is input to the connecting portion  89 , the connecting portion  89  is configured to bend and deform starting from the contact portion with the support projection portion  85 H so that the terminal connecting portion  88  is displaced toward the circuit board  70  side. 
     &lt;Connector Assembly  90 &gt; 
     As shown in  FIGS. 1 to 6 , the connector assembly  90  has a mold portion  91 , and the mold portion  91  is made of a resin material (insulating material). The mold portion  91  comprises a mold base  92  as “mold body portion”, and the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C as three “connector portion”. The mold base  92  is formed in a plate shape with the vertical direction as the plate thickness direction. The mold base  92  is arranged adjacent to the upper side of the portion of the heat-sink  60  on the other side in the first direction, and closes the terminal insertion portion  60 G of the heat-sink  60 . 
     The mold base  92  is provided with metal collars  95  as five “fixing portions” at positions corresponding to the first fixing screw portion  60 C 1  and the second fixing screw portion  60 J of the heat-sink  60 . The collar  95  is formed in a cylindrical shape with the vertical direction as the axial direction, and is integrally formed with the mold base  92 . Specifically, the collar  95  is embedded in the mold base  92  with both end faces in the axial direction of the collar  95  exposed. Further, the two collars  95  corresponding to the first fixing screw portion  60 C 1  of the heat-sink  60  are each arranged between the first connector portion  93 A and the second connector portion  93 B, and between the second connector portion  93 B and the third connector portion  93 C, which will be described later. The mold base  92  (that is, connector assembly  90 ) is fixed to the heat-sink  60  by inserting the fixing screw SC 3  as the “fastening member” into the collar  95  and screwed into the first fixing screw portion  60 C 1  and the second fixing screw portion  60 J. 
     The first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C are each formed in a tubular shape, and extend downward from the other end in the first direction of the mold base  92 . Further, the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C are arranged on the outer side in the radial direction of the upper end portion of the housing  20 , and are arranged side by side in the circumferential direction of the housing  20 . That is, the first connector portion  93 A to the third connector portion  93 C are formed in a tubular shape that is open downward. 
     Further, the mold base  92  (connector assembly  90 ) is arranged with respect to the circuit board  70  so that the mold base  92  and the FET  74  of the circuit board  70  do not overlap in a plan view (cf.  FIG. 8 ). In other words, the heat dissipating portion  65  of the heat-sink  60  is not covered by the mold base  92  (mold portion  91 ) and is exposed to the outside of the rotary electric machine  10  (cf.  FIG. 1 ). 
     Further, the connector assembly  90  has a plurality of terminals  94  for connecting the circuit board  70  and the control unit of the vehicle, and the terminal  94  is integrally formed with the mold portion  91 . Specifically, an intermediate portion in the longitudinal direction of the terminal  94  passes through the terminal insertion portion  60 G of the heat-sink  60 , and one end of the terminal  94  is soldered to the circuit board  70  in the second area  70 AR 2  of the circuit board  70 . As a result, the soldered state of one end of the terminal  94  to the circuit board  70  can be visually recognized from the gap G between the step portion  62  of the heat-sink  60  and the circuit board  70  (cf.  FIG. 4B ). Further, the other end of the terminal  94  is arranged inside the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C, respectively. The external connector on the vehicle side is connected to the first connector portion  93 A—third connector portion  93 C. As a result, it is configured that a current is supplied to the circuit board  70  from the vehicle side, and a control signal is output and the motor portion  12  is driven by the control of the circuit board  70 . 
     Effect 
     Next, the operation and effect of the present embodiment will be described while explaining the assembly procedure of the rotary electric machine  10 . 
     In the assembly of the rotary electric machine  10  configured as described above, the motor portion  12  and the ECU unit  14  are first assembled in the unit state. That is, in the unit state of the motor portion  12 , the bus bar terminal portions  48 A of the three bus bars  48  extend upward from the plate holder  24  and are arranged side by side at predetermined intervals in the second direction. 
     On the other hand, when assembling the ECU unit  14  into the unit state, first, the circuit board  70  is fixed to the heat-sink  60  (first step). Specifically, the circuit board  70  is arranged under the heat-sink  60 , and the circuit board  70  is installed in the installation portion  61  of the heat-sink  60 . At this time, the positioning pin  82 C of the connector  80  (terminal holder  81 ) inserted into the positioning hole  70 B on one substrate side of the circuit board  70  is inserted into the positioning hole  66 A on the first heat-sink side of the heat-sink  60 . Further, the positioning pin  82 C of the connector  80  inserted into the other substrate side positioning hole  70 B of the circuit board  70  is inserted into the second heat-sink side positioning hole  67 A of the heat-sink  60 . As a result, the position of the circuit board  70  with respect to the heat-sink  60  is determined by the positioning pin  82 C of the terminal holder  81 . The fixing screw SC 2  is screwed into the first substrate fixing screw portion  63 A 1 —fourth substrate fixing screw portion  63 D 1  of the heat-sink  60 , and the circuit board  70  is fixed to the heat-sink  60  by the fixing screw SC 2 . As a result, the circuit board  70  is fixed to the heat-sink  60  in a state where the relative position of the connector  80  with respect to the heat-sink  60  is determined. 
     Next, the connector assembly  90  is arranged above the heat-sink  60  and fixed to the heat-sink  60  (second step). Specifically, the terminal  94  of the connector assembly  90  is inserted into the terminal insertion portion  60 G of the heat-sink  60 . One end of the terminal  94  is inserted into the terminal hole of the circuit board  70 , and the mold base  92  is arranged adjacent to the upper side of the heat-sink  60  on the other side in the first direction. In this state, the fixing screw SC 3  is screwed into the first fixing screw portion  60 C 1  and the second fixing screw portion  60 J of the heat-sink  60 , and the connector assembly  90  is fixed to the heat-sink  60  by the fixing screw SC 3 . Further, one end of the terminal  94  of the connector assembly  90  is fixed to the circuit board  70  by soldering. As a result, the connector assembly  90  is fixed to the heat-sink  60  in a state where the portion of the heat-sink  60  on one side in the first direction is exposed to the outside. As described above, the ECU unit  14  is assembled in the unit state. 
     Next, the ECU unit  14  is assembled to the open end of the housing  20  in the motor portion  12 . Specifically, the ECU unit  14  is arranged above the housing  20 , and then the heat-sink  60  is fitted into the open end of the housing  20 . At this time, the bus bar terminal portion  48 A of the bus bar  48  in the motor portion  12  is press-fitted from below between the pair of terminal press-fitting portions  88 B in the connection terminals  86  of the circuit board  70  (third step). As a result, the bus bar  48  is press-fitted and fixed to the connection terminal  86 . Therefore, the open end of the housing  20  is closed by the heat-sink  60  while the ECU unit  14  and the motor portion  12  are electrically connected. 
     After the heat-sink  60  is fitted into the open end of the housing  20 , the fixing screw SC 1  is screwed into the screw portion  20 B 1  of the housing  20 , and the heat-sink  60  (ECU unit  14 ) is fixed to the housing  20  by the fixing screw SC 1  (fourth step). As a result, the ECU unit  14  is fixed to the housing  20 . With the above, the assembly of the rotary electric machine  10  is completed. 
     Here, the rotary electric machine  10  comprises a motor portion  12  and an ECU unit  14 . Further, the ECU unit  14  is configured to include a heat-sink  60  that closes the opening of the housing  20  of the motor portion  12 , the circuit board fixed to the lower side of the heat-sink  60 , and the connector assembly  90  fixed to the upper side of the heat-sink  60  with a part of the heat-sink  60  (heat dissipation part  65 ) exposed. That is, the circuit board  70  is arranged on the motor portion  12  side with respect to the heat-sink  60 , and a part of the heat-sink  60  (heat dissipation portion  65 ) is exposed to the outside of the rotary electric machine  10 . As a result, the heat generated by the electronic components provided on the circuit board  70  can be efficiently dissipated to the outside of the rotary electric machine  10  by the heat-sink  60 . 
     Further, the circuit board  70  and the connector assembly  90  are fixed to the heat-sink  60 , and the ECU unit  14  is unitized. Further, on the lower surface of the circuit board  70 , a connection terminal  86  that is press-fitted and fixed to the bus bar terminal portion  48 A of the bus bar  48  in the motor portion  12  is provided. Therefore, the bus bar terminal portion  48 A can be press-fitted into the connection terminal  86 , and the ECU unit  14  in the unit state can be connected to the motor portion  12 . As a result, even if the heat-sink  60  is arranged on the side opposite to the motor portion  12  with respect to the circuit board  70  in the ECU unit  14 , the bus bar terminal portion  48 A is able to be connected to the circuit board  70  without being soldered to the circuit board  70 . Therefore, the assemblability of the rotary electric machine  10  can be improved. 
     As described above, according to the rotary electric machine  10  of the present embodiment, it is possible to improve the heat dissipation effect of the heat-sink  60  while improving the assemblability. 
     Further, a pair of positioning pins  82 C are formed on the base portion  82  of the terminal holder  81 . One positioning pin  82 C is fitted into one substrate side positioning hole  70 B of the circuit board  70  and the first heat-sink side positioning hole  66 A of the heat-sink  60 . Further, the other positioning pin  82 C is fitted into the other substrate side positioning hole  70 B of the circuit board  70  and the second heat-sink side positioning hole  67 A of the heat-sink  60 . Therefore, the circuit board  70  can be fixed to the heat-sink  60  while the position of the connector  80  with respect to the heat-sink  60  is determined by the terminal holder  81  of the connector  80 . Thereby, the assemblability of the rotary electric machine  10  can be further improved. 
     That is, if the positioning pin  82 C of the terminal holder  81  is configured so as not to fit into the first heat-sink side positioning hole  66 A and the second heat-sink side positioning hole  67 A of the heat-sink  60 , in order to determine the position of the circuit board  70  with respect to the heat-sink  60 , for example, a structure is conceivable in which the heat-sink  60  is provided with a positioning boss and a hole is formed in the circuit board  70  into which the boss is fitted (hereinafter, this structure is referred to as a fixed structure of a comparative example). In this case, the position of the circuit board  70  with respect to the heat-sink  60  is determined by the boss, and the position of the connector  80  with respect to the circuit board  70  is determined by the positioning pin  82 C of the terminal holder  81 . Therefore, in the fixed structure of the comparative example, the position of the connector  80  (connection terminal  86 ) with respect to the heat-sink  60  is likely to be displaced. That is, for example, the position of the connector  80  with respect to the heat-sink  60  may be displaced due to the displacement of the circuit board  70  with respect to the heat-sink  60  due to the dimensional tolerance of the parts and the like, and the displacement of the terminal holder  81  with respect to the circuit board  70 . In this case, when the heat-sink  60  is assembled to the opening of the housing  20 , there is a possibility that a misalignment occurs between the bus bar terminal  48 A of the motor portion  12  and the connection terminal  86  of the connector  80 , and the bus bar terminal portion  48 A cannot be satisfactorily press-fitted and fixed to the terminal press-fitting portion  88 B of the connection terminal  86 . As a result, the assemblability of the rotary electric machine  10  may decrease. 
     On the other hand, in the present embodiment, as described above, the positioning pin  82 C of the terminal holder  81  fitted in one of the substrate-side positioning holes  70 B of the circuit board  70  is fitted in the first heat-sink side positioning hole  66 A of the heat-sink  60 , and the positioning pin  82 C of the terminal holder  81  fitted in the other substrate side positioning hole  70 B of the circuit board  70  is fitted in the second heat-sink side positioning hole  67 A of the heat-sink  60 . Therefore, the circuit board  70  can be fixed to the heat-sink  60  while the position of the terminal holder  81  (connector  80 ) provided on the circuit board  70  with respect to the heat-sink  60  is directly determined by the positioning pin  82 C of the terminal holder  81 . As a result, the misalignment of the connector  80  (connection terminal  86 ) with respect to the heat-sink  60  can be suppressed as compared with the fixed structure of the above comparative example. As a result, when the heat-sink  60  is assembled to the opening of the housing  20 , the misalignment between the bus bar terminal portion  48 A of the motor portion  12  and the connection terminal  86  held by the terminal holder  81  can be suppressed. Therefore, the bus bar terminal portion  48 A can be satisfactorily press-fitted and fixed to the terminal press-fitting portion  88 B of the connection terminal  86 . As described above, the assemblability of the rotary electric machine  10  can be further improved. 
     Further, in the rotary electric machine  10 , the FET  74  of the circuit board  70  and the connector assembly  90  are arranged at positions where they do not overlap in a plan view. Therefore, the heat generated by the FET  74 , which is a heat generating member, can be transferred to the heat-sink  60 , and the transferred heat can be efficiently dissipated to the outside of the rotary electric machine  10  by the heat-sink  60 . 
     The circuit board  70  is divided into a first area  70 AR 1  provided with electronic components of the power supply system, and a second area  70 AR 2  provided with electronic components of the control system. The terminal  74  of the connector assembly  90  is fixed by soldering in the second area  70 AR 2  of the circuit board  70 . As a result, the connector assembly  90  can be fixed to the heat-sink  60  without arranging the connector assembly  90  on the upper side of the first area  70 AR 1  provided with the electronic components of the power supply system. 
     Further, the heat-sink  60  is formed with a terminal insertion portion  60 G through which the terminal  74  is inserted. Therefore, the terminal insertion portion  60 G is arranged so as to face the second area  70 AR 2  in the vertical direction. That is, the connector assembly  90  can be fixed to the heat-sink  60  without forming the terminal insertion portion  60 G in the heat dissipating portion  65  of the heat-sink  60 . 
     Therefore, the connector assembly  90  can be fixed to the heat-sink  60  without impairing the heat dissipation effect of the heat-sink  60  on the electronic components of the power supply system. 
     Further, the connector assembly  90  comprises a mold portion  91  fixed to the heat-sink  60 , and a terminal  94  integrally formed with the mold portion  91 . Therefore, the ECU unit  14  can be unitized by assembling the connector assembly  90  in the assembly state to the heat-sink  60 . Therefore, it is possible to improve the assemblability when the ECU unit  14  is unitized. 
     Further, the mold portion  91  of the connector assembly  90  comprises a plate-shaped mold base  92  having a thickness direction in the vertical direction, and a first connector portion  93 A, a second connector portion  93 B, and a third connector portion  93 C extending downward from the mold base  92  and arranged radially outside the housing  20 . That is, the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C do not project upward from the mold base  92 . Therefore, the connector assembly  90  can be fixed to the heat-sink  60  while suppressing the increase in the size of the rotary electric machine  10  in the axial direction. 
     Further, in the connector assembly  90 , two collars  95  corresponding to the first fixing screw portion  60 C 1  of the heat-sink  60  are arranged between the first connector portion  93 A and the second connector portion  93 B, and between the second connector portion  93 B and the third connector portion  93 C, respectively. Therefore, the base end portion (upper end portion) of the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C can be satisfactorily fixed to the heat-sink  60 . As a result, it is possible to effectively prevent the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C from being displaced upward when the external connector is inserted into the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C. 
     Further, by suppressing the upward displacement of the first connector portion  93 A, the second connector portion  93 B, and the third connector portion  93 C, the upward displacement of the terminal  94  integrally formed with the mold portion  91  can also be suppressed. Therefore, the stress acting on the soldered portion between the terminal  94  and the circuit board  70  can be reduced. 
     Further, in the connector assembly  90 , the fixing portion to the heat-sink  60  is composed of a metal collar  95 , and the connector assembly  90  is fastened and fixed to the heat-sink  60  by the fixing screw SC 3  inserted in the collar  95 . As a result, the connector assembly  90  can be fastened and fixed to the heat-sink  60  with the fixing screw SC 3  and the collar  95  metal-touched. Thereby, even if the rotary electric machine  10  receives a thermal shock due to a change in the environmental temperature, for example, the fixed state of the connector assembly  90  and the heat-sink  60  can be maintained satisfactorily. 
     Further, the connection terminal  86  of the circuit board  70  is held by the terminal holder  81 , and the terminal holder  81  is formed with a guide groove  85 D that guides the bus bar terminal portion  48 A to the terminal press-fitting portion  88 B of the connection terminal  86 . Specifically, an inclined portion  85 E is formed in the opening of the guide groove  85 D, and the inclined portion  85 E is arranged on the motor portion  12  side than the terminal press-fitting portion  88 B of the connection terminal  86 . Therefore, if the bus bar terminal  48 A is displaced in the first direction with respect to the terminal connection  88  when the bus bar  48  is press-fitted into the terminal connection  88 , the bus bar terminal portion  48 A can be inserted into the pair of terminal press-fitting portions  88 B while being guided by the inclined portion  85 E. Thereby, the assemblability when assembling the ECU unit  14  to the motor portion  12  can be improved. 
     From the viewpoint of improving the heat dissipation of the heat-sink  60  in the present embodiment, as shown in  FIG. 13 , a plurality of heat dissipation fins  68  may be provided outside the heat dissipation portion  65  of the heat-sink  60 . In the example shown in  FIG. 13 , four fins  68  extending in the second direction project upward from the heat-sink  60 . Further, the protruding height of the fin  68  from the upper surface of the heat-sink  60  is set to be equal to or less than the thickness dimension of the mold base  92  of the connector assembly  90 . As a result, the heat dissipation effect of the heat-sink  60  can be effectively enhanced while suppressing the increase in the size of the rotating electric machine  10  in the axial direction. 
     Although the present embodiment has been described above, according to these embodiments, it is possible to improve the heat dissipation effect in the heat-sink while improving the assemblability. 
     DESCRIPTION OF THE REFERENCE NUMERALS 
     
         
         
           
               10  rotary electric machine,  12  motor portion,  14  ECU unit (control unit),  20  housing,  48  bus bar,  60  heat-sink,  66 A first heat-sink side positioning hole (heat-sink side positioning hole),  67 A second heat-sink side positioning hole (heat-sink side positioning hole),  60 G terminal insertion portion (insertion portion),  68  fin,  70  circuit board (substrate),  70 AR 1  first Area,  70 AR 2  second Area,  70 B substrate-side positioning hole,  74  FET (heat generating member),  81  terminal holder (holder),  85 D guide groove (guide portion),  86  connecting terminal,  88 B terminal press-fitting portion (press-fitting portion),  90  connector assembly,  91  mold portion,  92  mold base (mold body portion),  93 A first connector portion (connector portion),  93 B second connector portion (connector portion),  93 C third connector portion (connector portion),  94  terminal,  95  collar (fixing portion), SC 3  fixing screw (fastening member)