Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Google Chrome's T-rex Runner Game but an Embedded Version. CS/ECE353 project@university of Wisconsin-Madison

License

NotificationsYou must be signed in to change notification settings

kx-Huang/Embedded-T-Rex-Runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Chrome's Dinosaur T-rex Runner Game but an Embedded Version

Demo

Project Description

This project is a course project inCS/ECE353 Microprocessor Systems@University of Wisconsin-Madison. In general, we implement an embedded version of Google Chrome's T-rex Runner with some more interesting features usingFreeRTOS.

Game Rules

Basic Google Chrome's dinosaur T-rex runner game rules with following addional features:

  • Cactus: generate randomly with hardware noise picked up inADC
  • Button: instant vertical jump (up/down)
  • Joystick: control dinosaur's horizontal positions (move left/right)
  • Light sensor: play without button (wave hand in front of light sensor to jump)
  • Accelerometer: contol dinosaur's running speed (tilt left/right)

Hardware

  • MSP-EXP432P401R with MKII Boosterpack from Texas Instruments.
  • Peripherals:
    • LED
    • Button
    • Buzzer
    • Joystick
    • LCD Display
    • Light sensor
    • Accelerometer
  • Working System Clock:48 MHz

Software

  • Programming Language:C
  • IDE:Code Composer Studio
  • Operating system transplant:FreeRTOS
    • Download source code fromFreeRTOS official website
    • Version:FreeRTOS 202112.00
    • include path:
      • ${PROJECT_LOC}/FreeRTOS/Source/include
      • ${PROJECT_LOC}/FreeRTOS/Source/portable/CCS/ARM_CM4F
  • Peripheral Communication Protocal:SPI andi2c

Implementation Details

  • Random cactus generation: Hardware noise converted byADC14 during periodic interrupts
  • LCD update: handled with message queueQueue_LCD
    1. Future frame buffers are calculated in advanced and enqueued fromTask_Game
    2. Current frame dequeued inTask_LCD to update LCD display
    3. 20ms delay is necessary inTask_Game to handle button/joystick/accelerometer data, otherwise delay would be observable.
    4. Dataflow controls by SPI synchronous communication protocol
  • ACD notification:
    1. Task_XX_Timer: activate ADC to generate ADC interruption to step into interrupt handlerADC14_IRQHandler
    2. ADC14_IRQHandler: read ADC values sequence and turn on task notification forTask_XX_Bottom_Half
    3. Task_XX_Bottom_Half: waken byADC14_IRQHandler and update joystick/accelerometer status

About

Google Chrome's T-rex Runner Game but an Embedded Version. CS/ECE353 project@university of Wisconsin-Madison

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp