2024 Electromagnetic Auto-Aiming Toy Shooter GitHub

GitHubGitHub Link: https://github.com/MrPumpkinsss/Electromagnetic-Auto-Aim-Shooter

This project won the EIE Microcontroller Application Design Contest (2023-24). It combines Raspberry Pi and Arduino. Raspberry Pi is responsible for image recognition and transmits target coordinate information to Arduino via I2C. Arduino adjusts the pan-tilt with PID control to aim at the target.

Regarding the electromagnetic gun, the design of its circuit is the most challenging part. The capacitor must first be charged to approximately 250V in about ten seconds. The Arduino trigger signal is controlled by a mobile phone Bluetooth signal to activate the thyristor, allowing a current of up to tens of amperes to flow through the coil. This generates a strong magnetic field that propels the magnet out of the barrel at high speed.

In order to accelerate the magnet further, this project uses a dual-stage coil design. By precisely controlling the time difference between the coil activations, the magnet is accelerated more efficiently compared to single-stage designs.


Videos

Images

Electromagnetic shooter setup
Dual-stage coil mechanism
wx_camera_1706185400509
wx_camera_1706185409795
wx_camera_1706340126284
QQ20250321-004542
mmexport1707388106889
mmexport1707388108881
IMG20240527143351
IMG20240527143343
IMG20240527143343