Proximity Game

We have decided to make a proximity game using 6 LEDs, a uLCD 141-G8 display, and a proximity touch sensor. We have an lcd that displays a randomly generated value and the sensor value next to it. The idea is to get the sensor to fall within plus or minus 5 of the generated value and hold it there for 3 seconds. AS you get closer to the value, the more LEDs light up. Once you fall within the threshold, a green LED will light up. Hold this LED for 3 seconds and you will move onto the next level. The goal is to get past 5 levels. In the background, there is a timer running that will be shown once you beat the 5 levels.

Setup of the Game: /media/uploads/rokash000/20140324_140211.jpg

Video of a Demo: https://mega.co.nz/#!rYpl2TjY!Deye6WiTyQt11RISgsKYkwsBXL2o-wmzA8bm7dwy7Zw

Link to Repository: https://mbed.org/users/rokash000/code/lab4_proximityGame_timer/

Rules of the Game 1. Get your hand to match what the sensor indicates. A 20 will mean that the your hand needs to be close to the sensor. A 50 will mean that your hand needs to be farther away. 2. The goal is to reach 5 points. 3. Once you hit 5 points, your time will be shown on the LCD. Challenge your friends to see who gets the lowest score!


Please log in to post comments.