DOC PREVIEW
MIT 6 111 - Virtual Pet

This preview shows page 1-2-3-4 out of 11 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 11 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Virtual PetChengHau TongOverviewz A virtual pet that lives inside the LCD display.z It listens to music and dances to it.z When it dances, the lights in the LCD display flash according to the music beat.z When it is idle, the lights express its emotion.z Music makes it stay happy and alive.z 2 main components:-beat detector and video.Beat detectionz A beat is a variation in the strength of audio signal.z Feed 2048 samples (at frequency 48khz) into FFT.z Break the frequency range into 32 subbands, and calculate the energy of the subbands.z Compare the energy of the subbands to the average energy of the subband in past one second.z If Current Energy > c*Average Energy in past one second, a beat is detected.Beat Detector Block DiagramDetectorControllerwdata waddr we raddrBRAM2048 samplesrdataFFT2048 samplesstartdoneFFT findexHistoryregistersein eout band_indexfrom_ac97readybeat_readybeatVideo Modulesz 4 video modules of fixed pixel locations- Dancing dog- Idle dog- Health Meter- Lightsz Main FSM controls the video modules.Main FSMz Initial state is idle—Lights show emotion, Idle dog video module is active.z When a beat is detected, FSM changes to dancing state—Lights flash according to music beat, Dancing dog video module is active. z Determine the health and emotion of the pet, based on the amount of music played and when music was last played.z If there is no beat after a certain amount of time, Main FSM switches back to Idle state.Dog Modules (Idle and Dancing)z Retrieve video data from ROM when activated.z ROM is 24-bit wide to store the values of 3 colors at each pixel.z Address to ROM increases everytime vcount increases.Dogdog_dataaddrROMvclockhcountvcounthsyncvsyncblankr, g, bhsyncvsyncblankenableHealth Meterz Health Point determines the color and the length of health meter.z Health meter video module draws the health meter based on the health point from Main FSM.vclockhcountvcounthsyncvsyncblankHealthr, g, bhsyncvsyncblankhealth_pointLightsz In Idle state, emotion determines the color of the lights.z In Dancing state, beat determines the color of the lights and whether the they flash.vclockhcountvcounthsyncvsyncblankLightr, g, bhsyncvsyncblankemotionEmotion LUTemotionstatebeat colorBeat LUTbeat color flashHigher Level Video Block DiagramMain FSMidenableIdle DogbeatddenableDancing Doghealth_pointHealth MeteremotionLightsstatebeatr, g, bhsyncvsyncblankr, g, bhsyncvsyncblankr, g, bhsyncvsyncblankr, g, bhsyncvsyncblankr, g, bhsyncvsyncblankvclockhcountvcounthsyncvsyncblankbeat_readyADV7125Beat


View Full Document

MIT 6 111 - Virtual Pet

Documents in this Course
Verilog

Verilog

21 pages

Video

Video

28 pages

Bass Hero

Bass Hero

17 pages

Deep 3D

Deep 3D

12 pages

SERPENT

SERPENT

8 pages

Vertex

Vertex

92 pages

Vertex

Vertex

4 pages

Snapshot

Snapshot

15 pages

Memories

Memories

42 pages

Deep3D

Deep3D

60 pages

Design

Design

2 pages

Frogger

Frogger

11 pages

SkiFree

SkiFree

81 pages

Vertex

Vertex

10 pages

EXPRESS

EXPRESS

2 pages

Labyrinth

Labyrinth

81 pages

Load more
Download Virtual Pet
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Virtual Pet and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Virtual Pet 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?