Difference between revisions of "F22: Bob Burgers"

From Embedded Systems Learning Academy
Jump to: navigation, search
(Design & Implementation)
(Pin Configuration)
Line 295: Line 295:
 
|-
 
|-
  
! scope="row"| R1
+
! scope="row" style="background:white;"|<span style="color:black"> R1
| PIN for Red terminal of RGB LED for the upper half of LED Matrix
+
|   PIN for Red terminal of RGB LED for the upper half of LED Matrix
! P0_0
+
!scope="row" style="background:white;"|<span style="color:black"> P0_0
 
|-
 
|-
! scope="row"| G1
+
! scope="row" style="background:white;"|<span style="color:black">  G1
| PIN for Green terminal of RGB LED for the upper half of LED Matrix
+
| style="background:white;"|<span style="color:black"> PIN for Green terminal of RGB LED for the upper half of LED Matrix
! P0_1
+
! scope="row" style="background:white;"|<span style="color:black"> P0_1
 
|-
 
|-
! scope="row"| B1
+
! scope="row" style="background:white;"|<span style="color:black"> B1
 
| PIN for Blue terminal of RGB LED for the upper half of LED Matrix
 
| PIN for Blue terminal of RGB LED for the upper half of LED Matrix
! P2_2
+
! scope="row" style="background:white;"|<span style="color:black"> P2_2
 
|-
 
|-
! scope="row"| R2
+
! scope="row" style="background:white;"|<span style="color:black"> R2
 
| PIN for Red terminal of RGB LED for the lower half of LED Matrix
 
| PIN for Red terminal of RGB LED for the lower half of LED Matrix
! P2_4
+
! scope="row" style="background:white;"|<span style="color:black"> P2_4
 
|-
 
|-
! scope="row"| G2
+
! scope="row" style="background:white;"|<span style="color:black"> G2
 
| PIN for Green terminal of RGB LED for the lower half of LED Matrix
 
| PIN for Green terminal of RGB LED for the lower half of LED Matrix
! P2_5
+
! scope="row" style="background:white;"|<span style="color:black"> P2_5
 
|-
 
|-
! scope="row"| B2
+
! scope="row" style="background:white;"|<span style="color:black"> B2
 
| PIN for Blue terminal of RGB LED for the lower half of LED Matrix
 
| PIN for Blue terminal of RGB LED for the lower half of LED Matrix
! P2_6
+
! scope="row" style="background:white;"|<span style="color:black"> P2_6
 
|-
 
|-
! scope="row"| A
+
! scope="row" style="background:white;"|<span style="color:black"> A
 
| Mux pin for row selection
 
| Mux pin for row selection
! P2_7
+
! scope="row" style="background:white;"|<span style="color:black"> P2_7
 
|-
 
|-
! scope="row"| B
+
! scope="row" style="background:white;"|<span style="color:black"> B
 
| Mux pin for row selection
 
| Mux pin for row selection
! P2_8
+
! scope="row" style="background:white;"|<span style="color:black"> P2_8
 
|-
 
|-
! scope="row"| C
+
! scope="row" style="background:white;"|<span style="color:black"> C
 
| Mux pin for row selection
 
| Mux pin for row selection
! P2_9
+
! scope="row" style="background:white;"|<span style="color:black"> P2_9
 
|-
 
|-
! scope="row"| D
+
! scope="row" style="background:white;"|<span style="color:black"> D
 
| Mux pin for row selection
 
| Mux pin for row selection
! P0_16
+
! scope="row" style="background:white;"|<span style="color:black"> P0_16
 
|-
 
|-
! scope="row"| E
+
! scope="row" style="background:white;"|<span style="color:black"> E
 
| Mux pin for row selection
 
| Mux pin for row selection
! P0_15
+
! scope="row" style="background:white;"|<span style="color:black"> P0_15
 
|-
 
|-
! scope="row"| OE
+
! scope="row" style="background:white;"|<span style="color:black"> OE
 
| Output Enable
 
| Output Enable
! P1_28
+
! scope="row" style="background:white;"|<span style="color:black"> P1_28
 
|-
 
|-
! scope="row"| LATCH
+
! scope="row" style="background:white;"|<span style="color:black"> LATCH
 
| Data Latch
 
| Data Latch
! P1_29
+
! scope="row" style="background:white;"|<span style="color:black"> P1_29
 
|-
 
|-
! scope="row"| CLK
+
! scope="row" style="background:white;"|<span style="color:black"> CLK
 
| Clock Signal
 
