Go Down

Topic: Syncing LEDs with Music Tracks (Read 547 times) previous topic - next topic

VAlexander

Mar 18, 2013, 09:32 pm Last Edit: Mar 19, 2013, 01:35 am by VAlexander Reason: 1
Hey Everyone!

I'm new to the forum and new to using Arduino. I'm a quick learner and know how to code a bit of Objective C (ios mainly, which might be helpful). With that said, I have a project that I really want to make possible.

My goal so to have a hollow sculptural piece, where I can place LEDs inside (They'll shine through the eyes). I'll also have a small bluetooth speaker in the piece (Veho Brand) playing around 8 tracks in a row, in an infinite loop. I want to program the LEDs to fade into a specific color for each track.

When I think about it I picture the speaker connected to my ios device which will provide the audio source, and I was thinking of linking an arduino with LED's, via bluetooth to the speaker. What do you guys think? In fact, I don't know where to start really. Which arduino would you recommend, and is there any recycled code that might do this exact thing? Is there a better way of doing it? The colors that I want are yellow, orange, red, pink, purple, blue, green, and white. Thank you so much!!!!

XD

Best,
VAlexander

mixania

I think you should consider looking up what a "low-pass filter" is. Basically it filters out  different frequencies and then you could use does as inputs and write some code to it. I think thats a good step to start with. Consider "high-pass filter" a well.

http://en.wikipedia.org/wiki/Low-pass_filter
http://en.wikipedia.org/wiki/High-pass_filter

Tutorial:
http://www.instructables.com/id/Arduino-Waveform-Generator/?ALLSTEPS
Arduino Uno R3
Mac OSX Lion

VAlexander

Hello Mixania!

Thanks for your reply but I'm not really trying to show any frequencies or anything. In fact it's much more simple. I just want to make the LEDs glow a certain color (yellow when track 1 is playing, orange when track 2 is playing, red when track 3 is playing, etc.) My main question is more about where to start, in terms of which arduino to get, and how to set it all up in terms of connecting it together (bluetooth? etc). Thanks though! : )




laadams85

I'm not entirely sure why you want to use bluetooth, but you'll have a hard time sending audio data using an arduino, and getting bluetooth setup.  What you can do is use an mp3 shield to play the audio.
https://www.sparkfun.com/products/10628
Then get yourself a couple of rgb LEDs.
https://www.sparkfun.com/products/10820
You'll also need resistors for you LEDs to limit their current draw.  You can use this to calculate the appropriate resistor value.
http://led.linear1.org/1led.wiz
Note that you'll need different resistance values for each color.

VAlexander

Hello laadams85,

Thanks for the help. The non-bluetooth approach makes so much sense now. However which Arduino board would you recommend? Also one LED for each eye would make logical sense right? Last but not least, how would I power the whole piece?

I'm planning on having the LEDs connect to the Arduino board which will look at what track is playing from the microSD on the mp3 shield, and then change the RGB values to a certain number. The mp3 shield will be connected to my small veho speaker (using an aux cable) to emit sound. How would I power my Arduino board though? Thank you and sorry, I'm just new to all this.

XD :)

Go Up