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
PIN OUT:
Import programIMUpong
Two player imu pong
Please log in to post comments.