{"video_id":"Xz5ZvW98HRs","title":"DIY Autonomous Nerf Turret","channel":"Linus Tech Tips","show":"Linus Tech Tips","published_at":"2017-05-06T14:53:29Z","duration_s":560,"segments":[{"start_s":1.0,"end_s":9.8,"text":"so for those of you who follow the lus tech tips Twitter and Instagram","speaker":null,"is_sponsor":0},{"start_s":6.64,"end_s":13.44,"text":"um you'll already be aware that there","speaker":null,"is_sponsor":0},{"start_s":9.8,"end_s":16.68,"text":"was recently a crisis at our","speaker":null,"is_sponsor":0},{"start_s":13.44,"end_s":18.24,"text":"headquarters um sorry sorry still a","speaker":null,"is_sponsor":0},{"start_s":16.68,"end_s":25.24,"text":"little difficult for me to talk about this but I became aware after returning","speaker":null,"is_sponsor":0},{"start_s":22.56,"end_s":31.76,"text":"from a brief absence that someone had been at my desk touching my things","speaker":null,"is_sponsor":0},{"start_s":31.92,"end_s":36.96,"text":"sorry excuse me","speaker":null,"is_sponsor":0},{"start_s":35.399,"end_s":43.879,"text":"so naturally at that point there were two","speaker":null,"is_sponsor":0},{"start_s":40.0,"end_s":48.039,"text":"Avenues available to me the first would","speaker":null,"is_sponsor":0},{"start_s":43.879,"end_s":50.68,"text":"be calm measured discourse with my","speaker":null,"is_sponsor":0},{"start_s":48.039,"end_s":57.96,"text":"trusted employees about the importance of respecting one's personal space and","speaker":null,"is_sponsor":0},{"start_s":54.719,"end_s":60.96,"text":"possessions while the second would be to","speaker":null,"is_sponsor":0},{"start_s":57.96,"end_s":62.84,"text":"over engineer some manner of mechanical","speaker":null,"is_sponsor":0},{"start_s":60.96,"end_s":70.159,"text":"deterrent that would give any Interlopers a much needed Taste of","speaker":null,"is_sponsor":0},{"start_s":66.96,"end_s":73.32,"text":"justice so in the end I","speaker":null,"is_sponsor":0},{"start_s":70.159,"end_s":75.28,"text":"decided well let's just say this isn't a","speaker":null,"is_sponsor":0},{"start_s":73.32,"end_s":77.96,"text":"video detailing how to host a discussion about office","speaker":null,"is_sponsor":0},{"start_s":86.2,"end_s":94.04,"text":"protocol Mast drop is currently featuring their exclusive case 7xx red","speaker":null,"is_sponsor":0},{"start_s":91.119,"end_s":98.6,"text":"headphones built by AKG learn more and buy one today at the link in the video","speaker":null,"is_sponsor":0},{"start_s":95.96,"end_s":105.119,"text":"description meet the enforcer out of the box the elite strike","speaker":null,"is_sponsor":0},{"start_s":102.0,"end_s":108.32,"text":"Rhino fire is a fully automatic fixed","speaker":null,"is_sponsor":0},{"start_s":105.119,"end_s":110.64,"text":"Point anti-personnel Nerf gun with a 2.8","speaker":null,"is_sponsor":0},{"start_s":108.32,"end_s":117.52,"text":"Dart per second rate of fire an arc range of up to 81 ft and a 50 Dart","speaker":null,"is_sponsor":0},{"start_s":114.159,"end_s":121.28,"text":"ammunition drum capacity it's a beast in","speaker":null,"is_sponsor":0},{"start_s":117.52,"end_s":123.6,"text":"its own right but it only works when I'm","speaker":null,"is_sponsor":0},{"start_s":121.28,"end_s":130.44,"text":"around to operate it which means I needed to turn this Hefty foam Blaster","speaker":null,"is_sponsor":0},{"start_s":126.759,"end_s":133.2,"text":"into a fully automated motion detecting","speaker":null,"is_sponsor":0},{"start_s":130.44,"end_s":139.36,"text":"stationary Sentry turret so to accomplish this we'll need the following","speaker":null,"is_sponsor":0},{"start_s":135.44,"end_s":141.64,"text":"three servos an Arduino a webcam and a","speaker":null,"is_sponsor":0},{"start_s":139.36,"end_s":146.599,"text":"laptop to coordinate it all not to mention some quick rewiring and just a","speaker":null,"is_sponsor":0},{"start_s":144.2,"end_s":150.72,"text":"touch of fine woodworking now in much the same way","speaker":null,"is_sponsor":0},{"start_s":149.08,"end_s":155.16,"text":"that you can't make an omelet without breaking a couple of eggs you can't","speaker":null,"is_sponsor":0},{"start_s":152.84,"end_s":160.2,"text":"modify a Nerf gun without first voiding the crap out of the warranty so step one","speaker":null,"is_sponsor":0},{"start_s":157.68,"end_s":164.84,"text":"then is to carefully mind you these things are over a hundred bucks","speaker":null,"is_sponsor":0},{"start_s":162.2,"end_s":170.72,"text":"disassemble the Rhino fire our main objective here is to access the internal","speaker":null,"is_sponsor":0},{"start_s":167.239,"end_s":173.159,"text":"wiring but the lighter our gun is the","speaker":null,"is_sponsor":0},{"start_s":170.72,"end_s":178.239,"text":"easier it will be for our servos to turn it and the aptly named Rhino has a","speaker":null,"is_sponsor":0},{"start_s":176.48,"end_s":182.319,"text":"little more junk in the trunk than we'd like out of the box which which means","speaker":null,"is_sponsor":0},{"start_s":180.12,"end_s":189.799,"text":"we'll want to remove our bulky trigger assembly not to mention the six D Cel","speaker":null,"is_sponsor":0},{"start_s":185.68,"end_s":192.04,"text":"batteries that also have got to go once","speaker":null,"is_sponsor":0},{"start_s":189.799,"end_s":197.239,"text":"the gun is in pieces this is also a great time to give it a quick makeover","speaker":null,"is_sponsor":0},{"start_s":194.599,"end_s":202.44,"text":"doing it up right involves laboriously sanding off all the logos then taping","speaker":null,"is_sponsor":0},{"start_s":199.799,"end_s":206.12,"text":"and painting in layers etc etc etc but that's literally as interesting as","speaker":null,"is_sponsor":0},{"start_s":204.72,"end_s":213.56,"text":"watching paint dry so we're going to skip over that with some video Magic","speaker":null,"is_sponsor":0},{"start_s":210.239,"end_s":215.72,"text":"ah much better so as you can see we've","speaker":null,"is_sponsor":0},{"start_s":213.56,"end_s":219.84,"text":"removed some excess weight at the back pulled out the battery pack and isolated","speaker":null,"is_sponsor":0},{"start_s":218.159,"end_s":226.239,"text":"the internal switch that turns on the motor next we need to assemble the body","speaker":null,"is_sponsor":0},{"start_s":222.76,"end_s":228.36,"text":"of the turret that this will sit on this","speaker":null,"is_sponsor":0},{"start_s":226.239,"end_s":234.799,"text":"bottom box is where we install the webcam and laptop so it needs to be nice","speaker":null,"is_sponsor":0},{"start_s":231.36,"end_s":237.04,"text":"and roomy our first Servo goes inside","speaker":null,"is_sponsor":0},{"start_s":234.799,"end_s":242.519,"text":"the top of the box and the gun bracket is mounted on top which allows rotation","speaker":null,"is_sponsor":0},{"start_s":239.959,"end_s":247.84,"text":"along the x-axis we want to keep the load on the servos as light as possible","speaker":null,"is_sponsor":0},{"start_s":245.959,"end_s":253.0,"text":"especially when at rest which means keeping the weight off of the moving","speaker":null,"is_sponsor":0},{"start_s":249.68,"end_s":255.439,"text":"components themselves now our first plan","speaker":null,"is_sponsor":0},{"start_s":253.0,"end_s":260.72,"text":"was to Simply place this ring of ball bearings between the box and the gun","speaker":null,"is_sponsor":0},{"start_s":257.6,"end_s":263.16,"text":"bracket but during the prototyping stage","speaker":null,"is_sponsor":0},{"start_s":260.72,"end_s":267.4,"text":"we found that to be insufficient the wood was just too rough and the bearings","speaker":null,"is_sponsor":0},{"start_s":265.479,"end_s":273.039,"text":"were too small for this to be an effective solution so the way we Sol","speaker":null,"is_sponsor":0},{"start_s":270.0,"end_s":275.84,"text":"that then was to layer the Ring of ball","speaker":null,"is_sponsor":0},{"start_s":273.039,"end_s":281.84,"text":"bearings between some discarded CDs thanks AOL that we attached to the wood","speaker":null,"is_sponsor":0},{"start_s":279.16,"end_s":286.52,"text":"the CDs are the perfect size though some minor modification was necessary to make","speaker":null,"is_sponsor":0},{"start_s":284.199,"end_s":290.4,"text":"room for the servo and they're smooth enough that the bearings were able to","speaker":null,"is_sponsor":0},{"start_s":288.0,"end_s":297.28,"text":"roll properly greatly reducing the strain on our servos now that we had","speaker":null,"is_sponsor":0},{"start_s":293.24,"end_s":299.759,"text":"turn we needed tilt good news though the","speaker":null,"is_sponsor":0},{"start_s":297.28,"end_s":305.479,"text":"Rhino comes with a tripod mount already ready that is located close to Center","speaker":null,"is_sponsor":0},{"start_s":301.919,"end_s":308.12,"text":"Mass so we gently modified this to allow","speaker":null,"is_sponsor":0},{"start_s":305.479,"end_s":312.639,"text":"a dowel to be inserted the dowel fits into two ball bearings that are housed","speaker":null,"is_sponsor":0},{"start_s":310.199,"end_s":317.479,"text":"in wood panels on either side allowing for ease of movement since the gun isn't","speaker":null,"is_sponsor":0},{"start_s":315.32,"end_s":323.0,"text":"perfectly balanced we added some small weights until it required very little","speaker":null,"is_sponsor":0},{"start_s":319.84,"end_s":325.36,"text":"effort to tilt it up and down now our","speaker":null,"is_sponsor":0},{"start_s":323.0,"end_s":329.4,"text":"Servo installed at the end of the dowel can tilt the gun more quickly","speaker":null,"is_sponsor":0},{"start_s":327.68,"end_s":334.28,"text":"drastically improving the ability of our s entry to track its Target so with the","speaker":null,"is_sponsor":0},{"start_s":331.919,"end_s":340.52,"text":"wood frame built we next mounted the remaining servos the Arduino and our","speaker":null,"is_sponsor":0},{"start_s":337.199,"end_s":342.36,"text":"battery packs now while our initial plan","speaker":null,"is_sponsor":0},{"start_s":340.52,"end_s":348.28,"text":"was to wire the internal motor of the Rhino directly to the Arduino in the end","speaker":null,"is_sponsor":0},{"start_s":345.759,"end_s":353.16,"text":"we decided to go with a third Servo and a 3D printed prong controlling a","speaker":null,"is_sponsor":0},{"start_s":350.28,"end_s":357.639,"text":"mechanical switch then with all of that in place we just needed to neatly wire","speaker":null,"is_sponsor":0},{"start_s":355.6,"end_s":361.919,"text":"it all together then hook it up to the laptop and webcam in the base and and","speaker":null,"is_sponsor":0},{"start_s":359.72,"end_s":367.52,"text":"run the software that we downloaded from Project Sentry gun. Rudolf Labs.com a","speaker":null,"is_sponsor":0},{"start_s":365.08,"end_s":371.12,"text":"super awesome open-source Sentry project that you should totally check out by the","speaker":null,"is_sponsor":0},{"start_s":369.36,"end_s":375.84,"text":"way now I'll take a moment to give you guys a quick Pro tip when you set out to","speaker":null,"is_sponsor":0},{"start_s":373.319,"end_s":380.52,"text":"do a wiring job like this no matter how small the project is or how simple you","speaker":null,"is_sponsor":0},{"start_s":378.16,"end_s":384.919,"text":"initially assume it will be pick up at least two different colors of wire red","speaker":null,"is_sponsor":0},{"start_s":382.88,"end_s":389.4,"text":"and black for positive and negative are pretty standard don't just get one color","speaker":null,"is_sponsor":0},{"start_s":388.08,"end_s":393.4,"text":"because you're confident that you can keep keep everything straight and you","speaker":null,"is_sponsor":0},{"start_s":391.319,"end_s":396.599,"text":"think green is pretty you will end up 4 hours deep into the project surrounded","speaker":null,"is_sponsor":0},{"start_s":395.08,"end_s":403.16,"text":"by hastily marked wires from five different Motors and two different batteries in a hopeless tangle deeply","speaker":null,"is_sponsor":0},{"start_s":399.599,"end_s":405.4,"text":"confused and full of regret so so much","speaker":null,"is_sponsor":0},{"start_s":403.16,"end_s":410.08,"text":"regret all right let's get back on topic before our final test we've got one more","speaker":null,"is_sponsor":0},{"start_s":407.319,"end_s":415.12,"text":"housekeeping item our final job looks a little messy so uh hey can we get some","speaker":null,"is_sponsor":0},{"start_s":412.56,"end_s":420.4,"text":"of that video magic going on here I guess we're just going to have to","speaker":null,"is_sponsor":0},{"start_s":417.319,"end_s":424.3,"text":"embrace the whole junkyard Chic","speaker":null,"is_sponsor":0},{"start_s":420.4,"end_s":427.47,"text":"aesthetic thing testing","speaker":null,"is_sponsor":0},{"start_s":428.639,"end_s":432.319,"text":"time oh my","speaker":null,"is_sponsor":0},{"start_s":433.84,"end_s":442.96,"text":"God oh my God success I can now feel comfortable","speaker":null,"is_sponsor":0},{"start_s":440.28,"end_s":448.8,"text":"leaving the office knowing that my tools pens and prawns will rest","speaker":null,"is_sponsor":0},{"start_s":446.28,"end_s":453.879,"text":"unmolested of course for the majority of the time when I'm here I don't actually","speaker":null,"is_sponsor":0},{"start_s":451.28,"end_s":458.52,"text":"want this thing hovering behind me so I needed to find a way for it to pull","speaker":null,"is_sponsor":0},{"start_s":455.84,"end_s":463.36,"text":"double duty fortunately with the help of a little open- Source facial recognition","speaker":null,"is_sponsor":0},{"start_s":460.68,"end_s":467.599,"text":"software it can be easily repurposed as an employee morale","speaker":null,"is_sponsor":0},{"start_s":465.28,"end_s":470.28,"text":"booster now that's what I call a motivational","speaker":null,"is_sponsor":0},{"start_s":473.24,"end_s":479.879,"text":"tool satisfaction 100%","speaker":null,"is_sponsor":0},{"start_s":476.72,"end_s":481.599,"text":"guaranteed nuts nuts we 100% % sure","speaker":null,"is_sponsor":0},{"start_s":479.879,"end_s":483.919,"text":"you'll love it it's well packaged I'll give it","speaker":null,"is_sponsor":0},{"start_s":484.68,"end_s":489.639,"text":"that so nuts.com is a familyowned and","speaker":null,"is_sponsor":0},{"start_s":488.199,"end_s":494.159,"text":"operated company that has been restocking healthy pantries for what was","speaker":null,"is_sponsor":0},{"start_s":492.599,"end_s":500.599,"text":"it since 1929 they have more than 3,000 products","speaker":null,"is_sponsor":0},{"start_s":497.759,"end_s":504.8,"text":"not all of which are nuts so we got some cashews chocolate covered","speaker":null,"is_sponsor":0},{"start_s":502.96,"end_s":509.56,"text":"pretzels can you believe the brand expected me to make it all the way","speaker":null,"is_sponsor":0},{"start_s":506.039,"end_s":511.8,"text":"through this without making any jokes","speaker":null,"is_sponsor":0},{"start_s":509.56,"end_s":516.8,"text":"about eating nuts so in a nutshell nuts.com has lots of hard-to find items","speaker":null,"is_sponsor":0},{"start_s":514.12,"end_s":520.56,"text":"including gluten-free and organic ones they have 100% satisfaction guarantee","speaker":null,"is_sponsor":0},{"start_s":519.279,"end_s":525.64,"text":"and if you check out the link in the description you can get four free gifts","speaker":null,"is_sponsor":0},{"start_s":522.959,"end_s":532.279,"text":"in a curated mini shop with your first purchase of $25 or more so go check them","speaker":null,"is_sponsor":0},{"start_s":528.72,"end_s":533.72,"text":"out over at nuts.com thanks for watching","speaker":null,"is_sponsor":0},{"start_s":532.279,"end_s":538.279,"text":"guys if this video sucked you know what to do but if it was awesome get subscribed hit that like button or check","speaker":null,"is_sponsor":0},{"start_s":536.959,"end_s":541.76,"text":"out the link to where to buy the stuff we featured at Amazon in the video","speaker":null,"is_sponsor":0},{"start_s":540.12,"end_s":544.48,"text":"description also linked in the description is our merch store which has","speaker":null,"is_sponsor":0},{"start_s":543.16,"end_s":549.079,"text":"cool shirts like this one and our community Forum which you should totally join now that you're done doing all that","speaker":null,"is_sponsor":0},{"start_s":547.68,"end_s":552.279,"text":"stuff you're probably wondering what to watch next so click that little button","speaker":null,"is_sponsor":0},{"start_s":550.76,"end_s":559.299,"text":"in the top right corner to check out the latest video over on Channel Super Fun","speaker":null,"is_sponsor":0}],"full_text":"so for those of you who follow the lus tech tips Twitter and Instagram um you'll already be aware that there was recently a crisis at our headquarters um sorry sorry still a little difficult for me to talk about this but I became aware after returning from a brief absence that someone had been at my desk touching my things sorry excuse me so naturally at that point there were two Avenues available to me the first would be calm measured discourse with my trusted employees about the importance of respecting one's personal space and possessions while the second would be to over engineer some manner of mechanical deterrent that would give any Interlopers a much needed Taste of justice so in the end I decided well let's just say this isn't a video detailing how to host a discussion about office protocol Mast drop is currently featuring their exclusive case 7xx red headphones built by AKG learn more and buy one today at the link in the video description meet the enforcer out of the box the elite strike Rhino fire is a fully automatic fixed Point anti-personnel Nerf gun with a 2.8 Dart per second rate of fire an arc range of up to 81 ft and a 50 Dart ammunition drum capacity it's a beast in its own right but it only works when I'm around to operate it which means I needed to turn this Hefty foam Blaster into a fully automated motion detecting stationary Sentry turret so to accomplish this we'll need the following three servos an Arduino a webcam and a laptop to coordinate it all not to mention some quick rewiring and just a touch of fine woodworking now in much the same way that you can't make an omelet without breaking a couple of eggs you can't modify a Nerf gun without first voiding the crap out of the warranty so step one then is to carefully mind you these things are over a hundred bucks disassemble the Rhino fire our main objective here is to access the internal wiring but the lighter our gun is the easier it will be for our servos to turn it and the aptly named Rhino has a little more junk in the trunk than we'd like out of the box which which means we'll want to remove our bulky trigger assembly not to mention the six D Cel batteries that also have got to go once the gun is in pieces this is also a great time to give it a quick makeover doing it up right involves laboriously sanding off all the logos then taping and painting in layers etc etc etc but that's literally as interesting as watching paint dry so we're going to skip over that with some video Magic ah much better so as you can see we've removed some excess weight at the back pulled out the battery pack and isolated the internal switch that turns on the motor next we need to assemble the body of the turret that this will sit on this bottom box is where we install the webcam and laptop so it needs to be nice and roomy our first Servo goes inside the top of the box and the gun bracket is mounted on top which allows rotation along the x-axis we want to keep the load on the servos as light as possible especially when at rest which means keeping the weight off of the moving components themselves now our first plan was to Simply place this ring of ball bearings between the box and the gun bracket but during the prototyping stage we found that to be insufficient the wood was just too rough and the bearings were too small for this to be an effective solution so the way we Sol that then was to layer the Ring of ball bearings between some discarded CDs thanks AOL that we attached to the wood the CDs are the perfect size though some minor modification was necessary to make room for the servo and they're smooth enough that the bearings were able to roll properly greatly reducing the strain on our servos now that we had turn we needed tilt good news though the Rhino comes with a tripod mount already ready that is located close to Center Mass so we gently modified this to allow a dowel to be inserted the dowel fits into two ball bearings that are housed in wood panels on either side allowing for ease of movement since the gun isn't perfectly balanced we added some small weights until it required very little effort to tilt it up and down now our Servo installed at the end of the dowel can tilt the gun more quickly drastically improving the ability of our s entry to track its Target so with the wood frame built we next mounted the remaining servos the Arduino and our battery packs now while our initial plan was to wire the internal motor of the Rhino directly to the Arduino in the end we decided to go with a third Servo and a 3D printed prong controlling a mechanical switch then with all of that in place we just needed to neatly wire it all together then hook it up to the laptop and webcam in the base and and run the software that we downloaded from Project Sentry gun. Rudolf Labs.com a super awesome open-source Sentry project that you should totally check out by the way now I'll take a moment to give you guys a quick Pro tip when you set out to do a wiring job like this no matter how small the project is or how simple you initially assume it will be pick up at least two different colors of wire red and black for positive and negative are pretty standard don't just get one color because you're confident that you can keep keep everything straight and you think green is pretty you will end up 4 hours deep into the project surrounded by hastily marked wires from five different Motors and two different batteries in a hopeless tangle deeply confused and full of regret so so much regret all right let's get back on topic before our final test we've got one more housekeeping item our final job looks a little messy so uh hey can we get some of that video magic going on here I guess we're just going to have to embrace the whole junkyard Chic aesthetic thing testing time oh my God oh my God success I can now feel comfortable leaving the office knowing that my tools pens and prawns will rest unmolested of course for the majority of the time when I'm here I don't actually want this thing hovering behind me so I needed to find a way for it to pull double duty fortunately with the help of a little open- Source facial recognition software it can be easily repurposed as an employee morale booster now that's what I call a motivational tool satisfaction 100% guaranteed nuts nuts we 100% % sure you'll love it it's well packaged I'll give it that so nuts.com is a familyowned and operated company that has been restocking healthy pantries for what was it since 1929 they have more than 3,000 products not all of which are nuts so we got some cashews chocolate covered pretzels can you believe the brand expected me to make it all the way through this without making any jokes about eating nuts so in a nutshell nuts.com has lots of hard-to find items including gluten-free and organic ones they have 100% satisfaction guarantee and if you check out the link in the description you can get four free gifts in a curated mini shop with your first purchase of $25 or more so go check them out over at nuts.com thanks for watching guys if this video sucked you know what to do but if it was awesome get subscribed hit that like button or check out the link to where to buy the stuff we featured at Amazon in the video description also linked in the description is our merch store which has cool shirts like this one and our community Forum which you should totally join now that you're done doing all that stuff you're probably wondering what to watch next so click that little button in the top right corner to check out the latest video over on Channel Super Fun"}