Announcements

November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!


Revision of Audio Piggy Bank from Thu, 10/04/2007 - 00:16

Project Members: 
Jonathan Breitbart

Audio Piggy Bank 

Description

For this lab, I used both the FSR and the Piezo speaker.  The FSR was taped to a 9V battery and placed in a piggy bank so that coins that are dropped in the slot in the piggy bank fall on the sensor.  Every coin that falls on the sensor causes the Piezo speaker (which is also embedded in the piggy bank) to play a tone.  For each coin that is dropped into the piggy bank,  the tone increases in pitch, until it reaches a maximum pitch level, at which point the tone reverts to the low starting tone.  For each coin that is dropped in the piggy bank, Arduino also increments the number of coins that have been dropped and prints out a message showing how many coins the user has saved on the screen.  The piggy bank can also be "emptied" by any serial input on the keyboard.  Typing anything will cause the number of coins to revert to 0 and Arduino will print a message notifying the user that the piggy bank has been emptied.  Any coins that are dropped in the piggy bank afterwards will start with the beginning low tone.

Materials

Piggy bank, FSR, Piezo speaker, Arduino board, 9V battery with tape to hold the FSR in place

Arduino Code

forthcoming

Sample Video

 


Powered by Drupal - Design by Artinet