Vincent's Final Project

The project I want to show is a laser gun. I’ve seen may gun shots around the world. People like to shoot in order to release their pressure. I don’t really think shooting is a bad habit. However, how to shoot safely has always been a problem. I design this laser gun as an entertaining toy, which also has some value in daily use and application. The external structure of this gun is well designed. I don’t know whether any of you have played counter-strike or have ever seen the gun Eagle. Eagle is famous for its elegant structural design together with its old-fashioned decorations. I studied the structure of Eagle carefully and created my design through imitation. I create a circuit board in the internal part of the gun, and integrate well it with the 3D-printing structure. I board has a laser controlled by a button. There is some thought underlying the algorithm I wrote. The laser lasts only 0.5 second after I switch the button so that every ray of laser can be counted as a bullet.

1. 3D design

As I documented in week05. I have made an laser gun by 3D printer. The source file can be found in week 5. avatar

2. Circuit production

For controlling the 'Laser bullets', it is needed to create a circuit board that can sense the signal from the trigger, and release a laser ray after triggered. The components I used:
avatar avatar
For circuit design, it become very easy after previous experience of input and output weeks. The only thing special is I designed the outline of the board according to internal shape of printed gun.
avatar

3. Embedded Programming

It was not so tough for me to program the board. created an super loop, in which keep sensing the state of trigger switch. If it triggered, turn on the laser for 10 millisecond then trun off.

4. Zombie Target

The Zomebie is implemented by Shiyao as his final project. More details in: Shiyao's Final Project
avatar

5. Android APP

And I added a bluetooth model on Shiyao's Zombie, also added the corresponding code to it. The Bluetooth will talk to an android app to record the score of the game. On Shiyao's zombie there are 3 shooting targets which are head, left hand, and right hand. The score is calculated by the time that the shooter finished to get all the 3 targets in millisecond.
App inventor was used to program android app. avatar

In the end, I want to say that shoot a real gun is never a good habit. However, shoot a laser gun is cool. Laser is red but it is never bloody. It can deliver an impact but it will never lead to a massacre. It can make zombies move but it will never make humans dead.

Files download

1. Laser gun model
2. Circuit boardCircuit from Eagle
3. Code for microcontroller
4. Android App
Presentation video:

Slide for the final presentation: avatar