Difference between revisions of "F20: Tom & Jerry"
Proj user8 (talk | contribs) (→Fabrication) |
Proj user8 (talk | contribs) (→Project Source Code) |
||
Line 363: | Line 363: | ||
=== Project Source Code === | === Project Source Code === | ||
− | * [ | + | * [https://gitlab.com/tomandjerry2020/tom_and_jerry] |
Revision as of 05:29, 13 December 2020
Contents
INTRODUCTION
The classic Tom and Jerry cartoons has been a part of our lives since a decade now. Surely, you wouldn't have forgotten their chasings and fun moments inside the house. Play this game and relive the 90's era. The game is designed using RGB LED Matrix and microcontroller LPC 4058.
ABSTRACT
The idea is to relive the childhood days using this game with the characters as Tom and Jerry. Jerry will run inside the maze which will be displayed on the RGB matrix. The route for the mouse will be selected from the pre-defined path at initial state in runtime. Tom (player) will chase this mouse by tilting the board left and right. We are using the SoC accelerometer in SJ2 board for sensing the motion. The cat must catch the mouse before mouse reaches its destination hole. If cat get attracted to drink milk (this is an obstacle), then it must halt for some time, and this will waste it’s time for a while at the same place. The mouse will start running first and then after a delay, the cat will start its motion. The score will be displayed on the LCD which is optional display.
OBJECTIVE
The game objectives are as follows:
- Interfacing the RGB LED Matrix with SJTwo Microcontroller
- Coding simple to use display functions for displaying characters at any given position
- Implement code logic to play three levels for the player to win
- Tasks that can move Tom depending on the user:
- Interrupt to be generated on press of button to start game/Pause the game and switch between displays
- Introduce three lives for Tom
- Have multiple display screens
- MP3 driver for playing multiple audio depending on game stage
ABOUT THE GAME
Jerry has yet again successfully annoyed Tom. The whole house has turned into a disrupted maze and Jerry has to run for his life before Tom can catch up with him! Help an annoyed Tom to catch Jerry in this classic cat-vs-mouse maze game! Look out for ways through the maze to catch-up with Jerry before he can reach home.
Additional Features :
- The motive is to catch jerry in the disrupted house before he can reach home.
- Game has Pause and Play feature implemented.
- Tom has 3 lives before he can give up.
- Every win will take tom to next level.
- At the end of third level the player can win the game
- Every stage has its own audio which will give the player a nostalgic feeling of the classic cartoon
GAME SCREENSHOTS
TEAM MEMBERS AND RESPONSIBILITIES
- Sarika Natu
- Writing code for MP3 Decoder Driver
- Responsible to write driver to play multiple musics at various game stages
- Game Architecture
- Git Repository
- Shivani Pradeep Tambatkar
- Wiki Page Updates.
- Writing code for Accelerometer Driver
- PCB and Hardware Design
- PCB Design Verification and component assembly
- Integrating all the subsystems
- Maze Design and Graphic designing
- Game Architecture and Testing
- Game Packaging
- Wiki Page Updates.
- Soumya Sahu
- Writing initial APIs for RGB Matrix
- Integrating all the subsystems
- PCB Design Verification and component assembly
- Game Architecture and Testing
- Finance Manager
SCHEDULE
Week# | Start Date | End Date | Task | Status |
---|---|---|---|---|
1 |
|
|
|
|
2 |
|
|
|
|
3 |
|
|
|
|
4 |
|
|
|
|
5 |
|
|
|
|
6 |
|
|
|
|
7 |
|
|
|
|
8 |
|
|
|
|
9 |
|
|
|
|
10 |
|
|
|
|
11 |
|
|
|
BILL OF MATERIALS
Part | # | Cost | Source |
---|---|---|---|
SJ2 Board | 1 | $50.00 | Preet |
Sparkfun RGB (32x64) LED Matrix Display | 1 | $65.72 | Amazon |
PCB Fabrication | 1 | $25.00 | JLC PCB |
5V/4A Power Adapter | 1 | $8.99 | Amazon |
12v DC Power Jack Adapter Connector | 1 | $3.90 | Amazon |
Jumper Wires | 1 | $6.99 | Amazon |
Total Cost | $160.6 |
GAME DESIGN
The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.
RGB Matrix
- HW Interface
- SW Interface
- SW Design
- Jerry Movement
- Tom Movement
- Collision Detection
MP3 Decoder
- HW Interface
- SW Interface
- SW Design
- Flow Chart Logic to Play Multiple Sound
Accelerometer
- HW Interface
- SW Interface
Game Logic
- - Board Design
- - Game states
IMPLEMENTATION
(Code snippets and explanation)
MP3 Decoder
- - Code snippets and explanation
RGB Matrix
- - Jerry Movement
- - Tom Movement
- - Collision Detection
Accelerometer
- - Code snippets and explanation
PCB DESIGN
We have designed and developed a PCB in order to supply power for SJTwo board and RGB LED Matrix which is able to provide 5V supply efficiently. The PCB Layout is designed using the Easy EDA Online Software Tool. The Power Supply circuit board used contains IC7805 voltage regulator IC and a voltage divider to fulfill the specific power requirements. IC7805 is a linear voltage regulator which has a variable output voltage ranging from 4.8 V to 5.2 V and is suitable for our application. We have used a 5V adapter in order to power our board. This serves for both the current requirements.
Fabrication
PCB was sent to fabrication to JLCPCB China which provided PCB with MOQ 2 layers of PCB.
DRC elements (in mils):
- Track Width = 12
- Clearance = 10
- Via Diameter = 24
- Via Drill Diameter = 12
INTEGRATION AND TESTING
TECHNICAL CHALLENGES
LED Matrix
The OE pin when low, it switches off the LEDs before transition to next row) and LAT (when high) it latches the output pin with current row value). Before transitioning new row value it is important to follow the above instructions, otherwise you will see ghosting effect in the LEDs.
PCB
- Auto-routing gave lot of challenges and sometimes the wires are barely connected which throws DRC errors very frequently. Even local routing had lot of issues. So design requires careful attention and time.
- The PCB went through a lot of internal revisions even before placing order which was time-consuming.
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?
ACKNOWLEDGEMENT
REFERENCES
APPENDIX
Project Video
Upload a video of your project and post the link here.