Download presentation
Presentation is loading. Please wait.
1
Whistle Pongbat Peter Capraro Michael Hankin Anand Rajeswaran
2
Concept “Mortal Pongbat” meets “Brick” Paddle Control Options –Noise Controlled Paddle –Frequency Controlled Paddle Slide Whistle for more consistent sine waves Slide Whistle/Microphone Controller
3
Rules User scores if ball gets to right side of screen –Computer “blocks” protect that side –Bullet system to destroy blocks “Computer” scores if ball gets to left side of screen –User has the paddle to protect this side –Paddle gradient to alter direction of ball movement Game played to 5 points
4
Architecture
5
Audio Controller Uses CODEC for analog to digital conversion Splits clock to package sound byte WAV format (taken from MindTunes group, 2008) Passes 16 binary bits as converted integer
6
VGA Controller Component attributes passed from software –Paddle –Ball –Score –Blocks –Bullet
7
Software Paddle Control –Integer representation of WAV format Positive Numbers: 0 - 32,767 Negative Numbers: 65,536 - 32,768 Bullet Control –Three hits to charge –One more hit fires –Destroys one or two blocks Ball Control –Motion –Direction
8
Frequency Algorithm Tested In MatLab –Slide whistle showed decent sine wave –Broke down at extreme frequencies Algorithm –Essentially reduce to square wave –Average consecutive period measurements Frequency still inconsistent when frequency moved quickly –Solution: Tell user to move it slowly
9
Paddle Movement Mechanism Problem –On average, calculated pitch followed expected pitch –Wide and Constant Oscillation Solution –Extreme High and Low boundary values required to change direction –Reaching boundary just once begins consistent motion
10
Lessons Learned FPGA Board and hardware/software communication The importance of setting clear, simple, and testable goals Don’t reinvent the wheel…but don’t trust that it turns correctly in the first place. Not easy to work when somebody is always whistling annoyingly in the lab.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.