| Clock Signal
! P0_17
+
! scope="row" style="background:white;"|<span style="color:black"> P0_17
 
|-
 
|-
  
! scope="row"|  
+
 
! scope="col" | MP3 Decoder
+
 
|  
+
 
 +
 
 +
! scope="row" style="background:white;"|<span style="color:black">
 +
! scope="col" | MP3 Module
 +
| scope="row" style="background:white;"|<span style="color:black">
 +
|-
 +
 
 +
! scope="row" style="background:white;"|<span style="color:black"> RX
 +
| UART Receive
 +
! scope="row" style="background:white;"|<span style="color:black"> P4_28
 +
|-
 +
! scope="row" style="background:white;"|<span style="color:black"> TX
 +
| UART Transmitter
 +
! scope="row" style="background:white;"|<span style="color:black"> P4_29
 +
|-
 +
 
 +
 
 +
 
 +
 
 +
 
 +
! scope="row" style="background:white;"|<span style="color:black">
 +
! scope="col"| Buttons
 +
| scope="row" style="background:white;"|<span style="color:black">
 
|-
 
|-
! scope="row"| RX
+
 
| UART Receive From MP3 Decoder
+
! scope="row" style="background:white;"|<span style="color:black"> Either Pin
! P2_1
+
| Pause Button
 +
! scope="row" style="background:white;"|<span style="color:black"> P2_5
 
|-
 
|-
! scope="row"| TX
+
! scope="row" style="background:white;"|<span style="color:black"> Either Pin
| UART Send Command from SJ-2 Main Board
+
| Reset Button
! P2_0
+
! scope="row" style="background:white;"|<span style="color:black"> P2_6
 
|-
 
|-
 +
 +
 +
  
! scope="row"|  
+
 
! scope="col"| XBEE Module Receiver
+
 
|  
+
 
 +
! scope="row" style="background:white;"|<span style="color:black">
 +
! scope="col"| Joysticks
 +
| scope="row" style="background:white;"|<span style="color:black">
 
|-
 
|-
  
! scope="row"| RX
+
! scope="row" style="background:white;"|<span style="color:black"> X
| UART Receive From Game Controller
+
| Player 1
! P0_11
+
! scope="row" style="background:white;"|<span style="color:black"> P1_30
 
|-
 
|-
! scope="row"| VCC
+
! scope="row" style="background:white;"|<span style="color:black"> X
| VCC Supply
+
| Player 2
! VCC 3.3
+
! scope="row" style="background:white;"|<span style="color:black"> P0_25
 
|-
 
|-
 
|}
 
|}
</li>
+
 
 
=== Hardware Design ===
 
=== Hardware Design ===
 
Discuss your hardware design here.  Show detailed schematics, and the interface here.
 
Discuss your hardware design here.  Show detailed schematics, and the interface here.

Revision as of 02:56, 15 December 2022

Soccer Pong

Project Title

Soccer Pong

Abstract

Parking Frenzy is car parking video game. The player will be able to move the car in right or left direction, the road itself will be descending towards the car and will also consist of obstacles such as other vehicles. The road will have lanes through which the car must navigate to ultimately be able to slot itself into the right parking spot alongside the road. The parking spots will be randomly generated along the edge of the LED matrix and the player must navigate the car into the spot at the right time or else it will result in a crash. The difficulty of the game will increase as the player reaches a certain amount of points. The difficulty will increase in terms of the speed of the car and the number of obstacles. The final score of the player will be displayed at the end of every game. a speaker attached to the board will generate the game sounds.

Objectives & Introduction

Show list of your objectives. This section includes the high level details of your project. You can write about the various sensors or peripherals you used to get your project completed.

Team Members & Responsibilities

William Hernandez

Profile picture.PNG

Responsibilities

  • Led Matrix Graphics
  • Gameplay Logic
  • Music System Integration
  • Game Objects and Hit Detection
  • Debugging and Testing


Tin Nguyen

Matthew Hanna

21CF6ADC-3151-40D7-A40F-DE8CC5FF3433 Small.jpeg

Responsibilities

  • Joystick input with ADC reading potentiometer positions for paddle movement
  • GPIO input for button pressing pause and reset
  • locking mechanism for game pausing and game reset loop entrance
  • enclosure fabrication

Schedule

Week# Start Date End Date Task Status
1
  • 10/11/2022
  • 10/11/2022
  • 10/18/2022
  • 10/18/2022
  • Read previous projects, gather information and discuss among the group members.
  • Create GitLab repository for project
  • Completed
  • Completed
