Two-player Duck Hunt

Tan Ma and I implemented a quick two-player version of Duck Hunt using a Processing project she had created. One player controls the gun with the mouse, the other controls the ducks with an accelerometer/arduino combo.

Initially we tried mapping the ducks position one-to-one with the values accelerometer was giving us, but we discovered that this produced jittery results. We found it worked much better to add and subtract reduced dampened accelerometer values to the ducks’ coordinates.

Here’s a hastily-made video of the application:

[vimeo w=640]


Integrating Processing sketches with Arduino

This week’s Physical Computing labs were extremely fun. Here’s a sketch that reads values from a pressure sensor:
[vimeo w=640]

And this is a video of a sketch that displays tweets being controlled by an accelerometer:
[vimeo w=640]

I was also able to control a the xy coordinates of an object on the screen using the accelerometer, but failed to document it…