Let's Make Robots!

Airsoft Turret Project

 

Hi, this is my airsoft turret that i have been working on for a little bit now. When I first started this project, I wanted to make an object tracking turret using a web cam and RoboRealm. But when I saw OddBot's page on the IR compound eye I thought it would be an easier way of doing it and I could use the turret without having to keep my laptop around.

The original idea was to have the turret just scan side to side and track objects when they get to close while shootiong at them. But while I was waiting for the IR emitters and detectors to come, I decided I would add some other features like controlling it with a wii nunchuck and controlling it with a tv remote. so far I have added the  wii nunchuck and am working on the remote.

I do have the parts for the compound eye but i'm having trouble with figuring out a way to mount them. The problem is that I'm using an ultrasonic sensor to tell the distance of the object from the gun and I can't figure out how to mount the tracking sensor (compound eye) on the barrel without getting in the way of the ultrasonic sensor.

 

This is the turret when i just got finished making the mount. The turret's base is just the rotating base of a lynxmotion L6 robotic arm i had.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Update                                                                                                                                                                                    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I have finally gotten the IR tracker and the remote working. It turned out that the whole problem with mounting the eye without getting in the way of the Ping)) sensor didn't matter at all. I ended up taking the Ping)) sensor off because I realized that I could just use the eye to get an approximate distance and the Ping)) sensor was useless. The IR tracker works very well for tracking objects that are up close and people walking by, but I decided that I'm going to add the web cam to follow people farther away afterall.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Update 12/6/10 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

It's been a while but I just had to post the photos of the final design.

On the back is the push button to select the mode, the IR remote reciever, the wii nunchuck socket, and the power jack.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Got one of this gun, there are 4 wires black, orange as a pair and blue, gray as a pair. Black and orange one is + and -, but not sure what does blue and grey wire does? any idea? 

Well on mine the colors were different but those wires should go to a switch in the gun that tells when it has fired. This is useful so that you don't stop the motor at different points in the firing process and so that you can shoot an exact number of shots

I know there's a switch and when I have it on it start the motor which just keep shooting. but not sure how to control other 2 extra wire(image below)? Is it like connect to 1 or 2 of digital pin on Arduino or you can set the round of shooting?

Can you tell me where should I connect A and B on arduino? Thanks a lot!!

This switch would be connected to the arduino like a pushbutton. So either A or B would get connected to a digital input with a pull down resitstor. Then the other wire would be connected to +5v. It should read HIGH when fired and LOW when in the process of firing.

Cool~ thanks a lot :)

where did you get that gun? Great Job 

Thanks, I got the gun from Toyeast.com. The url for the exact one i got is below but they have many others.

http://www.toyeast.com/v3/pdtdetail.asp?pdt_id=A09000290

I think only whole seller has it? otherwise you need to purchase whole tank.

thank you

awesome design! i would like to make a simpler version myself!