2015年4月29日星期三

Project 3: Audio

Vital Capacitor

THEORY:
For this project, I created a program that tests a player's vital capacity. In able to proceed the game, a player must blowing to the microphone on the device NONSTOP. The device will track the data until the player stops and displays a score.

HOW IT WORKS:
The setup of the game is pretty simple. We have rows of LED's that attach to different digital pins on the arduino. Then we have a microphone that also attaches to the arduino on the analog side. Whenever the player blows to the microphone, arduino will start calculate the threshold and add up the player score. As the game score increases, more blocks of LED's will light up. The game ends when all the LED's light up meaning that the player has passed the current stage. The game will also end when the player pauses or stops blowing to the microphone.

MATERIALS:
  • Arduino
  • LED's
  • Microphone
  • Associate resistors

没有评论:

发表评论