10
1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

  • View
    212

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

1

Audio Driven Laser Tetris

6.111 Final Project Presentation

Cameron Lewis and Xin Sun

Page 2: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

2

Overview

Variant of the classic arcade game

VGA display provides all game info

Music drives the block movement

Laser projects the playing field

Page 3: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

3

Tetris Game Background

The seven possible Tetris pieces: I, T, O, L, J, S, and Z.(courtesy of Wikipedia)

Snapshot of aTetris game on right

Page 4: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

4

System Overview

Game Engine

VGA Display

Audio Module

Laser Display

Page 5: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

5

Game Engine Unit & VGA Display Unit

Debouncer andSynchronizer

button_reset

button_up

button_left

Game Engine Unit

(Contains Major and Minor FSMs)

up_sync

reset_sync(global)

DCMlabkit clock(27 MHz)

pixel_clock (31.5 MHz) – to all modules

VGA

Display

VGA signals

down_syncleft_sync

right_sync

button_down

button_right

SignalRegister

rotatedrop

leftright

disp_type[3]

score[6]

j[4]

i[5]

pixel_count[10]

line_count[10]

Counter

update_frame

clean_updatecoord_update

game_updatesignal_reset

speed[2]

rgb [24]

Page 6: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

6

Game Engine Unit

Randomizer

Minor FSMDropping Piece

Major FSMMap Controller

i0 [5]

j0 [4]

rotatedrop

rightleft

drop_type[3]

drop_type[3]

i [5]

j [4]

score [6]

reset_synci1 [5]i2 [5]i3 [5]

j1 [4]j2 [4]j3 [4]

reset_syncpixel_clockpixel_clock

clean_updategame_update

coord_update map[25][10][3]

disp_type [3]

Page 7: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

7

Audio Processing Module Audio signal digitized by AC97

codec Sampled at 48khz, 18 bit resolution

Fed through FFT module

Triggers changes in block speed upon detection of certain frequency intensities

Page 8: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

8

Audio Module

De

bo

un

ce

r /

Syn

ch

ron

ize

r

Audio Supervisory FSM

Frequency Extractor Module

Event Detector

audio_data[realtime]

reset [1]

pixel_clk(31.5 Mhz) [1]

LaserStatusLEDs

[4]

TetrisSpeed

Output [2]

audio_freq_data [255]AC97 Codec

audio_intensity_data [255]

digitized_audio_data

DCM

ac97_clock(12.288 MHz)

labkit_clk(27 Mhz) [1]

reset_clean [1]

Page 9: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

9

Laser Projection Module Laser light shines onto a 10-sided

spinning mirror head assembly

Infrared pulses synchronize the display with the labkit

Verilog code modulates the laser accordingly

Page 10: 1 Audio Driven Laser Tetris 6.111 Final Project Presentation Cameron Lewis and Xin Sun

10

Laser Module

De

bo

un

cer

/ Sy

nch

ron

izer

Laser Supervisory FSM

Image Feeder Laser Control FSM

display_pixel_data [250]

seg_sync

head_sync

seg_sync_clean [1]

reset_clean [1]reset

pixel_clk(31.5 Mhz) [1]

LaserStatusLEDs

[4]

LaserModulation

Output[1]

laser_img_data [250]

head_sync_clean[1]