An electronic device comprising: a first wiring substrate and a second wiring substrate each having a first main surface (20a,30a) and a second main surface (20b,30b) that are located on a front surface and a rear surface, respectively, as a pair of main surfaces, the first wiring substrate and the second wiring substrate being spaced apart from each other in a facing direction in which the first main surface of the first wiring substrate faces the first main surface of the second wiring substrate; a housing that accommodates the first wiring substrate and the second wiring substrate; a fixing member including a first fixing portion fixed to the first wiring substrate and a second fixing portion fixed to the second wiring substrate, the fixing member being interposed between the first wiring substrate and the second wiring substrate to fix the first wiring substrate and the second wiring substrate to each other; and an external connection terminal provided in the housing, wherein the fixing member is formed of an electrically conductive member, the first wiring substrate is provided with a first electrically conductive portion, the second wiring substrate is provided with a second electrically conductive portion, the fixing member_ is electrically conductive to the first electrically conductive portion by fixing the first fixing portion to the first wiring substrate, the fixing member is electrically conductive to the second electrically conductive portion by fixing the second fixing portion to the second wiring substrate, the external connection terminal is electrically conductive to the fixing member by electrically connecting the fixing member to the external connection terminal, the housing is provided with a guide groove that receives the first wiring substrate to be inserted into the housing in a direction orthogonal to the facing direction, the external connection terminal is provided at a position on a deepest side in an insertion direction in which the first wiring substrate is inserted into the housing, and the first wiring substrate is inserted into the housing in the insertion direction to press the fixing member into contact with the external connection terminal. a first wiring substrate and a second wiring substrate each having a first main surface (20a,30a) and a second main surface (20b,30b) that are located on a front surface and a rear surface, respectively, as a pair of main surfaces, the first wiring substrate and the second wiring substrate being spaced apart from each other in a facing direction in which the first main surface of the first wiring substrate faces the first main surface of the second wiring substrate; a housing that accommodates the first wiring substrate and the second wiring substrate; a fixing member including a first fixing portion fixed to the first wiring substrate and a second fixing portion fixed to the second wiring substrate, the fixing member being interposed between the first wiring substrate and the second wiring substrate to fix the first wiring substrate and the second wiring substrate to each other; and an external connection terminal provided in the housing, wherein the fixing member is formed of an electrically conductive member, the first wiring substrate is provided with a first electrically conductive portion, the second wiring substrate is provided with a second electrically conductive portion, the fixing member_ is electrically conductive to the first electrically conductive portion by fixing the first fixing portion to the first wiring substrate, the fixing member is electrically conductive to the second electrically conductive portion by fixing the second fixing portion to the second wiring substrate, the external connection terminal is electrically conductive to the fixing member by electrically connecting the fixing member to the external connection terminal, the housing is provided with a guide groove that receives the first wiring substrate to be inserted into the housing in a direction orthogonal to the facing direction, the external connection terminal is provided at a position on a deepest side in an insertion direction in which the first wiring substrate is inserted into the housing, and the first wiring substrate is inserted into the housing in the insertion direction to press the fixing member into contact with the external connection terminal.