Difference between revisions of "F18: baem geim"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Project Title)
(Parts List & Cost)
Line 318: Line 318:
 
| 2
 
| 2
 
| $16.52
 
| $16.52
 +
|-
 +
 +
! scope="row"| 7
 +
| PCB
 +
|[https://jlcpcb.com/ JLC PCB]
 +
| 5
 +
| $19.36
 
|-
 
|-
 
!
 
!
Line 323: Line 330:
 
!-
 
!-
 
!-
 
!-
! $250.95
+
! $270.31
 
|}
 
|}
  

Revision as of 07:52, 2 December 2018

Grading Criteria

  • How well is Software & Hardware Design described?
  • How well can this report be used to reproduce this project?
  • Code Quality
  • Overall Report Quality:
    • Software Block Diagrams
    • Hardware Block Diagrams
      Schematic Quality
    • Quality of technical challenges and solutions adopted.

Project Title

baem geim - Snake Game Reborn

Snake.jpg

Abstract

baem geim is a revived, most amusing Snake Game where a player maneuvers a line which grows in length, with the line itself and wall as obstacle. The concept originated in the 1976 arcade game Blockade, and the ease of implementing snake has led to hundreds of versions for many platforms. This is a new version of snake game which we have developed. The player controls the dot using handheld joystick. As it moves forward, it leaves a trail behind, resembling a moving snake. The snake movement is visually displayed in real time on a 32*32 LED Matrix. The player attempts to eat randomly generated dots as fruits by running into it with the head of the snake. Each fruit eaten increases the length of the snake and controlling it becomes progressively difficult. The player loses the game if the snake runs into itself or hits the screen border. The game is designed using two SJone LPC1758 microcontroller boards one each to drive LED Matrix and Joystick module respectively. They communicate wirelessly through RF Nordic transceiver.

Objectives & Introduction

The main objective of the project is to develop a 2D soleplayer snake game. Other milestones to achieve the objective are as below.

  • Visually display the movement of the snake on LED Matrix in real time.
  • Control the movement of the Snake through Joystick.
  • Transmit the control data wirelessly from input to output console through Nordic transceiver.
  • Design PCB for distribution of input power appropriately between two SJone boards.

The project is broadly divided into two modules.

1. Input Module: The input module connects SJone board to two-axis joystick which is used to control the snake advancement. Nordic transmitter continuously transmits control packets to the output module.

2. Output Module: The output module connects another SJone board to LED Matrix for visual display. It recursively polls to receive control packets from the input module and updates the snake movement as per user's input.

Team Members & Responsibilities

Schedule

Week# Date Task Status Actual Completion Date
1 09/22/2018
  • Reviewed previous projects of CMPE 244 on Socialledge.
  • Brainstormed ideas and came up with 3 proposals.
  • Completed
  • Completed
  • 09/25/2018
2 09/29/2018
  • Had detailed discussion on second set of project ideas involving LED Matrix.
  • Came up with 2 game projects, prepared abstracts and submitted them for review.
  • Completed
  • Completed
  • 10/02/2018
3 10/06/2018
  • With approved baem geim proposal, discussed approach and list of components.
  • Prepared schedule for project flow.
  • Completed
  • Completed
  • 10/07/2018
4 10/13/2018
  • Division project into modules and assignment of responsibilities for each module to individual team member.
  • Order of essential components to kickstart project work.
  • Completed
  • Completed
  • 10/14/2018
5 10/20/2018
  • Tested LED Matrix using Dash charger, however power was insufficient as a result of which random patterns were generated.
  • Realized requirement of Female Barrel Jack adapter and 5V/4A power supply for complete illumination.
  • Completed
  • Completed
  • 10/21/2018
6 10/27/2018
  • Initiated driver for LED Matrix to display characters/desired pattern.
  • Systematically drafted steps for flow of the game and initiated design of algorithm for snake movement.
  • Completed
  • Completed
  • 11/14/2018
  • 11/10/2018
7 11/03/2018
  • Discussed challenges in writing the complete driver for LED Matrix, switched to the approach of modifying pre-existing library as per requirements.
  • Finalized Joystick module as input for snake control and placed order.
  • Completed
  • Completed
  • 11/04/2018
8 11/10/2018
  • Understand working of Joystick Module and implement simple driver to control directions and push button for game start.
  • Download EagleCAD software for design of schematic and layout. Further explore various options available.
  • Completed
  • Completed
  • 11/15/2018
  • 11/12/2018
8 11/13/2018
  • To read the datasheet of Nordic wireless and understand high level API's used. Realized need for Quad band Antennas and placed order.
  • Finalize components to be on PCB and kickstart with schematic.
  • Completed
  • Completed
  • 11/16/2018
9 11/17/18
  • Develop basic driver to transfer data wirelessly between two SJone boards.
  • Test working of Snake game by utilizing pushbutton switches on SJONE board.
  • Review schematic and PCB layout designs of previous years projects.
  • Completed
  • Completed
  • Completed
  • 11/19/2018
  • 11/19/2018
  • 11/19/2018
9 11/20/18
  • Review and test Nordic wireless driver for successful data transfer between two boards.
  • Schematic and Layout design on Eagle.
  • Completed
  • Completed
  • 11/21/2018
9 11/22/18
  • Integrate driver of Joystick with Nordic to wirelessly transmit control movements to recipient board.
  • Schematic and Layout design on Eagle.
  • Completed
  • Completed
  • 11/23/2018
  • 11/23/2018
9 11/22/18
  • Implement Start Screen and logic for gameover when Snake head comes in contact with its body/tail.
  • Review Schematic and Layout design.
  • Completed
  • Completed
  • 11/26/2018
  • 11/24/2018
10 11/24/18
  • Design algorithm to display score and implement two modes for playing game with/without screen border.
  • Generate PCB gerber files and provide it to manufacturer for fabrication.
  • Completed
  • Completed
  • 12/01/2018
  • 11/30/2018
10 11/27/18
  • Pre-test the complete game diligently and examine errors if any.
  • Test the fabricated PCB.
  • In-progress
  • Not Started
  •  ?
  •  ?
11 12/01/18
  • Final testing of the game and resolve flaws if any
  • Not Started
  •  ?

Parts List & Cost

Item# Part Description Vendor Qty Cost
1 SJOne LPC1758 Microcontroller Board Preet 2 $160.00
2 32x32 RGB LED Matrix Amazon 1 $56.00
3 5V/4A Power Adapter Amazon 1 $8.99
4 DC Barrel Jack Adapter - Female Fry's Electronics 1 $2.90
5 Osepp Joystick Module Fry's Electronics 1 $6.54
6 Right Angle Mini Quad Band Antenna Amazon 2 $16.52
7 PCB JLC PCB 5 $19.36
Total - - $270.31

Design & Implementation

Hardware Design

The Hardware design for baem geim involves the use of two SJone LPC1758 microcontroller boards, 32x32 RGB LED Matrix, Joystick module and Nordic Wireless Transceiver as described below. Pin configuration information for integration with PCB and power source have been detailed.

Hardware Interface

In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.

Software Design

Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.

Implementation

This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.

Testing & Technical Challenges

Describe the challenges of your project. What advise would you give yourself or someone else if your project can be started from scratch again? Make a smooth transition to testing section and described what it took to test your project.

Include subsections that list out a problem and solution, such as:

<Bug/issue name>

Discuss the issue and resolution.

Conclusion

Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?

Project Video

Upload a video of your project and post the link here.

Project Source Code

References

Acknowledgement

Any acknowledgement that you may wish to provide can be included here.

References Used

List any references used in project.

Appendix

You can list the references you used.