Go Down

Topic: Using arduino to trigger sound (Need Help, Am Noob) (Read 3323 times) previous topic - next topic



I'm a complete newbie to arduino and electronics in general. I'm working on an art installation for an end of year show and wanted to use IR sensors to trigger audio and play it through large speakers. I have an arduino uno r3, I've checked on the internet about various ways of doing thing ie, using a WTV020SD-16P Music Module and Sparkfun MP3 trigger. If I can get any information as to a simple method to achieve this, it would be much appreciated.

Forgive me if there is not enough information to warrant a response. I'm a tad inept at this sort of this, but am desperate to learn.



You will need to break this down into 2 parts:
1. Detect stuff with IR sensors. You need to get the sensors, witre them up and test to see that it all works.
2. Play sound. What type of sound will dictate the technology you need. Simple beeps can be done directly from the Arduino; playing MP3 will need specialised hardware.

The two are independent - the only connection is that when you detect you will play the sound.

If you want to plat the sound through big speakers you will probably also need an amplifier as the output levels from chips is not enough to drive something that big.

Hope this is a start. I think you should think about what you want to do first, then design the system around that.

Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com


I just got a Seeed Music Shield v1.0. I did get it to play but want to warn you that I was only able to get it to play after members of this forum sent me code they "fixed". The code that Seeed provides has issues. It would be helpful if you told us all how many songs you need to play and explain how your finished project should function. Will your IR remote simply start and stop a play list or you you want the ability to choose which songs play, skip songs, pause songs.....etc. I don't have the answers but those who do will need more specifics.


I had good luck with Lady Ada's waveshield which can be ordered from her WEb site, http://www.ladyada.net/make/waveshield/index.html   Also, as Marco_s touched on, the easiest solution was to use two Arduino's  -  one, an Uno, that the waveshield sits on and is dedicated to it.   And an older one I happened to have that only has to process my inputs (a bunch of reed switches that respond to a passing magnet) and turn them into clean 100 millisec output pulses.  These are fed into the Uno inputs through 500 ohm resistors to start each of six songs.  The two Arduinos use the same power supply and shared ground.

Some of my "songs" are actally voices, etc.   I use "Audacity" to process the material and make it compatible with the waveshield SD card.  To program IR sensor inputs should be very similar to what I have done and I believe sample code for this is available in "Arduino Examples".

Good luck.

Go Up