F21: Juvenile Jumpers

From Embedded Systems Learning Academy
Revision as of 06:15, 16 December 2021 by Proj user6 (talk | contribs) (LED MATRIX)

Jump to: navigation, search

Juvenile Jumpers

Abstract

Doodle Jump is an endless platform game in which there are enemies and obstacles on various platforms. It is a single-player game. The doodle is a four-legged creature and has a trunk that he uses to shoot at enemies. The objective of the game is to go as high as you can without falling while avoiding/killing monsters and random obstacles. After each level, the difficulty of the game increases with more enemies and obstacles.

High level layout of Doodle Jump

Objectives & Introduction

The idea is to build the doodle jump game on a 64x64 RGB LED Screen. The game is played using a joystick. The doodle keeps on jumping and its direction can be controlled using left and right control of the joystick, which can also be used in forward and backward direction as gun to shoot the monsters. MP3 decoder is used for different sound effects in the background of game.

Team Members & Responsibilities

Ritika Beniwal

  • MP3 decoder driver
  • Game Logic
  • PCB design verification
  • WiKi page handling

Anuja Sapkal

  • Joystick driver
  • Game Logic
  • PCB Schematic and Board Design
  • WiKi page handling

Sourab Gupta

  • LED driver
  • Game Logic
  • PCB design verification
  • WiKi page handling

Schedule

Week# Start Date End Date Task Status
1
  • 09/23/2021
  • 09/28/2021
  • Read previous projects
  • Brainstorming on various ideas
  • Finalizing Project proposal
  • Completed
  • Completed
  • Completed
2
  • 09/29/2021
  • 10/10/2021
  • Discuss and create a list of required components
  • Ordering of the Parts
  • Completed
  • Completed
3
  • 10/11/2021
  • 10/19/2021
  • Setup git repository
  • Prepare and update wiki schedule
  • Completed
  • Completed
4
  • 10/20/2021
  • 10/31/2021
  • Distributing tasks among members
  • Read LED matrix Datasheet and start working on its driver
  • Read Joystick datasheet and start working on its driver
  • Read MP3 decoder datasheet and start working on its driver
  • Completed
  • Completed
  • Completed
  • Completed
5
  • 11/01/2021
  • 11/08/2021
  • Review pins of sjtwo board to be used by components
  • Finalize Wiki Schedule
  • Understand high-level layout of the project
  • Develop basic Led driver
  • Develop basic Joystick Driver
  • Develop basic MP3 Decoder
  • Completed
  • Completed
  • Completed
  • Completed
  • Completed
  • Completed
6
  • 11/09/2021
  • 11/16/2021
  • Complete the design for PCB printing
  • Order circuit boards components
  • Create platforms and monsters on LED matrix
  • Test MP3 decoder
  • Interface Joystick and test monster movements on LED
  • Completed
  • Completed
  • Completed
  • Completed
  • Completed
7
  • 11/17/2021
  • 11/23/2021
  • Integration of circuit boards and microcontroller
  • Integrate game logic code with LED matrix
  • Synchronize game sounds with game logic
  • Test the modules
  • Completed
  • Completed
  • Completed
  • Completed
8
  • 11/24/2021
  • 11/30/2021
  • Work on Game logic development
  • Testing and debugging the game logic
  • Completed
  • Completed
8
  • 12/01/2021
  • 12/06/2021
  • Improving the game logic
  • Final testing of all the modules with the board
  • Bug and error fixes
  • Update the wiki page.
  • Completed
  • Completed
  • Completed
  • Completed
9
  • 12/07/2021
  • 12/15/2021
  • Finalize the gameplay
  • Design game casing and aesthetics
  • Ready for demo
  • Update the wiki page.
  • Completed
  • Completed
  • Completed
  • Completed


Parts List and Cost

Item# Part Name Part Supplier Quantity Cost
1

64x64 RGB LED Matrix

https://www.sparkfun.com/products/14824

1

$ 87.4

2

Sjtwo board

https://www.amazon.com/Generic-SJTwo-SJ2-SJSU/dp/B08G9LRPZ8

1

$ 50

3

Two-axis Joystick

https://www.amazon.com/gp/product/B01M5L1BMS/

1

$ 4.25

4

MP3 Decoder

https://www.amazon.com/gp/product/B07JCXWY9M/

1

$ 8.05

5

Power Supply

https://bit.ly/31QJkoN

1

$ 7.99

6

PCB

https://jlcpcb.com/

5

$14.21



Design & Implementation

Juvenile Jumpers game is designed using SJ-Two board and RGB LED Matrix to see the visuals. The game is controlled by using a two-axis joystick and to play the music we have used an MP3 decoder.

Hardware Design

PCB Design

All the essential hardware is retained using a printed circuit board. For this game, we have designed a two-layer PCB. The schematic and board layout for the PCB is designed using Autodesk's Eagle software and the fabrication vendor is JLCPCB.

Schematic
PCB Bottom View
PCB Top View


LED MATRIX

A 64x64 RGB LED Matrix is used as a display. Each LED can be controlled independently.

RGB LED Matrix
LED MATRIX
Sr. No. SJTwo board Pin LED MATRIX Function
1 P1_31 R1 Upper half (Section 1)
2 P1_30 G1 Upper half (Section 1)
3 P1_23 B1 Upper half (Section 1)
4 P1_28 R2 Lower half (Section 2)
5 P1_29 G2 Lower half (Section 2)
6 P2_0 B2 Lower half (Section 2)
7 P2_2 A Address Line
8 P2_4 B Address Line
9 P2_5 C Address Line
10 P2_6 D Address Line
11 P2_0 E Address Line
12 P2_7 Clk For upper half and lower half
13 P2_8 Latch For upper half and lower half
14 P2_9 OE For upper half and lower half

MP3 Decoder

MP3 Decoder

Dual Axis Joystick

This project uses the joystick to control the movements of the jumper. This project uses x-axis values to move the jumper to the left and right sides. A switch on the joystick is used to start the game by pressing the switch. The joystick provides the analog output, therefore the joystick is connected to ADC pins of the SJTwo board. It is operated on a 5V power supply.

Dual Axis Joystick

Hardware Interface

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 sub-sections that list out a problem and solution, such as:

Bug/issue and Solution

1. Collision detection with tiles not working after the 32nd column. This is due to the variable was not typed cast to uint64_t.

2. The random number generator generates the same pattern and hence the tiles. Seeding just once with xTaskGetTickCount() did not generate randomness.

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

We would like to sincerely thank Professor Preetpal Kang for designing such a fantastic course and for his continuous guidance and support throughout the implementation of this project. Further, we would like to thank the ISA team for their advice.

References Used

Appendix

You can list the references you used.