The electric power steering device 8 includes the ECU 10 and the motor 80. The electric power steering device 8 has power terminals such as the power supply terminal 463 and the ground terminal 464 both of which can handle large electric currents. Because large currents may be supplied to the terminals 463 and 464, the terminals 463 and 464 are configured to have a wider width than other terminals and are connected to wider circuit patterns having larger areas in the substrate 30. However, such large circuit patterns may allow the heat from a soldering operation to be dissipated through the circuit pattern and this may cause problems in the soldering operation. As such, by forming the vias 331, 332, 341, and 342, the heat from the soldering process can be better maintained around the terminal connection portions 33 and 34. The heat can also be better dissipated from the first surface 301 to the second surface 302 via the vias 331, 332, 341, and 342 in connection with the terminal connection portions 33 and 34, while limiting and/or preventing heat dissipation to the circuit patterns. By controlling the heat dissipation in such manner, the solderability of electrical components to the substrate 30 can be improved.