See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: [ Ссылка ]
In this video we show you how to build a DIY motion tracking airsoft (or nerf gun) turret with a raspberry pi 3. The airsoft turret is autonomous so it moves and fires the gun when it detects motion. There is also an interactive mode so that you can control it manually from your keyboard. We used an airsoft gun for this project, but you can easily change modify this build to use a Nerf instead. This project is small, lightweight and entirely battery operated.
We created two separate operation modes: Interactive and Motion Detection. Interactive allows you to control the turret remotely and stream live video. Motion Detection uses openCV and computer vision to track moving targets in front of the camera.
Since this device fires projectiles, please use the necessary safety precautions while operating the turret. :)
Get a full parts list and written instructions on Hackster.io: [ Ссылка ]
Get the 3D printable parts files on our Patreon: [ Ссылка ]
USEFUL LINKS:
Get the code and the project instructions on our github page: [ Ссылка ]
Adafruit I2C setup guide: [ Ссылка ]
Adafruit stepper motor HAT: [ Ссылка ]
OpenCV 3 on a Raspberry Pi 3: [ Ссылка ]
Get our 3D printer: [ Ссылка ]
MATERIALS
1 x Raspberry Pi 3
Amazon Affiliate Link - [ Ссылка ]
1 x Electric airsoft gun
1 x Raspberry Pi compatible webcam (We used a Logitech C210)
1 x Stepper Motor HAT: [ Ссылка ]
2 x Stepper Motor NEMA 17 200 steps/rev: [ Ссылка ] or [ Ссылка ]
1 x Single Relay: [ Ссылка ]
1 x Step up converter: [ Ссылка ]
1 x Mobile cell phone battery: [ Ссылка ]
1x Female to female jumper wire kit: [ Ссылка ]
2 x Micro usb cables
2 x 90 degree metal brackets
10 x #8 1/2" screws
16 x #8 washers
8 x M3 screws
1 x 2' by 2' 1/4" MDF sheet
OTHER LINKS:
Subscribe to Hacker Shack: [ Ссылка ]
Follow Hacker Shack on Instagram:
[ Ссылка ]
Music by Joakim Karud [ Ссылка ]
*Disclaimer*
The methods shown in this video should be used
as a guide only. We do not endorse firing projectiles at live targets.
HACKER SHACK ACCEPTS NO RESPONSIBILITY FOR
ACCIDENTS OR INCIDENTS ARISING FROM INDIVIDUALS
UNDERTAKING ANY OF THE TASKS DESCRIBED. IN
PARTICULAR, IF UNSURE YOU SHOULD ALWAYS CONTACT
A QUALIFIED EXPERT BEFORE PROCEEDING.
![](https://s2.save4k.ru/pic/HoRPWUl_sF8/maxresdefault.jpg)