Based on particle swarm optimization (PSO), this paper studies the mechatronics design method of automobile inspection equipment. Firstly, the basic theoretical knowledge of CANSYB and its operation principle are introduced. Secondly, the PSO algorithm is analyzed, improved and verified for applicability, and the effective parameters are selected as test variables and combined with the objective function to build a complete system structure model. Finally, the real-time dynamic performance of the vehicle monitoring equipment under the simulated experimental environment is realized on the Matlab platform using MATLAB software, so as to obtain the required data. The test results show that the improved PSO algorithm can effectively save the material cost, and the stator copper consumption of small three-phase asynchronous motor can be saved by 8% on average; the silicon steel consumption is saved by 3% on average. At the same time, the improved PSO algorithm not only reduces the number of iterations in the optimization process, but also has a strong distributed ability. At the same time, the random search nature of the PSO algorithm makes the function not easy to fall into local optimization, so as to ensure that the best optimization effect can be achieved.