A Microcontroller Contest Finalist and Runner Up Winner.
This instructable is out-of-date. For the most recent version of the tutorial, see the website . Cheers!
This sentry gun autonomously tracks, aims, and shoots at targets, using:
-An airsoft or paintball gun
-A webcam to find targets
-A computer to process the video feed and aim the gun
-Servo motors to physically aim the gun and squeeze the trigger
-A sturdy tripod base
-A microcontroller to interface between the computer and the servo motors
-Lots of camo paint
The end result is a paintball/airsoft spewing robot, that can turn the tides of any match.
Video if it in action here .
Want to build your own?
You're in luck! All the help and information you will need is here, and the software is free and open-source. Lots of people have already used this system in their own sentry guns, with successful results.
So go ahead, make your own, and soon your own backyard will be no-man's land, too!
P.S. take pictures during the project, and when you are finished, send me a picture, and a description of your project, and I will feature it on the Successful Projects page of my website. Thanks!
Remove these ads by
Signing UpStep 1Parts List
$30 Webcam
$25 Arduino (or equivalent)
$27 3 Servo motors (pan, tilt, trigger) $9 ea.
$10 Assorted screws, nuts and bolts
$9 Wood/metal for construction
$5 USB A to B cable
$2 Some 22 gauge solid wire
$2 Servo battery box
$110 TOTAL
Also, you will need a laptop or computer to run the sentry gun program. $250 for a cheap netbook, if you don't have anything else...
| « Previous Step | Download PDFView All Steps | Next Step » |










































Is there anyway to reverse the direction of the of the servos through the code.
thanx
Cheers,
-Bob
Seriously, amazing.
link: http://www.youtube.com/sentrygun53
cheers
Seriously though i'm impressed :)
Thaks and sorry for the grammar
Yes, you can control the turret using a joystick (plugged into the computer). It will require a few small code changes, put it has been done before.
good luck,
-Bob
Cheers,
-Bob
processing.app.debug.RunnerException: UnsatisfiedLinkError: D:\Software\processing-1.2.1\libraries\JMyron\library\JMyron.dll: Can't find dependent libraries
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: D:\Software\processing-1.2.1\libraries\JMyron\library\JMyron.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at JMyron.JMyron.(JMyron.java:14)
at Turret_05_03.setup(Turret_05_03.java:142)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
I have installed jmyron as instructed in the file but i still get this error :(
Your help would be greatly appreciated :)
Copy the "JMyron" folder found in this directory into the Processing/libraries directory.
NO! Put that folder instead at C:\Users\USERNAME\Documents\processing-1.1\processing-1.1\libraries
Copy the "JMyron Examples" folder into your Processing Examples folder.
IMPORTANT FOR WINDOWS USERS: there is a folder called "Extra DLLs" - those are DLLs that JMyron depends on so make sure they're copied into your system's DLL search path - such as the Processing root directory, or even C:\windows\System32.
If Processing is already running, then restart it.
However, I did the same thing and no results
can you explain a little more on your instructions:
"IMPORTANT FOR WINDOWS USERS: there is a folder called "Extra DLLs" - those are DLLs that JMyron depends on so make sure they're copied into your system's DLL search path - such as the Processing root directory, or even C:\windows\System32."
Place "Extra DLLs" to system's DLL search path" I don't understand this.
a video tutorial would be great for your instrucable
Cheers. Any more questions, let me know!