Shooting Game – Final Project Documentation

Materials Used:

  • Joystick
  • Five wires
  • Prototyping shield
  • Laser cut box


My final project was a shooting game which was controlled by a joystick. The movement of the player was controlled by the left, right, up and down movements of the joystick and the shooting was controlled by the push of the joystick button. The joystick acted as two potentiometers and a push button. The game consists of a shooter and objects that are to be shot down by collision and pushing the joystick button. The joystick was mounted onto a laser cut box.  Here is the schematics for the joystick:



As a quick note, the resistor for the joystick connects to 5V instead of ground and a push of the switch corresponds to 0 while a release corresponds to 1. This is different from the usual switches we worked with in class.

  • Here are photos of my prototyping shield, joystick, soldering and mounting:

  • Here is the code to my project
  • Arduino code:


  • Processing Code:


Final Project Prototype

  • Thankfully, the joystick worked way better than I expected. It has a switch included and this made my task slightly simpler since I didn’t have to have a separate switch.
  • I am able to track the position of the joystick on the screen by designating a circle at a position for the joystick. The circle moves whenever the joystick is moved and whatever the direction the joystick is moved.


  • The joystick is working well although I feel the response isn’t as fast as I would want it to be.
  • The switch of the joystick is very slow in responding which is quite surprising to me because when it is tested in Arduino, there is no delay problem but in Processing, there seems to be a delay and even swap of values.

See below my code. I was just testing the position tracking and switch response so I used simple shapes like circles.





Digitize Everything | Response

Before this reading, I had never heard of the Waze app before but after this reading, I was very impressed by how the app uses mobile phones as sensors, something I had never thought of. However, I was wondering, given that the success of Waze is dependent on its network effect, what will happen in the case where users stop using Waze and move to another platform?  I was very delighted to learn from the reading that digital information has zero marginal cost of reproduction since I believe this will go a long way to minimize the usage of physical resources such as paper and preserve the earth.

It is interesting to know that the first copy of digital information is usually expensive but the subsequent copies are far less cheap. In light of that, I wonder how profitable it is for businesses or individuals to produce the first copy; will the later cheap costs of reproduction make up for their first expensive cost of first production or will businesses be discouraged from production because of this? Also, wouldn’t this encourage some people to produce inaccurate and cheap information as is the case of fake new now? It was mentioned in the reading that we would soon be running out of metric system due to the extreme amount of digital information being produced and reproduced. This makes me wonder: how far can we go on the expansion on the metric system and will this pose future constraints on the amount of digital information we can produce?

Final Project | Shooting game with Physical Gun

The idea behind the project is to create a shooting game whereby the user shoots particles on the screen with a physical gun.

Technical Requirements:

  • The game will require image processing to track the movement of the gun.
  • A physical gun made of wood or some other material will have to be made.
  • A sensor or some other thing (I’m not sure what) will have to be placed in the gun to track whenever the user shoots the gun.
  • A serial communication must be sent from the gun to Processing whenever the user shoots the gun for the shooting to actually happen on the screen.

Equipment Needs

  • A camera and a screen for the final exhibition day.
  • A gun with a sensor or materials to make the gun with the sensor.

5 Most Complicated Parts

  • Creating the gun with a sensor poses some difficulty for me since I have no idea what sensor to use or how to make the gun. I also don’t know how I will integrate Arduino into the gun to make it as portable and aesthetically pleasing as possible.
  • With the shooting aspect, I wonder how quick the communication between the gun and Processing will be for the shooting to be registered on the screen, particularly in the case where the user is moving the gun quickly and shooting at the same time. Will the communication be fast enough for the shooting on the screen to happen at the location the trigger was pulled before the gun was probably moved by the user.
  • Currently, I’m thinking of using the brightness tracker to track the position of the gun. One shortcoming of that is if the user is wearing something similar or much brighter than the color of the gun. I am therefore thinking and looking for other ways to track the gun.
  • Combination of image processing and serial communication between Arduino and Processing.

Block Diagram


Design Meets Disability

Before this reading, I had never thought of the role of design in disability or their intersection thereof. I found this reading to be very inspiring and made me realize how important design is in the manufacture of products for special needs. As Pullin mentioned, design is almost never considered in special needs products and this is something I have witnessed on many occassions in my country; the sole purpose of the product is considered to be it’s function thus as far the product performs its functions, nothing else including matters.

I do agree that there should be a healthy balance between problem solving and playful exploration to incorporate better design and to boost the self esteem of the people the products are being made for. But this makes me wonder, does an attempt too explore and challenge constraints come at an extra cost such as hiring more designers and if so, will the targeted group be able to afford the product with the increased cost? I am wondering this because in my culture, it is difficult for people with special needs to get jobs and thus majority of them live in poor conditions. Thus, with their economic situation, will they be concerned more about design and functionality at a higher cost or simply functionality?

As Pullin mentions, I have also observed that most products for special needs attempt to draw as little attention or be as discreet as possible. However, eyewear is one market in which fashion and disability overlap and it is interesting to know that this wasn’t achieved in the twinkle of an eye but in several years with considerable hardwork and effort.


Robot with Potentiometer

Arduino Code:

Processing Code:


Processing and Arduino Game Code

Processing Code:

Arduino Code:


Processing and Arduino Game | Snake

I attempted to create a game of snake which could be controlled by four switches representing up, down, left and right. Whenever the snake ate a fruit, a new fruit is generated with another color. However, I ran into several problems trying to elongate the snake whenever it ate the fruit so I ended up with a snake which wasn’t elongating. Here is a photo of the schematics for my circuit.



Response | Casey Reas Talk

I found the talk a bit too technical and thus hard to follow. However, I got inspiration from how Reas’ point of finding beauty in chaos or randomness and attempting to explore a fertile space for chaos and order. From previous artwork that I have encountered, it is true that some artists usually focus on either order or randomness. Both order and randomness produce very beautiful results but I do believe that combining both order and randomness may produce even more beautiful results and this is what we are seeing in the artwork of current artists such as Casey Reas. I was also amazed at the amount of dedication and thought that went into the production of the artwork Reas showed in his lectures.

Recreating Design

I took my inspiration from this photo:

I created lines from opposite ends of the board and made them cross each other.  When the mouse is pressed, several rectangles are generated in an overlapping manner.

Here is the code:


Here is a video