Simple calculator

Simple calculator - Blackfin Calculator Learning Game By...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Blackfin Calculator Learning Game By Majed AlHerbi Will Matthau Course: ECE3552 Spring 2008 Instructor: Dr. Veton Kepuska Overview We have developed a game for children that will teach them math This game will incorporate sound and button inputs for calculations with an output (All LED will light up) if the Answer is correct. The Design We have 4 buttons: First 3 buttons are use for our calculator's calculation 1st buttons increment to specify number 2nd buttons to confirm number 3rd button to confirm operation Last button used for the confirmation of the computation and send the computation to the other board. Buffer[0] sound Buffer[1] calculator answer Buffer[2+] Image (was not needed in the time of presentation ) Computed answer cannot be more than 63 The Six LED represent binary number ( 1, 2, 4, 8, 16, 32) if you press the 2nd button to confirm number that is lighted. Also The Six LED represent Operation (+, *, , /,%, power) if you press 3rd button to confirm operation that is lighted. We have a buffers for our sound, picture and calculated answer The Flow: 1. This is where we use our calculator to compute an math problem and send the answer to the receiver board. Then in the Receiving board we have to input the correct Answer for the computation to test it. The Calculator's Computational Process: 1. We have incorporated our sound through our buffer while the previous processes are going on. Sound Transmission Process 1.) The Computation Process First button is used to increment the lights/value of the first and second number we will be using Once the first value has been inputted, we confirm it with the second button: After the first value has been confirmed into the Blackfin, we then increment our operations with the first button and confirm it with the third button: (value confirm button) We then confirm the second value with the value confirm button To confirm the entire computation, we use the final fourth confirm button to send the answer to the other board. (operation confirm button) 2.) Transfer Process In The receiving board we have to confirm the Right answer for the computation so all the LED will light up showing that we had the right Answer otherwise nothing will happen. 3.) Sound Transmission Process Summary: We have successfully combined the transmission of the audio from the first board to the second board while the previous process run. This was very difficult because none of our custom made protocols were correctly deciphering between the answer's buffer, and the sound's buffer. The final protocol sends the audio data as a "1" until it Code: Difficulties We have to reset the two boards after every build because our board seem to save the inputs. Old working code (from last year) seemed not to build correctly which slowed us down because we could not model our program after anything. Improving the program We could use shared memory to store prerecorded messages to play to the user if their answer is close, wrong or right. We could have a picture to be displayed as a result for getting the right answer but we were not receiving the right Image that we transmitted from the first board but I will work on that during the summer. For Question look in the code ? ...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online