Hacker Shack
Published © GPL3+

Raspberry Pi Motion Tracking Gun Turret

A motion tracking airsoft or Nerf gun turret with autonomous and manual operation modes, controlled by a Raspberry Pi.

IntermediateFull instructions provided6 hours32,918
Raspberry Pi Motion Tracking Gun Turret

Things used in this project

Hardware components

Electric Airsoft of Nerf Gun
×1
Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Logitech C210 Webcam
×1
Adafruit TB6612 Motion Motor Control Shield Board
×1
NEMA 17 Stepper Motor, 200 Steps/Rev
×2
Single Relay
×1
Step Up Converter
×1
Portable Cell Phone Charger
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
90 Degree Metal Bracket
×2
#8 1/2" Countersink Screws
×10
#8 Washers
×16
M3 Screws
×8
2' by 2', 1/4" MDF sheet
×1
Solder
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hand Drill
Hand Saw or Jigsaw

Story

Read more

Custom parts and enclosures

Flanged Collar

A flanged collar with a notched 5 mm hole for attaching a 5 mm motor shaft to a flat surface.

Flanged Shaft

A shaft with a flange allowing it to be mounted onto a flat surface. The gun will be attached to the flange, while the shaft will allow it to rotate about a hole.

Code

Tracking-Turret

GitHub repository with python code and setup instructions

Credits

Hacker Shack

Hacker Shack

5 projects • 276 followers
Hacker Shack is a team of two engineers that make instructional DIY videos about robotics, software, and other cool tech related projects.

Comments