2
  • 10/19/2022
  • 10/24/2022
  • Order necessary parts
  • Completed
3
  • 10/25/2022
  • 11/01/2022
  • Read and familiarize with LED Matrix Datasheet
  • Read Datasheet of all other components
  • Completed


4
  • 11/02/2022
  • 11/08/2022
  • Develop graphics driver for LED matrix and implement initial game objects
  • Develop schematic and layout of PCB
  • Completed
5
  • 11/09/2022
  • 11/09/2022
  • 11/09/2022
  • 11/09/2022
  • 11/10/2022
  • 11/15/2022
  • 11/15/2022
  • 11/15/2022
  • Finalize wiki schedule
  • Order circuit boards components and complete the design for printing
  • circuit board and component assembly
  • Circuit board testing
  • Additional accessories if required and finalization of hardware
  • Completed
  • Completed
  • Completed
  • Completed
  • Completed
6
  • 11/16/2022
  • 11/22/2022
  • Integration of circuit boards and microcontroller
  • Game logic development
  • Testing and debugging the game logic
  • Completed
  • Completed
  • Completed
7
  • 11/23/2022
  • 11/29/2022
  • Integrate game logic code with LED matrix
  • Integrate game sounds with game logic
  • Completed
  • Completed
8
  • 11/30/2022
  • 12/06/2022
  • Integrate subsystem
  • Finalizing the video game
  • Update the wiki page.
  • Adding the ending closure for the game
  • Bill of materials
  • Completed
  • Completed
  • Completed
  • Completed
  • Completed
9
  • 12/07/2020
  • 12/13/2022
  • Address bugs during testing of integrated system
  • Test pause/play functionality
  • Completed
  • Completed
  • Completed
10
  • 12/14/2022
  • 12/14/2022
  • 12/14/2022
  • 12/14/2022
  • 12/14/2022
  • 12/15/2022
  • 12/15/2022
  • 12/15/2022
  • Final Demo
  • Update Gitlab repo with final code.
  • Update test video.
  • Update the wiki page.
  • Completed
  • Completed
  • Completed
  • Completed


General Parts

Item # Part Seller Quantity Total Cost
1 64x64 RGB LED Matrix Sparkfun 1 $85.95
2 SJ-2 Boards SJSU 1 $50.00
4 PEMENOL Voice Playback Module Amazon 1 $10.19
5 Joysticks Amazon 2 $20.00
6 5v Power Supply Amazon 1 $15.19
7 Enclosed Speaker Set - 3W 4 Ohm Amazon 1 $12.48
8 Buttons Amazon 2 $8.95
9 Standoffs Amazon 1 $24.95
10 PCB [link Seller] 1 $40.00
11 Aluminum Enclosure Anchor Electronics 1 $45.12

Design & Implementation

The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.

Pin Configuration

  • Pin# LED Matrix Pin SJ-2 PIN
    R1 PIN for Red terminal of RGB LED for the upper half of LED Matrix P0_0
    G1 PIN for Green terminal of RGB LED for the upper half of LED Matrix P0_1
    B1 PIN for Blue terminal of RGB LED for the upper half of LED Matrix P2_2
    R2 PIN for Red terminal of RGB LED for the lower half of LED Matrix P2_4
    G2 PIN for Green terminal of RGB LED for the lower half of LED Matrix P2_5
    B2 PIN for Blue terminal of RGB LED for the lower half of LED Matrix P2_6
    A Mux pin for row selection P2_7
    B Mux pin for row selection P2_8
    C Mux pin for row selection P2_9
    D Mux pin for row selection P0_16
    E Mux pin for row selection P0_15
    OE Output Enable P1_28
    LATCH Data Latch P1_29
    CLK Clock Signal P0_17
    MP3 Module
    RX UART Receive P4_28
    TX UART Transmitter P4_29
    Buttons
    Either Pin Pause Button P2_5
    Either Pin Reset Button P2_6
    Joysticks
    X Player 1 P1_30
    X Player 2 P0_25

    Hardware Design

    Discuss your hardware design here. Show detailed schematics, and the interface here.

    Mp3 module.PNG Joysticks.PNG Enclosure.PNG Led matrix front64x64.PNG Led matrix back.PNG Speakers.PNG Buttons.PNG

    Hardware Interface

    Circuit Block Diagram


    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

    Gameplay Flowchart

    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 name>

    Bugs

    • Joystick input had a fixed paddle speed
    • Pause and Reset buttons service with ISR was difficult to debounce, moving button input detection to a Task would be more practical

    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

    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.