Hey guys,i am a FNG in the world of arduino and i despreatly need help. My project is about the PIR sensor detecting motion and sending it to the Arduino Uno which will trigger the MP3 Shield,i have the code from online but how do u add the libraries to the sketch?*/

int pirPin = 5; // PIR sensor input pin int calibrationTime = 10; unsigned long playTime = 15000; // how long a file will play in milliseconds (15000=15 seconds) unsigned long pauseTime = 10000; // how long the pause will be after the sound ends (10000=10 seconds) int readingInterval = 20; // how often to read the sensor

// changing variables

int rantrack = 0; // track number for randomizing unsigned long currentMillis = 0; // time variable to track running time: current time unsigned long startingMillis = 0; // time variable to track running time: starting time byte result; // variable for mp3 player shield, can be used to debug

// setup

void setup() { pinMode(pirPin, INPUT); digitalWrite(pirPin, LOW);

//give the sensor some time to calibrate for(int i = 0; i < calibrationTime; i++){ delay(1000); } delay(50);

I have added these libraries To the sketch,figured it out but thanks anyway!i was trying to do it on my own but times running out and I am desperate!!my project is exactly the same with the YouTube video Arduino Cemetry Howler Project,i got the hardware down,I need help with the software.I followed the guys links ,but where do I name the tracks? Plz help!!

I don't understand this question. The MP3 player library has a playTrack() method which plays the file named trackXXX.mp3 where XXX is supplied argument, or a playMP3() method that plays the named file.

I can't tell whether the codes are in order,cause i got them online and I fun know programming!all the code suppose to do is receive the input for the PIR sensor and activate a random track on the shield