How to Make a Raspberry Pi Motion Tracking Airsoft / Nerf Turret

Ғылым және технология

See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: www.hackster.io/hackershack/r...
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: www.hackster.io/hackershack/r...
Get the 3D printable parts files on our Patreon: / tracking-turret-37733071
USEFUL LINKS:
Get the code and the project instructions on our github page: github.com/HackerHouseOfficia...
Adafruit I2C setup guide: learn.adafruit.com/adafruits-...
Adafruit stepper motor HAT: github.com/adafruit/Adafruit-...
OpenCV 3 on a Raspberry Pi 3: www.pyimagesearch.com/2016/04/...
Get our 3D printer: robo3d.myshopify.com?rfsn=1004615.c5abe
MATERIALS
1 x Raspberry Pi 3
Amazon Affiliate Link - goo.gl/oVJcxK
1 x Electric airsoft gun
1 x Raspberry Pi compatible webcam (We used a Logitech C210)
1 x Stepper Motor HAT: www.arrow.com/en/products/234...
2 x Stepper Motor NEMA 17 200 steps/rev: www.adafruit.com/products/324 or www.ebay.com/itm/US-Ship-Nema-...
1 x Single Relay: www.amazon.com/gp/product/B00...
1 x Step up converter: www.amazon.com/gp/product/B01...
1 x Mobile cell phone battery: www.ebay.com/itm/12000mAh-Dual...
1x Female to female jumper wire kit: 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
OTHER LINKS:
Subscribe to Hacker Shack: / @hackershack
Follow Hacker Shack on Instagram:
hackershack...
Music by Joakim Karud / joakimkarud
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.

