blackfin calculator learning game by majed al-herbi will matthau course: ece3552 – spring 2008...

10
Blackfin Blackfin Calculator Calculator Learning Game Learning Game By By Majed Al-Herbi Majed Al-Herbi Will Matthau Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

Upload: charleen-hall

Post on 14-Jan-2016

215 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

Blackfin Calculator Blackfin Calculator Learning Game Learning Game

By By

Majed Al-HerbiMajed Al-Herbi

Will MatthauWill Matthau

Course: ECE3552 – Spring 2008Instructor: Dr. Veton Kepuska

Page 2: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

OverviewOverview

We have developed a game for We have developed a game for children that will teach them mathchildren that will teach them math

This game will incorporate sound and This game will incorporate sound and button inputs for calculations with an button inputs for calculations with an output (All LED will light up) if the output (All LED will light up) if the Answer is correct.Answer is correct.

Page 3: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

The DesignThe Design We have 4 buttons:We have 4 buttons:

• First 3 buttons are use for our calculator’s calculationFirst 3 buttons are use for our calculator’s calculation• 11stst buttons increment to specify number buttons increment to specify number • 22ndnd buttons to confirm number buttons to confirm number • 33rdrd button to confirm operation button to confirm operation

Computed answer cannot be more than 63Computed answer cannot be more than 63 The Six LED represent binary number ( 1, 2, 4, 8, 16, 32) if you press the 2The Six LED represent binary number ( 1, 2, 4, 8, 16, 32) if you press the 2ndnd

button to confirm number that is lighted.button to confirm number that is lighted. Also The Six LED represent Operation (+, *, -, /,%, power) if you press 3Also The Six LED represent Operation (+, *, -, /,%, power) if you press 3rdrd button button

to confirm operation that is lighted.to confirm operation that is lighted.• Last button used for the confirmation of the computation and send the Last button used for the confirmation of the computation and send the

computation to the other board.computation to the other board.

We have a buffers for our sound, picture and calculated answerWe have a buffers for our sound, picture and calculated answer• Buffer[0] Buffer[0] sound sound• Buffer[1] Buffer[1] calculator answer calculator answer• Buffer[2+] Buffer[2+] Image (was not needed in the time of presentation )Image (was not needed in the time of presentation )

Page 4: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

The Flow:The Flow:

1.1. The Calculator’s Computational Process:The Calculator’s Computational Process:► This is where we use our calculator to compute This is where we use our calculator to compute

an math problem and send the answer to the an math problem and send the answer to the receiver board.receiver board.

► Then in the Receiving board we have to input Then in the Receiving board we have to input the correct Answer for the computation to test the correct Answer for the computation to test it.it.

2.2. Sound Transmission ProcessSound Transmission Process► We have incorporated our sound through our We have incorporated our sound through our

buffer while the previous processes are going buffer while the previous processes are going on.on.

Page 5: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

1.) The Computation Process1.) The Computation Process First button is used to increment the lights/value of First button is used to increment the lights/value of

the first and second number we will be usingthe first and second number we will be using• Once the first value has been inputted, we confirm it with Once the first value has been inputted, we confirm it with

the second button:the second button: (value confirm button)(value confirm button)

• After the first value has been confirmed into the Blackfin, After the first value has been confirmed into the Blackfin, we then increment our operations with the first button and we then increment our operations with the first button and confirm it with the third button:confirm it with the third button:

(operation confirm button)(operation confirm button)• We then confirm the second value with the value confirm We then confirm the second value with the value confirm

buttonbutton• To confirm the entire computation, we use the final fourth To confirm the entire computation, we use the final fourth

confirm button to send the answer to the other board.confirm button to send the answer to the other board.

Page 6: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

2.) Transfer Process2.) Transfer Process

• In The receiving board we have to confirm In The receiving board we have to confirm the Right answer for the computation so the Right answer for the computation so all the LED will light up showing that we all the LED will light up showing that we had the right Answer otherwise nothing had the right Answer otherwise nothing will happen.will happen.

Page 7: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

3.) 3.) Sound Transmission ProcessSound Transmission Process Summary:Summary:

• We have successfully combined the transmission We have successfully combined the transmission of the audio from the first board to the second of the audio from the first board to the second board while the previous process run.board while the previous process run.

This was very difficult because none of our custom made This was very difficult because none of our custom made protocols were correctly deciphering between the protocols were correctly deciphering between the answer’s buffer, and the sound’s buffer.answer’s buffer, and the sound’s buffer.

The final protocol sends the audio data as a “-1” until it The final protocol sends the audio data as a “-1” until it Code:Code:

Page 8: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

Difficulties Difficulties

We have to reset the two boards We have to reset the two boards after every build because our board after every build because our board seem to save the inputs.seem to save the inputs.

Old working code (from last year) Old working code (from last year) seemed not to build correctly which seemed not to build correctly which slowed us down because we could slowed us down because we could not model our program after not model our program after anything.anything.

Page 9: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

Improving the programImproving the program

We could use shared memory to store We could use shared memory to store prerecorded messages to play to the user prerecorded messages to play to the user if their answer is close, wrong or right.if their answer is close, wrong or right.

We could have a picture to be displayed as We could have a picture to be displayed as a result for getting the right answer but we a result for getting the right answer but we were not receiving the right Image that we were not receiving the right Image that we transmitted from the first board but I will transmitted from the first board but I will work on that during the summer. work on that during the summer.

Page 10: Blackfin Calculator Learning Game By Majed Al-Herbi Will Matthau Course: ECE3552 – Spring 2008 Instructor: Dr. Veton Kepuska

For Question look in the code For Question look in the code

?