Difference between revisions of "Playing sound (with the MP3 shield) & pressure plates"

From Interaction Station Wiki
Jump to: navigation, search
Line 19: Line 19:
  
 
'''Step 2: installing the libraries for the Sparkfun MP3 shield'''<br>
 
'''Step 2: installing the libraries for the Sparkfun MP3 shield'''<br>
The Sparkfun MP3 shield uses some libraries we need to set up in the Arduino IDE. Download [http://interactionstation.wdka.hro.nl/mediawiki/images/8/8c/MP3Libraries.zip MP3Libraries] and extract it on your computer. To install these libraries, extract the contents of the MP3Libraries folder to the corresponding path for your operating system.<br><br>
+
The Sparkfun MP3 shield uses some libraries we need to set up in the Arduino IDE. Download [http://interactionstation.wdka.hro.nl/mediawiki/images/8/8c/MP3Libraries.zip MP3Libraries] and extract it on your computer. To install these libraries, extract the contents of the MP3Libraries folder to the corresponding path for your operating system. This guide will continue on Mac OSX.<br><br>
  
 
'''Mac OSX'''<br>
 
'''Mac OSX'''<br>

Revision as of 15:20, 30 January 2018

Intro


In this tutorial we will be attaching three pressure plates or button to an Arduino. When the pressure plate is activated the Arduino plays a .MP3 file.

Requirements


Arduino Uno (+ usb cable)
Micro SD card (this stores the .MP3 files)
Sparkfun MP3 player shield (available for rent at the Interaction Station)
Pressure plates or buttons (available for rent at the Interaction Station)
An active speaker or headphones
MP3 files

Getting ready


Step 1: installing the Arduino IDE
Make sure you have downloaded the Arduino IDE for the uploading the code to the Arduino board. If you don't have it, please go to https://www.arduino.cc/en/Main/OldSoftwareReleases , click on your operating system followed by pressing the 'just download' button. Install the software on your computer, but don't open it yet! If it opens automatically, don't worry, just close it.

Step 2: installing the libraries for the Sparkfun MP3 shield
The Sparkfun MP3 shield uses some libraries we need to set up in the Arduino IDE. Download MP3Libraries and extract it on your computer. To install these libraries, extract the contents of the MP3Libraries folder to the corresponding path for your operating system. This guide will continue on Mac OSX.

Mac OSX
/Users/your_user_name/Documents/Arduino
Windows
C:\Users\your_user_name\Documents\Arduino

Finally connect the Arduino to your computer by using the usb cable.