Пікірлер: 264

  • @rdoetjes
    @rdoetjes4 жыл бұрын

    Here’s a pro-tip guys. If you need two of the same, cut them at the same time by stacking two pieces of MDF on top of each other. That also makes finishing them easier, because you sand and vile the same amount and through holes align perfectly.

  • @jerowns
    @jerowns3 жыл бұрын

    Thank you for this!! I plan on making a Glados/Jarvis like ceiling mounted following camera to start workshop livestreams. This video is definitely going to be helpful

  • @RayneD17
    @RayneD177 жыл бұрын

    Great projects! Keep 'em coming. Subscribed.

  • @braydenbailey5451
    @braydenbailey54513 жыл бұрын

    Sentry goin’ up!

  • @siik-ghostface

    @siik-ghostface

    3 жыл бұрын

    TF2 😎

  • @bouncydachon

    @bouncydachon

    3 жыл бұрын

    Engineer gaming

  • @Nazeeeem_

    @Nazeeeem_

    8 ай бұрын

    Engineer gaming

  • @jacquacooper
    @jacquacooper3 жыл бұрын

    Thanks for doing this cool project.

  • @techuila
    @techuila4 жыл бұрын

    Tiny adjustment: just add an airsoft laser on one of the rails and on video it will show exactly where the barrel is pointing. Bonus points: add an IR laser so only the camera can see the laser but not the people being shot!

  • @extrem2497
    @extrem24977 жыл бұрын

    Nice detailed video!

  • @roundthetrack7680
    @roundthetrack7680 Жыл бұрын

    It’s taken awhile for me to see this….totally awesome project to do with the family

  • @yourmumisacrumpet4882
    @yourmumisacrumpet48823 жыл бұрын

    great video dude maybe ill make something with this in the future

  • @jordanbowling2246
    @jordanbowling22467 жыл бұрын

    Thanks guys! This is awesome. A very cool channel too.

  • @mxcollin95
    @mxcollin954 жыл бұрын

    This project IS AWESOME!!! 🤙

  • @muhammadsameer883
    @muhammadsameer8836 жыл бұрын

    awesome project bro

  • @agwheeler2000
    @agwheeler20002 жыл бұрын

    I want to create a spotlight that will follow any trespassers who wander down our driveway at night looking to break into our car. This is perfect solution. Thank you.

  • @rasmusljungdahl3238
    @rasmusljungdahl32383 жыл бұрын

    Gonna use this to make a war machine (ish) shoulder turret! thank you!

  • @plongkie224
    @plongkie2247 жыл бұрын

    Hi Hacker House! Like your long videos. Very informative and good for beginners.. I just want to ask what software did you use making the model?

  • @SciHeartJourney
    @SciHeartJourney3 жыл бұрын

    Excellent project. You should make a product to put this on security cameras.

  • @Daniel-pd1bz
    @Daniel-pd1bz7 жыл бұрын

    What do i have to study, to learn things like this?:D Thanks! Great Videos!

  • @MrSzymon092
    @MrSzymon0927 жыл бұрын

    Hi, great project! Which program did you use to make a 3d project of it?

  • @asadmahmood5234
    @asadmahmood52344 жыл бұрын

    can you please upload to shoot a target by image processing (face detection) and gesture control gun

  • @ravenweikel6423
    @ravenweikel64234 жыл бұрын

    imagine winning an airsoft round by setting this up and drinking beer

  • @Gallardo6669
    @Gallardo66695 жыл бұрын

    I really want to learn anf build all this. But i get totally lost here, having just some arduino experience. It would be sooo nice if there would,be a long video out there starting for beginners to make me/us confident that it will work and that its worth to buy all the hardware!

  • @arnoldjiujitsufuckboi6376
    @arnoldjiujitsufuckboi63765 жыл бұрын

    1:06 am Brain:dude get some rest bro Me: nah I think I’ll design an airsoft killstreak

  • @Kevinwatches

    @Kevinwatches

    4 жыл бұрын

    1:46am right now🤔

  • @chrisar100

    @chrisar100

    4 жыл бұрын

    4:16 AM, y'all are lacking

  • @brandonclayton5479
    @brandonclayton54794 жыл бұрын

    Does the camera have to be connected to the computer as well as the raspberry pi at the same time to do the interactive mode? Is it possible to load that motion tracking code onto the raspberry Pi and running independent of a computer?

  • @shadowboxing1729
    @shadowboxing17295 жыл бұрын

    This is what I wanted to Make! 👍but for my outside camera, which doesn't have Motion Auto tracking. I plan on building a frame that holds the camera, and moves when the sensor picks up movement. There's a part I can't see with the Camera, I don't want to install another camera, this will be another alternative, and its cool!

  • @mRendyIrawan
    @mRendyIrawan4 жыл бұрын

    Do you think it would be possible to use this tracking turret program to make a motion tracking spot light that I can put in my backyard?

  • @mattfluty8677
    @mattfluty86773 жыл бұрын

    I wanna build a beefed up rover with a pepper ball gun to keep hippies off my lawn 😂

  • @cameronackerman4396
    @cameronackerman43967 жыл бұрын

    what program are you using for the mac to windows converter.

  • @justinyoung5180
    @justinyoung51804 жыл бұрын

    If I were to take out the turret and replace it with a flashlight/laser, would the code still work or would I have to change the code? It is mostly the camera tracking I am hoping will still work.

  • @dannys2290
    @dannys22906 жыл бұрын

    one of my goals is to be able hunt my back yard while at work...with a "lazer" pointer of course :)

  • @sexyduce5
    @sexyduce55 ай бұрын

    Bro, this is legit!

  • @seaha3750
    @seaha37506 жыл бұрын

    Hey i have a Problem with the live video preview everything from the installation works fine and when i start turret.py it also works but then it asks me if i want an live video preview and when i hit yes an error occured. Could somebody please help me i really new to Raspberry pi oh and i am trying to use the original raspicam. are there some changes to make

  • @Trmmaryland
    @Trmmaryland3 жыл бұрын

    very cool

  • @amazingsciencebros1629
    @amazingsciencebros16294 жыл бұрын

    This is awesome! Thank you for the inspiration and instructions. We are trying to build our own, but with a big Nerf gun and trying to use Scratch 2 instead of Python (not sure how we will do the facial recognition, but it’s easier for us kids;) We got it to fire the gun and a laser pointer so far ... take a look and give us some tips:)

  • @cryptoworldgames

    @cryptoworldgames

    Жыл бұрын

    i want to buy a turret already made, i'll put my own airsoft, you want to build and sell one?

  • @khalatmesto4180
    @khalatmesto41806 жыл бұрын

    great , but which program of design do you use

  • @MyNotSoHumbleOpinion
    @MyNotSoHumbleOpinion5 жыл бұрын

    How can I get it work with picamera? With a usb camera work very well, but i wanna use with the infrared picamera

  • @guestacc6903
    @guestacc69036 жыл бұрын

    What airsoft replica were you using, could you possibly give me a link?

  • @silentwolf9923
    @silentwolf99233 жыл бұрын

    I can't wait to do this to my airsoft gun

  • @luisneuner8506
    @luisneuner85064 жыл бұрын

    nice pretty good build how long did it take to build that

  • @jeremytheimer7443
    @jeremytheimer74433 жыл бұрын

    Cool, could I make a bigger version and use this for a telescope object tracker.

  • @jacquesadendorff1175
    @jacquesadendorff11756 жыл бұрын

    Does the code also work if you want to use servos or is the code just for stepper motors??

  • @Moai_Manson
    @Moai_Manson6 ай бұрын

    Do you know if it would be hard to flip it upside down and make it ceiling mounted? (School project with a nerf gun)

  • @siik-ghostface
    @siik-ghostface3 жыл бұрын

    Could make your turret shoot ballistic rubber bullets and smarter where it targets and shoots certain people (burglars for example and not you, your family nor friends), so it only recognizes burglars, and other enemies. Like maybe find and download images of recent criminals then upload it to your thing and it will remember and recognize them. It's Rotating speed could be adjusted to be faster.

  • @shrinkz804
    @shrinkz8044 жыл бұрын

    Can we use servos instead of stepper

  • @hastinbagewadi1863
    @hastinbagewadi18635 жыл бұрын

    what should i do to get this working with python3 and opencv4??

  • @tactusxii
    @tactusxii Жыл бұрын

    Raspberry pie seems to lag For object tracking. I'm trying to speed the processing time so I can better track moving targets.

  • @herantd
    @herantd7 жыл бұрын

    hope you use arduino for your doorlock project, pi might just be overkill and it will be just pain in the ass if i would like to make one after :P

  • @dgkway
    @dgkway3 жыл бұрын

    Does this system need connection to your pc in its autonomous mode?

  • @gabaca1210
    @gabaca12104 жыл бұрын

    Do you have to be hooked up to the monitor all the time?

  • @seaha3750
    @seaha37506 жыл бұрын

    Hey nice project. But can you tell me how to use 28BYJ-48 what have i to do i am a real noobie on raspi

  • @pushpanpavurala1763
    @pushpanpavurala17635 жыл бұрын

    Hey hi great video. Is it possible to make it with servo motors

  • @vipinkp1771
    @vipinkp17715 жыл бұрын

    Is it supported in raspberry stretch??

  • @muhammadauria5004
    @muhammadauria50046 жыл бұрын

    Why we can't mount webcam on gun in motion detection mode?

  • @DARK11611
    @DARK116113 жыл бұрын

    Can you make laser turet to kill fly.. might . Maybe using CNC laser

  • @treverbelmont8393
    @treverbelmont83933 жыл бұрын

    Do you need to use a rasberi pi to do this could you use an autduino instead

  • @MacroAggressor
    @MacroAggressor3 жыл бұрын

    Is the code up somewhere else? The link in the description is broken.

  • @TOP1_ENG
    @TOP1_ENG3 жыл бұрын

    When i run this command "workon turrent" say "command not found" . how i can solve it. Thanks.

  • @niborex133
    @niborex1336 жыл бұрын

    Sentry goin up

  • @atvar8
    @atvar87 жыл бұрын

    how well does this track and lead for faster moving targets?

  • @RubberBoss

    @RubberBoss

    6 жыл бұрын

    atvar8 even though I didn't make it I'm sure it doesn't track fast moving objects, python programming language has no such capabilities

  • @appa609

    @appa609

    3 жыл бұрын

    @@RubberBoss It's not a python issue it's just a matter of implementation. You'd need ranging to get good lead info.

  • @Spartan-Of-Truth
    @Spartan-Of-Truth3 жыл бұрын

    I HAVE to make one.

  • @danrandom9005
    @danrandom90056 жыл бұрын

    does it work upside down i wanny mount it under my roof

  • @simasfm7997
    @simasfm79974 жыл бұрын

    how long distance can it be ?

  • @ravenweikel6423
    @ravenweikel64234 жыл бұрын

    sentry goin up

  • @shared-knowledge
    @shared-knowledge4 жыл бұрын

    One basic question about drawing a circle with a cable and a pen.. Why didn't you use a compass for this ? i know some people like to do things on hard mode but a compass is not what you would call a expensive item to get.

  • @hackershack

    @hackershack

    4 жыл бұрын

    It was too large for our compass

  • @BroskySam9716
    @BroskySam97163 жыл бұрын

    NEEDA SENTRY HERE!

  • @bonnierussell7824
    @bonnierussell78243 жыл бұрын

    I wonder if this would keep the cats off my kitchen counter.

  • @GrimGearheart
    @GrimGearheart5 жыл бұрын

    I need to make something like this, but much smaller...something that can be shoulder mounted, like a predator shoulder cannon. Hm...

  • @AntTheFanOfMurderDrones.
    @AntTheFanOfMurderDrones.4 ай бұрын

    Imagine taking this to the airsoft game.

  • @KaijuMaster2099
    @KaijuMaster20993 жыл бұрын

    POOTIS SPENCER HERE!

  • @johnjackson9767
    @johnjackson97673 жыл бұрын

    Looks like I'll be cancelling my security system subscription tomorrow.

  • @defektruke
    @defektruke4 жыл бұрын

    can you add laser to kill mosquitoes?

  • @subramanyanaik123
    @subramanyanaik1236 жыл бұрын

    where we get thise all items

  • @satyapratapsingh8915
    @satyapratapsingh89156 жыл бұрын

    Can we do it with Arduino

  • @oliviergoggins
    @oliviergoggins5 жыл бұрын

    Total price?

  • @liamalon923
    @liamalon923 Жыл бұрын

    need a link to the gun, anyone can help me? even anything similar, i need to shoot something when i want using code

  • @artnaz93
    @artnaz937 ай бұрын

    Where can I buy something like this? Can I pay you guys to build a custom one based on the airsoft gun I want to use?

  • @nikitaf93real
    @nikitaf93realАй бұрын

    "Take for instance this heavy caliber tripod mounted lil' old number designed by me, built by me, and you best hope... Not pointed at you." -Dell Conagher

  • @riaank.4585
    @riaank.4585Ай бұрын

    Thanks good video and instructions, but do you perhaps have an updated github-repository, since the provided one doesn't work anymore? :-)

  • @murilo0825
    @murilo08259 ай бұрын

    Im gonna install one of these on the roof of my house

  • @frostofice8278
    @frostofice82783 жыл бұрын

    I immiediately had an idea for a cosplay that could be done of predator from the movies. To do so youd need a shell resembling a futuristic cannon. Likely to shorten the legs just slightly. The rotating platforms diamater reduced just slightly and hook the bottom (non moving disc) to a door hinge to give it motion and an electric piston. To let it go from an neutral to active position (on back to on shoulder and ready to fire). Hook up the conyrols to a small device if possible such as a phone and set phone in wrost mounted bracer similar to predators wrist weapon. Youll be able to look as though your predator activating his blaster via wrist controller device. Highly reccomended additive is tracer drum or mag and tracer pellets for add glowing green effect and a 3 lasers connected to left,right and bottom of barrel to give it that signature tri beam aiming system. Please feel free to let me know what yall think of this idea

  • @heimdrock

    @heimdrock

    3 жыл бұрын

    Some crazy people have already done that, I do not remember the name of the channel, but you can search "real predator sentry" on youtube.

  • @FishDish159
    @FishDish1593 жыл бұрын

    now I just want to mount a air soft LMG to this.

  • @rjust2297
    @rjust22978 ай бұрын

    I would hate to think I was a badass enough to be on the other end of that

  • @azaanali1668
    @azaanali16687 жыл бұрын

    can we replace motion detection to color detection in this project

  • @rizeadhikari5073

    @rizeadhikari5073

    6 жыл бұрын

    sure

  • @sornamusicalcover
    @sornamusicalcover5 жыл бұрын

    Can we be able to do this project in arduino uno?

  • @thornclawofwarriors

    @thornclawofwarriors

    4 жыл бұрын

    Not with just a Arduino by itself. You need something more powerful to manage the camera

  • @tuffyman3067
    @tuffyman30673 жыл бұрын

    Is possible to specific the object to track and fire?

  • @cybergnetwork588

    @cybergnetwork588

    3 жыл бұрын

    Probably if implementing with Deepstack (Artificial Intelligence). It is integrated to Blue Iris surveillance software. You would be able to include or exclude human, cat, dog, bird, car bus, etc.

  • @innateswing6607
    @innateswing6607Ай бұрын

    Could I use a Arduino?

  • @hamzaarain4238
    @hamzaarain42384 жыл бұрын

    there is no such repository for this project

  • @bommeljoschenjoyer
    @bommeljoschenjoyer3 жыл бұрын

    I think ill build this

  • @willdwyer6782
    @willdwyer67824 жыл бұрын

    That's not a dust mask. It's a respirator. Dust masks are made out of paper and elastic with a metal strip that you can bend to fit across your nose.

  • @projectmanagement2356
    @projectmanagement23565 жыл бұрын

    Dude 100🍺. Using a ChuKuNu would have been nice though.

  • @godofgasmask1045
    @godofgasmask10452 жыл бұрын

    Imagine being a cop , and someone call the police for a complaint if someone making an airsoft gun , and he put it on his roof , you get all your cop car and you immediately get blasted by it

  • @mubta0082
    @mubta00825 жыл бұрын

    Sir,Can you tell the budget of this project?

  • @SAM_Vertigo1

    @SAM_Vertigo1

    4 жыл бұрын

    Mubtasim Mim Sorry, I'm late. It's more than 200$ as you'll need Raspberry Pi (≈100$) and an airsoft gun (≈≥100$).

  • @bommeljoschenjoyer

    @bommeljoschenjoyer

    3 жыл бұрын

    Raspberry PI 40€ Airsoft mini MP5 20-40€ depends on quality and motors 35€ for 3 I think

  • @arcarcarc376
    @arcarcarc3763 жыл бұрын

    Im new, i want to learn raspberry or arduino BUT I MUST TO KNOW: There is a way to move more than 1 servo at time?? I see a lot of videos over ytb but all seems to works with 1 servo at time

  • @flyingzambie1201
    @flyingzambie12017 жыл бұрын

    better than linus's.

  • @billwilliamson7102
    @billwilliamson71024 жыл бұрын

    Level 1 sentry in a nutshell

  • @teamkiller5269
    @teamkiller52697 жыл бұрын

    Do you sell this ?

  • @orkanozgur3749
    @orkanozgur37497 жыл бұрын

    Linus made one too !!

  • @hayd7371

    @hayd7371

    7 жыл бұрын

    the lonly light bulb linus is an idiot

  • @quinncarter6543

    @quinncarter6543

    7 жыл бұрын

    *too

  • @orkanozgur3749

    @orkanozgur3749

    7 жыл бұрын

    BeardedAlien what ?

  • @quinncarter6543

    @quinncarter6543

    7 жыл бұрын

    You spelled it wrong.

  • @phillipmcintosh6489

    @phillipmcintosh6489

    6 жыл бұрын

    Well seeing as we are correcting people, it should be wrongly not wrong.

  • @SpikeMcCann
    @SpikeMcCann2 жыл бұрын

    How would I get an electric nerf gun working for this?

  • @Maloshrazvan
    @Maloshrazvan5 жыл бұрын

    Amazing, thorough, and precise explanation :-). the code link is broken :-(. any chace to get it? *Edit* - NM. found it on the Hacker.io page :-)) THNX!!

  • @bigrigtigs6259

    @bigrigtigs6259

    4 жыл бұрын

    how did you do this ecactly

  • @minnesotastatesirens2732
    @minnesotastatesirens27322 жыл бұрын

    Now to Make a mini Phalanx Cwis…

  • @NoKapMan
    @NoKapMan9 ай бұрын

    making one of these to keep my cat off the counter

Келесі