DIY Autonomous Nerf Turret

Linus Tech Tips ·Linus Tech Tips ·2017-05-06 · 1,467 words · ~7 min read
Floatplane YouTube

Transcript

JSON SRT VTT 121
0:01 so for those of you who follow the lus tech tips Twitter and Instagram
0:06 um you'll already be aware that there
0:09 was recently a crisis at our
0:13 headquarters um sorry sorry still a
0:16 little difficult for me to talk about this but I became aware after returning
0:22 from a brief absence that someone had been at my desk touching my things
0:31 sorry excuse me
0:35 so naturally at that point there were two
0:40 Avenues available to me the first would
0:43 be calm measured discourse with my
0:48 trusted employees about the importance of respecting one's personal space and
0:54 possessions while the second would be to
0:57 over engineer some manner of mechanical
1:00 deterrent that would give any Interlopers a much needed Taste of
1:06 justice so in the end I
1:10 decided well let's just say this isn't a
1:13 video detailing how to host a discussion about office
1:26 protocol Mast drop is currently featuring their exclusive case 7xx red
1:31 headphones built by AKG learn more and buy one today at the link in the video
1:35 description meet the enforcer out of the box the elite strike
1:42 Rhino fire is a fully automatic fixed
1:45 Point anti-personnel Nerf gun with a 2.8
1:48 Dart per second rate of fire an arc range of up to 81 ft and a 50 Dart
1:54 ammunition drum capacity it's a beast in
1:57 its own right but it only works when I'm
2:01 around to operate it which means I needed to turn this Hefty foam Blaster
2:06 into a fully automated motion detecting
2:10 stationary Sentry turret so to accomplish this we'll need the following
2:15 three servos an Arduino a webcam and a
2:19 laptop to coordinate it all not to mention some quick rewiring and just a
2:24 touch of fine woodworking now in much the same way
2:29 that you can't make an omelet without breaking a couple of eggs you can't
2:32 modify a Nerf gun without first voiding the crap out of the warranty so step one
2:37 then is to carefully mind you these things are over a hundred bucks
2:42 disassemble the Rhino fire our main objective here is to access the internal
2:47 wiring but the lighter our gun is the
2:50 easier it will be for our servos to turn it and the aptly named Rhino has a
2:56 little more junk in the trunk than we'd like out of the box which which means
3:00 we'll want to remove our bulky trigger assembly not to mention the six D Cel
3:05 batteries that also have got to go once
3:09 the gun is in pieces this is also a great time to give it a quick makeover
3:14 doing it up right involves laboriously sanding off all the logos then taping
3:19 and painting in layers etc etc etc but that's literally as interesting as
3:24 watching paint dry so we're going to skip over that with some video Magic
3:30 ah much better so as you can see we've
3:33 removed some excess weight at the back pulled out the battery pack and isolated
3:38 the internal switch that turns on the motor next we need to assemble the body
3:42 of the turret that this will sit on this
3:46 bottom box is where we install the webcam and laptop so it needs to be nice
3:51 and roomy our first Servo goes inside
3:54 the top of the box and the gun bracket is mounted on top which allows rotation
3:59 along the x-axis we want to keep the load on the servos as light as possible
4:05 especially when at rest which means keeping the weight off of the moving
4:09 components themselves now our first plan
4:13 was to Simply place this ring of ball bearings between the box and the gun
4:17 bracket but during the prototyping stage
4:20 we found that to be insufficient the wood was just too rough and the bearings
4:25 were too small for this to be an effective solution so the way we Sol
4:30 that then was to layer the Ring of ball
4:33 bearings between some discarded CDs thanks AOL that we attached to the wood
4:39 the CDs are the perfect size though some minor modification was necessary to make
4:44 room for the servo and they're smooth enough that the bearings were able to
4:48 roll properly greatly reducing the strain on our servos now that we had
4:53 turn we needed tilt good news though the
4:57 Rhino comes with a tripod mount already ready that is located close to Center
5:01 Mass so we gently modified this to allow
5:05 a dowel to be inserted the dowel fits into two ball bearings that are housed
5:10 in wood panels on either side allowing for ease of movement since the gun isn't
5:15 perfectly balanced we added some small weights until it required very little
5:19 effort to tilt it up and down now our
5:23 Servo installed at the end of the dowel can tilt the gun more quickly
5:27 drastically improving the ability of our s entry to track its Target so with the
5:31 wood frame built we next mounted the remaining servos the Arduino and our
5:37 battery packs now while our initial plan
5:40 was to wire the internal motor of the Rhino directly to the Arduino in the end
5:45 we decided to go with a third Servo and a 3D printed prong controlling a
5:50 mechanical switch then with all of that in place we just needed to neatly wire
5:55 it all together then hook it up to the laptop and webcam in the base and and
5:59 run the software that we downloaded from Project Sentry gun. Rudolf Labs.com a
6:05 super awesome open-source Sentry project that you should totally check out by the
6:09 way now I'll take a moment to give you guys a quick Pro tip when you set out to
6:13 do a wiring job like this no matter how small the project is or how simple you
6:18 initially assume it will be pick up at least two different colors of wire red
6:22 and black for positive and negative are pretty standard don't just get one color
6:28 because you're confident that you can keep keep everything straight and you
6:31 think green is pretty you will end up 4 hours deep into the project surrounded
6:35 by hastily marked wires from five different Motors and two different batteries in a hopeless tangle deeply
6:39 confused and full of regret so so much
6:43 regret all right let's get back on topic before our final test we've got one more
6:47 housekeeping item our final job looks a little messy so uh hey can we get some
6:52 of that video magic going on here I guess we're just going to have to
6:57 embrace the whole junkyard Chic
7:00 aesthetic thing testing
7:08 time oh my
7:13 God oh my God success I can now feel comfortable
7:20 leaving the office knowing that my tools pens and prawns will rest
7:26 unmolested of course for the majority of the time when I'm here I don't actually
7:31 want this thing hovering behind me so I needed to find a way for it to pull
7:35 double duty fortunately with the help of a little open- Source facial recognition
7:40 software it can be easily repurposed as an employee morale
7:45 booster now that's what I call a motivational
7:53 tool satisfaction 100%
7:56 guaranteed nuts nuts we 100% % sure
7:59 you'll love it it's well packaged I'll give it
8:04 that so nuts.com is a familyowned and
8:08 operated company that has been restocking healthy pantries for what was
8:12 it since 1929 they have more than 3,000 products
8:17 not all of which are nuts so we got some cashews chocolate covered
8:22 pretzels can you believe the brand expected me to make it all the way
8:26 through this without making any jokes
8:29 about eating nuts so in a nutshell nuts.com has lots of hard-to find items
8:34 including gluten-free and organic ones they have 100% satisfaction guarantee
8:39 and if you check out the link in the description you can get four free gifts
8:42 in a curated mini shop with your first purchase of $25 or more so go check them
8:48 out over at nuts.com thanks for watching
8:52 guys if this video sucked you know what to do but if it was awesome get subscribed hit that like button or check
8:56 out the link to where to buy the stuff we featured at Amazon in the video
9:00 description also linked in the description is our merch store which has
9:03 cool shirts like this one and our community Forum which you should totally join now that you're done doing all that
9:07 stuff you're probably wondering what to watch next so click that little button
9:10 in the top right corner to check out the latest video over on Channel Super Fun