Abstract:In order to meet the needs of experimental teaching and electronic enthusiasts, this paper proposes a experiment device of electromagnetic curved gun and the realization method. First, the analysis and calculation basis of the overall function and launching mechanism of the electromagnetic curved gun experimental device based on the single-chip microcomputer are given. Then the hardware realization circuit and control method of the electromagnetic gun subsystem are designed. The OPENMV camera module is used to identify the target direction, the TFmini laser sensor is used to measure the distance of the target, and the CDS5500 bus-type closed-loop control servo is selected to precisely control the horizontal direction and elevation angle. And a piecewise quadratic polynomial to fit the quadratic function relationship between the elevation angle and the firing distance to achieve accurate launch are designed. The device has several modes such as launching to a fixed location, launching from a custom location, automatic aiming mode, and magazine loading. After testing, when the shooting range is set to 240cm, the average shooting error of the device is 1.125cm. Finally, the feasibility and effectiveness of this experimental device are proved through experimental tests.