Weekly progress

WEEK 1 PROGRESS

  • Solidified our project; We are going to create a Pattern Memorization game that allows for multiple players. We will use a Wii nunchuck to provide to directional inputs, up, down, left, right, and have the pattern be displayed through the LED's. Game functionality will remain as previously stated.

  • Researched the nunchuck plug schematic to study how the pin layout works. We determined which wires correspond to the SDA, SCL in the nunchuck controller to initialize the connection using the I2C protocol.

  • We purchased an LED matrix display that we will use to display which players turn it is as well as when a player has lost.

  • We wrote the code that would manage the LED light functionality and Display the inputted pattern to the Players.

LED Pattern Display

LED matrix display

HiLetgo MAX7219 Dot Matrix Module


WEEK 2 Updates 2/28/20

  • We configured the game play using 4 LED lights: blue, red, green, yellow, in such a way that the program follows the 2 player game flow.

  • As a means of creating a stepping stone, we used the HC-05 peripheral to use Bluetooth to manage our game inputs, as well as to mimic what would be display on our LED Matrix on termite.

  • We've also set up the LED display and managed to get some functionality but not exactly what we want

  • As of now, we have most of the game functionality done and would only need to work on getting the LED Matrix to work properly; We plan on adding additional game function like change in pattern display after a certain amount of inputs, and quicker game responses. We will attempt to configure the Wii nunchuk to our project once we have these elements correctly set up.

WEEK 3 Updates 3/6/20

  • We debugged errors in our memory game code. Some bugs that we found we that are compare method was not outputting the correct boolean result, our implementation of how we represent each color was changed to representing it by the same first letter of the alphabet, our test for invalid inputs was incorrect.

  • New feature we added is the play again method, the user has the option play again once the game is over.

  • We changed how the user will input the colors , instead of letters in the keyboard each color is represented by 1 , 2 , 3 , 4 .

    • 1 - red

    • 2 - blue

    • 3 - green

    • 4 - yellow

  • We added the bluetooth implementation module to input the colors of the game using termite. We decided to substitute this implementation with the nunchuck controller.

  • We implemented the initialization of the SPI protocol for the LCD dot matrix module.

WEEK 4 Updates 3/13/20

  • We organized our .c .o .h files

  • Continued the initialization of the MAX7219 Dot Matrix Module

    • On initial power-up, all control registers are reset, the display is blanked, and the MAX7219/MAX7221 enter shutdown mode.

    • No-Op Register - The no-op register is used when cascading MAX7219s, this register is used to select the matrix we want to write data to.

    • Intensity Register - The MAX7219/MAX7221 allow display brightness to be controlled with an external resistor (RSET) connected between V+ and ISET.


SERIAL-DATA FORMAT OF THE MAX7219