The external connection terminals 170 each have substantially an L shape. The external connection terminal 170 has one bent portion of approximately 90 degrees. Of the external connection terminal 170, a portion from the connection portion with the drive substrate 160 to the bent portion extends in the Z direction, and a portion from the bent portion to the tip end extends toward the common wiring portions 132 and 142 in the Y direction. A predetermined range from the tip end projects outside from the protective member 180.
The protective member 180 protects other elements forming the power module 110. The protective member 180 forms an outer shape of the power module 110. As the protective member 180, a sealing resin body integrally sealing the other elements, a case molded beforehand, or the like can be used. In a case where the protective member 180 is provided by the case, a potting material or the like may be used together in order to enhance the protection. In the present example, as the protective member 180, the sealing resin body is used. The sealing resin body is molded using a resin material such as an epoxy resin, and thus is also referred to as a molded resin or a resin molded body. The sealing resin body is, for example, formed by a transfer molding method.