I'm a university student with not too much experience with coding and everything (you can clearly tell by the way I described that). I'm designing a project where based off a motion sensor (PIR), and MP3 file would be played off of the laptop (it would be one file of "catcalls", and it would pause and pla based on the motion detection). I just don't know how to approach this first-hand, and I would really really appreciate it if anyone can help! Basically, I'm just wondering how the PIR sensor/arduino would connect to the MP3 file to start playing. Please help!
I'm a university student with not too much experience with coding and everything (you can clearly tell by the way I described that). I'm designing a project where based off a motion sensor (PIR), and MP3 file would be played off of the laptop (it would be one file of "catcalls", and it would pause and pla based on the motion detection). I just don't know how to approach this first-hand, and I would really really appreciate it if anyone can help! Basically, I'm just wondering how the PIR sensor/arduino would connect to the MP3 file to start playing. Please help!
Thanks so much.
Are you required to use your laptop in order to play the MP3 file? Or I was thinking you could use something like this. So this way you could simply mount this on top of your Arduino board, if compatible, and play the audio from this shield.
SMM2:
Are you required to use your laptop in order to play the MP3 file? Or I was thinking you could use something like this. So this way you could simply mount this on top of your Arduino board, if compatible, and play the audio from this shield.
It's just that to be honest, I have no clue how shields work in this case...is it not possible through just the laptop since the arduino is connected to the laptop/computer as a power source?
Now, I'm thinking in order to play the audio from the computer, you would have to have the Arduino board tell your computer to start playing the audio, and have a way of stopping it...
Now, I'm thinking in order to play the audio from the computer, you would have to have the Arduino board tell your computer to start playing the audio, and have a way of stopping it...
It's just that there's a lot of components to it and I don't have too much time So could one program it in a way where once the PIR sensor goes off and triggers the mp3 file to start playing, can it pause, and then play again after each motion detection? Or would it restart the mp3 file each time the sensor goes off?
After looking around this is what I found if you want to play the audio from your computer:
It's basically the same concept, just instead of sending an email you'll be playing an MP3 file from your computer. To me this would be more difficult, but would possibly be faster to put together if you know what you're doing. Meaning if you know Python, which I don't.