The invention discloses a multi-stage acceleration electromagnetic gun experimental facility based on STM32 control. The multi-stage acceleration electromagnetic gun experimental facility based on STM32 control is characterized by comprising an STM32F103ZET6 master control module, a
power module, a boosting module, a sensor module, a
speed measurement module, a
liquid crystal display module, a launching module, a shell initial position detection module and a
voltage detection module. According to the multi-stage acceleration electromagnetic gun experimental facility based on STM32 control, a multi-stage acceleration coil on a trajectory, and therefore, the number of acceleration stages can be chosen as needed; and meanwhile, because a
photoelectric sensor is installed on a
gun barrel to detect the position of a shell, a
signal is transmitted to a master control
chip, and then the master control
chip controls a
capacitor of a next stage to
discharge. According to the multi-stage acceleration electromagnetic gun experimental facility based on STM32 control, by adopting the structure, a user can choose the number of acceleration stages as needed through the STM32, the charging voltageof the capacitors can be controlled as needed as well, the
muzzle velocity and the firing range of the shell can be controlled, and the
muzzle velocity can be measured; and because of
OLED display, other data in experiments can be acquired at the same time as well, and
physics teaching experiments are convenient to carry out.