Final project
Course 10110, Embedded System
This is the final project for an Embedded System Course (10110).
In this course we've studied a specific board (with a PIC32 processor) that was provided to us in class.
As a final project I've decided to make a game called "Defuse The Bomb".
This game is quite simple, once we press "A" to start playing, the player has 1 minute in to solve four mathematical questions with increasing diffculity, every right answer will grant the player a code number and a number that represents it's "index" (this is called "line" number in the game).
After solving all four questions, the player has to press "#" to input the code for the bomb, the right code will set off the bomb and the wrong code... well we all know what happens next ;)
- The board itself:
- Board's processor: MICROCHIP PIC32MX460F512L
- In-Circuit Emulator: MPLAB REAL ICE
As part of the project requirements I had to use at least 4 modules from the board.
I've used the following modules:
- LCD Display - It's purpose is to communicate with the player and show him messages.
- Keyboard - The player's input delivery is done with this keyboard.
- Buzzer - It ticks faster as time goes down to imitate a real bomb.
- Timer - With the timer we can tell when one minute has passed or when the buzzer has to tick faster as time goes down.
- Interrupts - The interrupts mechanism listens for the Timer and reacts according to the time passed, for example: as time goes down the mechanism interrups the Buzzer and reactivates it to tick faster.
- LCD-G - Graphical LCD is used to show the player the mathematical question he has to solve.
Assuming you got the board and the required hardware:
- Download and open, MPLAB IDE (I personally used v8.66).
- Create a new project with "project wizard", select the "PIC32MAX460F512L" device (or any other device you might be using), when asked to add files, add the "v1.c", finish the creation.
- Open "Debugger" tab and select REAL ICE as your debugger tool.
- Press "Build All", then Program and to start just press "Run".