1. A motor control device comprising:a frame including a metal material;
a substrate disposed on an upper side of the frame with a gap between the substrate and the upper side of the frame, the substrate including a hole penetrating an upper surface and a lower surface;
a wiring that is inserted into the hole from a side of the upper surface of the substrate and includes a tip portion connected to the substrate; and
an insulating spacer interposed between the frame and the substrate; wherein
the spacer includes a side wall portion that surrounds the tip portion of the wiring in a plan view.