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. :)
Hacker House is supported by fans on Patreon. Help us make more projects by donating here: http://www.patreon.com/hackerhouse
*Note* we no longer sell these parts. In order to download the 3d printable files, visit our website: https://www.hackerhouse.site/parts.html
If you don't have a 3d printer, you should be able to print the parts on a local community printer or with an online service like Shapeways.
Get the code and the project instructions on our github page: https://github.com/HackerHouseYT/Tracking-Turret
Download the 3d printable files on our Hackaday.io project: https://hackaday.io/project/18665-motion-tracking-airsoft-turret
Adafruit I2C setup guide: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
Adafruit stepper motor HAT: https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library
OpenCV 3 on a Raspberry Pi 3: http://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/
1 x Raspberry Pi 3: https://www.arrow.com/en/products/raspberrypi3/raspberry-pi-foundation?ssaid=1396099&utm_source=sas&SSAID=1396099&utm_source=sas
1 x Electric airsoft gun
1 x Raspberry Pi compatible webcam (We used a Logitech C210)
1 x Stepper Motor HAT: https://www.arrow.com/en/products/2348/adafruit-industries?ssaid=1396099&utm_source=sas&SSAID=1396099&utm_source=sas
2 x Stepper Motor NEMA 17 200 steps/rev: https://www.adafruit.com/products/324 or http://www.ebay.com/itm/US-Ship-Nema-17-Stepper-Motor-37oz-in-12V-0-4A-3D-Pinter-Reprap-Arduino-DIY-CNC-/331601550532?hash=item4d34fe1cc4:g:9-QAAOSwjVVVmyt8
1 x Single Relay: https://www.amazon.com/gp/product/B00VRUAHLE/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1
1 x Step up converter: https://www.amazon.com/gp/product/B011EBSKK0/ref=oh_aui_detailpage_o07_s00?ie=UTF8&psc=1
1 x Mobile cell phone battery: http://www.ebay.com/itm/12000mAh-Dual-USB-Portable-External-Battery-Charger-Power-Bank-For-Cell-Phone-/161852372666?hash=item25af2736ba:g:l2IAAOSwM0FXIQXT
1x Female to female jumper wire kit: https://www.adafruit.com/products/826
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
Subscribe to Hacker House: https://www.youtube.com/channel/UCEcNXmr7DYq1XxpWHSxaN0w?sub_confirmation=1
Follow Hacker House on Instagram:
Music by Joakim Karud http://soundcloud.com/joakimkarud
The methods shown in this video should be used
as a guide only. We do not endorse firing projectiles at live targets.
HACKER HOUSE 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.