It's cute, It's polite and it is really deadly. It's a turret from Portal. It moves, has light, has sound, and something that my previous Portal project did not have: Camera tracking.

The turret is controlled with an Arduino and a PC. The arduino handles the movement and the light, the PC processes the video from a webcam to decide where the turret needs to aim and provides the sounds for the turret.

When no computer is present, the turret automatically switches to manual control. In this mode the turret can be controlled by a joystick, though there will be no sound.

The turret is full 3D printable and requires very little additional tools to make. This does not mean that this is an easy project, but it is manageable with some basic 3D printer, electronics and programming skills.

For more projects like this, go to my site: http://ytec3d.com/

Step 1: Design (and Design Flaws)

The design was the the hardest part of this project. Not because there are no reference images or because the turret is that difficult in its design. It is because the turret does things that are not physically possible.

At first I wanted to make this turret so it could open and close as well. The issue is (as you can see in the images) that the guns of the turret almost touch each other when the turret is closed. There simply is no room to have a turret with all movement that can also open and close. The solution was a compromise where the turret only moves and doesn't open.

Also the design doesn't include a real space for the electronics (as seen in all the photos and videos). After I built mine i did a last wave of improvements where I hollowed out the top of the turret. There is some space there now to place electronics if you can manage to make them small enough.

The rest of the design was only a matter of time. First the turret was designed in one piece in Solidworks to get the design right. Then this part was cut up into smaller pieces and mechanisms were added to make the guns and eye move. All in all the design took between 40 and 60 hours (I don't really track the time).

(Reference image to the right made by: Tyler Garrison, for another turret project by CitizenSnips and modified by me to show the flaws in the turret's original design)

<p>Just found your turret, it is very cool. I couldn't help but notice a solution that would let you make it open and close. If the guns can be stored partially within the side doors when closed then it frees up enough space for them to fit while leaving room for electronics and structure in the middle. (diagram attached)</p>
<p>that looks neat! mabe i'll come visit ur house some time!!!!!!!! P.S: i don't know where u live so probabally not.</p><p>B)</p>
How much money would you say would be spent on electronics alone? (Disregarding the arduino board and breadboard, I already own those)
<p>Well it is mostly 2 normal sized servo's and 2 micro sized servo's, a few led's and a laser diode. I also used a joystick module. All of those don't have to be expensive. You can get decent servo's for 5 euros each. All other parts mentioned are under 1-2 euros. </p>
<p>Hi, the project is GREAT! I have one question, though, how long did it take to make?</p>
<p>KICKSTARTER!!!!!! I NEED THIS IN MY LIFE AT MY DESK AT WORK!!!!! KICKSTARTER!!! MAKE MORE<br><br>talk with valve on licensing... DO THIS NOW!!! HOW AM I JUST NOW SEEING THIS!!!<br></p>
<p>Awesome project, you've shown some real dedication to create something this cool and involved. I was thinking though about how you might eliminate the dependence on a computer for tracking, and had the thought that perhaps one could integrate a Raspberry Pi or similar small computer directly into the design. If the software exists or could be written, this would be an ideal solution, as it could be run off the same battery and has the easy to use PiCam. Of course, getting all the electronics to squeeze into the shell so that the guns retract would also be an amazing improvement. I'll put this on my list of things to do when I'm through school and have time. Bravo!</p>
<p>Hi! I'm quite surprised with all the work you've put into this. Bravo. I only have one question though. Do you think this could be tweaked somehow to eventually allow the guns to retract and fit everything?</p>
<p>I couldn't get the guns to also retract in the tiny amount of space I had, so my opinion is no, but if you can manage, give it a go and share it when you have managed.</p>
<p>This is seriously impressive, this is what I want to be doing for a living lol. Question: Any estimate to how much this project cost? (Not including buying a 3D printer/fillament).</p>
<p>I can guarantee you, me too, but I guess being an engineer will have to do. This was not that expensive a project. Around &euro;100-&euro;150 probably. </p><p>The thing that is more costly is time. Designing is over 40 hours, making it is also that. Everything combined this thing clocks out at 100 hours. </p>
<p>Fortunately, I have more time than I do money (; but this summer will be very boring for me so I seriously hope I find the motivation to do this! </p>
<p>This is so cool! That it's actually vunctioning and moving around is really a feat in itself! I bet some of my geeky friends might be really interested to try this out themselves!</p>
<p>this is awesome. i was wondering if the camera had to be attached to a laptop or desktop. Is it possible if I disassemble an old webcam and attach it to the portal turret through arduino? please answer back.</p>
<p>Attaching a webcam to the arduino is nearly impossible. You will need a special microcontroller camera for that. My webcam was on my laptop because the software doesn't allow a second webcam to be attached to the computer, but if you have a desktop you can have a camera that can be mounted anywhere.</p>
<p>This is awesome! <a href="https://www.instructables.com/id/Making-the-shell-for-a-functional-full-size-Apertu/" rel="nofollow">https://www.instructables.com/id/Making-the-shell-f...</a> Did you happen to take any inspiration from my Instructable? Also, I had the same problems as you, but the fact is Valve had a solution since they made one IRL that opens, closes, and simulates shooting. The solution the used is to remove the back panel of the gun box so you can fit servo's and other parts in the center(you can look at my gun box to see what I'm talking about. But other than that, top notch!.</p>
<p>*They used.</p>
<p>*servos <br>Sorry, my grammar is a bit off when I type too quickly.</p>
<p>Did you ever update the software and what was the OS base you ran it on ?</p>
<p>Extremely cool project, you got my vote!</p>
<p>I love this I will vote for it without question. Makes me really really want a 3D printer.</p>
Absolutely awesome, nice one!
<p>i think this is a great project if i had a 3d printer i may have give it a try even though i have nowhere to put it, many thanks for the instructable. </p>
<p>Rather than tracking a colour I suppose that it would be possible to control it with face tracking software or a heat sensor.</p><p>Maybe add remote-control Airsoft guns, though they would probably be too bulky to fit the shell.</p>
<p>Absolutely incredible idea and great execution! I'm sure this will do well in the sensor/battery/epilog contests</p>
Woah! That's amazing! A working portal gun next? ;P
<p>nice! add a Pixy and you can drop the PC connection :)</p>
<p>put a high power laser on it</p>
<p>Amazingly well done! </p>
<p>Oh wow, this is awesome!</p>

About This Instructable




More by dragonator:Solar System Orrery (3D printed) Heat exchangers and 3D printing Hand In Hand Skeleton Clock 
Add instructable to: