An electronic control device that controls a motor has power modules11a,11bto drive the motor. Power terminals32pua,32pvaand32pwaof the power module11aare arranged in positions that are close to and face power terminals32nub,32nvband32nwbof the power module11b, which are opposite to the powe...