The printed circuit board (PCB) is the core control unit of electromechanical equipment. In order to determine the influence of the coupling vibration caused by vehicle–road interaction on the PCB reliability of roadside electromechanical equipment, first, the dynamic load of the vehicle tire is solved by establishing the dynamic model of a vehicle road. Then, the acceleration response data generated by road vibration are obtained by solving the road finite element model. Finally, the power density spectrum of the acceleration response is taken as input excitation, and the deformation response of the PCB under vehicle–road coupling vibration is analyzed. The experimental results show that when the vehicle is driving close to the roadside, the vibration caused by vehicle–road coupling will lead to a large deformation of the PCB, and the deformation value reaches 0.170 mm, which can cause structural damage to the PCB. This shows that the vehicle–road coupling vibration can affect the reliability of the roadside electromechanical equipment; thus, the optimal design of the PCB layout is created. After optimization, the first-order modal frequency of the PCB is increase by 5.4%, which reduces the risk of the components breaking away from the PCB substrate.