Physical_Computing

Processing + Arduino

We used Serial Communication with Processing and Arduino to make a Basketball Game. We used a potentiometer, a pressure Sensor, and a touch Sensor.

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

  1. Rotate 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.

Processing+Window.png

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”:

Sofia Von Hauske