Hi. I am working on a project utilizing an infrared proximity sensor with the SparkFun MP3 Player Shield.
I have both the sensor data coming in and can play audio through a speaker wired to the MP3 shield successfully, although independently.
Essentially, what I want to end up with is a song that begins playing through the speaker when someone is detected within a certain distance from the proximity sensor. However, I haven't done much coding with Arduino and the little I have was quite a while ago, so any advice as to where to start or how to go about doing this successfully would be greatly appreciated.
I imagine it would involve some sort of code that is the equivalent of, if ir serial input is between X values then play MP3.
Thanks.
EDIT: Just realized I accidentally posted this in the wrong forum. If a mod could move this to the Project Guidance forum that would be great. Sorry!