PHYSICAL COMPUTING | WEEK4-5: PROCESSING+ARDUINO

This two week, we use Serial Communication by Processing and Arduino, to make a Basketball Game, using Potentiometer, Pressure Sensor, Touch Sensor.

Here is the circuitry:

Here is the screen of our game:

Processing Window.png

There is a line as indicator of shot direction, also a rectangle as indicator of shot strength.

  1. Rrotate the potentiometer to adjust the shot direction

  2. Tap the touch sensor to save the status of direction

  3. Press the pressure sensor to adjust the shot strength for original speed of shot

  4. Tap the touch sensor to save the status of shot strength and shoot basketball

  5. Basketball will be shot out according to the saved status before.

If basketball hits the basket, there is a “Good Job!“ text in the center of the window:

Else it will become “You Lose, Tap to Continue”:

Lose.png

Then we make it more fancy with a game box:

Finally, the video of how it works: