Pages: [1]   Go Down
Author Topic: Arduino Laser Target Game  (Read 2976 times)
0 Members and 1 Guest are viewing this topic.
Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do you do if you like shooting stuff, but you live in Australia where gun laws are very strict.  So strict in fact BB guns and AirSoft are also illegal - basically it's nerf guns or nothing.  Personally I decided to build my own target game based of lasers of course!  I took an old nerf gun, ripped out the insides and installed an old laser pointer.  A simple button behind the original nerf trigger mechanism and instant laser gun.  Then throw few photo resistors and servo's to make targets and hey you have a fairly entertaining laser game:

Explanation: http://youtu.be/5blKeDx60N0
Me playing: http://youtu.be/CF_DX-XkC-8

The components used I used are were:

I also had an unused plastic toolbox which I mounted everything in.  A simple button inside the box puts all the targets into a "down" state so the lid can close up for easy transport.  If I tidied up the wiring there should be room for the gun + wall socket transformer inside the box so the entire game packs away nicely.  In the video's it's sitting on my desk next to my PC only because that's where I work on it, but it is totally self contained and portable since the arduino is set up to be powered by the 5v wall wart when USB isn't connected.

Future improvements:
  • Score board - it'd be great to mount an LED matrix like http://www.sureelectronics.net/goods.php?id=1119 into the box lid to print out scores and give feedback such as 'game over', or 'shoot to start'.
  • Sound - both to the gun itself and to the board.  Let you know what's going on.
  • Better game code - currently it's a pretty simple system that randomly selects 1 target to show then another with decreasing time between them.  If you don't shoot a target in time it'll fall on it's own, and the game ends when 3 targets have timed out.  I'd like to write better code so that it mixes things up and has a less regular pattern.
  • Put a chip in the gun - right now if you hold the trigger down the laser stays on.  I'd love to mount something small in the gun so that holding the trigger will still only turn the laser pointer on for 500ms or so.
  • Adding wide angle IR LED to the gun - and an IR reciever on the box so that the game can tell when your shot missed (IR turns on when the laser does, so even if you miss with the laser then the wide angle IR LED will still register your shot).  That way you could create lots of game modes such as limited ammo situations where all 4 targets are up, unlimited time, but you're only allowed 4 shots for example..
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 285
Posts: 25629
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What do you do if you like shooting stuff, but you live in Australia where gun laws are very strict.
I understand getting hold of laser pointers can be tricky too.
Nice project.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 473
Posts: 18695
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nicely done. smiley
Logged

Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good job.. it looks like fun..!! smiley
Logged

Australia Mate!
Offline Offline
Sr. Member
****
Karma: 3
Posts: 284
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What a great idea, i love seeing creativity like this.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

nice project
i love it
in my country, it's illegal to have a gun  smiley
Logged

Denmark
Offline Offline
Full Member
***
Karma: 10
Posts: 220
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice!

The video makes me think of "Whac-a-mole" with a gun.

I fully agree that the laser should be restricted to short pulses.
Logged

Bob Pease: "My favorite programming language is ... solder."

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice project.  Well done.
Logged

Denmark
Offline Offline
Full Member
***
Karma: 10
Posts: 220
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I spent my weekend playing, and made a sketch that counts number of shots fired  (nice little 50 ms pulses), one shot with each pull of the trigger. A selector switch to choose between single shots and bursts..... and then I find this:

http://www.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=Arduino+laser

A project about building an arduino based laser tag game.
From a quick read-through, it looks pretty good, and quite a few elements from it could certainly  be recycled.
Logged

Bob Pease: "My favorite programming language is ... solder."

Pages: [1]   Go Up
Jump to: