Two Player IMU Pong

Description

This code implements a game of two player IMU pong. In this game, each paddle is controlled by an IMU, specifically by adjusting the acceleration in the x direction as denoted by the IMU. The sensitivity is very high so you only need a small change in the acceleration. Therefore, just by tilting the IMU it experiences a change in acceleration due to gravity which is sufficient to move the paddles. A player loses this game whenever the ball hits the wall behind that player's paddle. The speed of the ball is adjustable in the code.

PARTS LIST

1. MBED Microcontroller
2. Speaker
3. Pushbutton
4. IMU x 2
5. uLCD
6. Separate Breadboard

/media/uploads/jlee887/img_0330.jpg

/media/uploads/jlee887/lsm9ds0.jpg

PIN OUT:

/media/uploads/jlee887/asdf.png

Import programIMUpong

Two player imu pong


Please log in to post comments.