First time posting, very new to the Arduino environment. I have to say I love what I've been doing so far, testing different instructables and seeing what this little board can do. I have a Mega and Uno, and I need help with a project I would like to make. I've been looking at different ways to approach this, and need some guidance with my installation. I am an absolute noobie when it comes to coding, so I would appreciate some help with that and with what tools to use. I have built a laser trip-wire alarm that is self calibrating, and would like to base my project on that. I used this tutorial.
I would like to make my project a bit bigger, and not have to use a computer running software (like processing or other programs, IF POSSIBLE). I want to basically make the project a bit bigger. My hopes would be this:
When the Arduino turns on, all the sensors calibrate to the ambient lighting, and signal they are done. Then the Arduino turns on a relay, which turns on the lasers, and it calibrates the LDR sensors (photo resistor) with the lasers on. Now, whenever one of the lasers is tripped (the LDR value goes to ambient), the Arduino triggers a sound file. Each sensor has its own unique sound file assigned to it, and these play through one of four (mono) sound channels. The sound files would be roughly a 10 seconds long. When the sound stopped playing, the sensor could be tripped again and would play the sound again. These would have to play at the same time if more then one LDR sensor would be tripped.
My necessities would be:
-using 4 audio channel output
-using the Arduino to relay the lasers on
-using some sort of self calibrating code (that would allow for resetting a few times a day)
I have several Raspberry Pi's available to me, if they would be necessary to play the audio, but I have never held one in my hand so I have zero experience with them. I would also really like to not have to use a computer, because I want the whole thing to be as small as possible. But of course I understand that because of the 4 channel audio it might not be possible.
A further step in this project would be for the Arduino to have some sort of switch that could choose a 'audio bank' to play the sounds from, basically choosing one of four different folders of audio to play back when the LDR sensors are tripped).
Any sort of guidance is would be really helpful, I think I am a fast learner, but on the other hand two weeks ago I didn't know what a resistor was for...
Thanks in advance for any help,