Sync music with Leds

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Sync music with Leds

Postby rudster » Sun Apr 25, 2010 12:33 pm

hi,

Is there a way i can use the arduino to sync music with LEDS?
Like useing an aux cord.
Then i want to move on to hooking it up to this LED table me and my friend made, then try it with the speakers on my car.
Image


Any help would be appreciated, thank you
rudster
 
Posts: 9
Joined: Wed Sep 10, 2008 5:25 pm

Re: Sync music with Leds

Postby pm6041141 » Sun Apr 25, 2010 2:06 pm

Well the answer is yes but, you should give more deets.
pm6041141
 
Posts: 77
Joined: Thu May 29, 2008 4:26 pm

Re: Sync music with Leds

Postby rudster » Sun Apr 25, 2010 2:17 pm

i wanted to know the proper way to build a circuit for it.
I found a diagram from audioguru he made this

http://www.electro-tech-online.com/attachments/electronic-projects-design-ideas-reviews/8266d1149690102-leds-sync-music-led-music-pulses-layout.png
would this circuit alone cover all the LEDs i want?
rudster
 
Posts: 9
Joined: Wed Sep 10, 2008 5:25 pm

Re: Sync music with Leds

Postby pm6041141 » Sun Apr 25, 2010 2:30 pm

I don't know how many LED's you have, or if they have to be on all the time or if they blink a bit.

Maybe, start with blinking ONE LED to the music. Maybe the pin 13 one on board then worry about the full table.
pm6041141
 
Posts: 77
Joined: Thu May 29, 2008 4:26 pm

Re: Sync music with Leds

Postby Entropy » Mon Apr 26, 2010 11:07 am

rudster wrote:i wanted to know the proper way to build a circuit for it.
I found a diagram from audioguru he made this

http://www.electro-tech-online.com/attachments/electronic-projects-design-ideas-reviews/8266d1149690102-leds-sync-music-led-music-pulses-layout.png
would this circuit alone cover all the LEDs i want?

It depends on a lot of things. A circuit like that connected to one of the ADC pins of an Arduino would allow you to react to the music, but it depends on what you want to do.

Do you want brightness to just be proportional to volume? Then the circuit above would be sufficient on its own (possibly with some buffering for lots of LEDs).
Do you want something else to react to volume? (like lights chasing for each beat maybe) - The circuit above could be wired to an ADC input, and you could have code that did "something" with that ADC input
Fancy tricks 1 - With a bunch of bandpass filters, you could have frequency-dependent interactions
Fancy tricks 2 - If you just have certain music you'd like to sync to, you can prepropgram a light sequence that matches the music. This is how the people that do computer-controlled Christmas light displays usually do things.
Fancy tricks 3 - Have software on a PC that produces DMX-512 output in reaction to music, and build a bunch of DMX-512 lighting devices. (This is my current project for the year, with the final goal being computer-controlled Christmas lights.)
Entropy
 
Posts: 472
Joined: Mon Jan 07, 2008 11:43 pm
Location: Owego, NY USA

Re: Sync music with Leds

Postby uhe » Wed Apr 28, 2010 12:04 pm

Entropy wrote:Fancy tricks 3 - Have software on a PC that produces DMX-512 output in reaction to music, and build a bunch of DMX-512 lighting devices. (This is my current project for the year, with the final goal being computer-controlled Christmas lights.)

Nice, I'm trying something similar with CAN and RGB power LEDs.
Also controlable with software on a PC but a hardware controller with soundinput would be much nicer :)
"I have not failed. I've just found 10,000 ways that won't work." - Thomas Edison
uhe
 
Posts: 178
Joined: Mon Sep 03, 2007 3:50 pm
Location: metric world

Re: Sync music with Leds

Postby rudster » Sun May 02, 2010 10:47 pm

Entropy,
im doing what you first said, i just want the LEDS to go with mainly the bass of the music and brightness pr-optional to the volume.
I might not even need the arduino,i just thought it would be easier. I'm pretty new to all this by the way.
I was thinking how would i power 172 LEDS with an aux. It took me 36v to power it useing (4) 9V batteries.
I also need to find a way to use an outlet to power it up. im guessing for that all i need is a fuse?
any advice would help appreciate it guys
rudster
 
Posts: 9
Joined: Wed Sep 10, 2008 5:25 pm

Re: Sync music with Leds

Postby Entropy » Mon May 03, 2010 8:29 am

36V is a bit of an odd voltage to find these days.

If you rewire your LED strings such that they'll run off of 24VDC, Circuit Specialists has a nice cheap 24v power supply - http://www.circuitspecialists.com/prod.itml/icOid/9590
Entropy
 
Posts: 472
Joined: Mon Jan 07, 2008 11:43 pm
Location: Owego, NY USA

Re: Sync music with Leds

Postby rudster » Mon May 03, 2010 5:20 pm

Is there more a direct way, like how Christmas lights just plug in without a power supply
rudster
 
Posts: 9
Joined: Wed Sep 10, 2008 5:25 pm

Re: Sync music with Leds

Postby Entropy » Tue May 04, 2010 9:23 am

rudster wrote:Is there more a direct way, like how Christmas lights just plug in without a power supply

LED Christmas lights have enough LEDs in series per strand (usually 25-35) that the forward voltage is high enough to just use a dropping resistor and a basic rectifier without the dropping resistor have too much power.

That is to say, the way they're designed, the power supply requirements are so simple that the power supply can be fit into the plug at the end of the strand.

Dimming AC strands presents its own challenges - it can't be done using the hardware PWM in a microcontroller, it has to be done using software PWM that is synchronized to the AC zero crossings. In general, you have to be VERY careful when messing with AC directly. That $20 24v power supply allows you to work with LED strands in a MUCH safer fashion.
Entropy
 
Posts: 472
Joined: Mon Jan 07, 2008 11:43 pm
Location: Owego, NY USA

Re: Sync music with Leds

Postby rudster » Tue May 04, 2010 3:40 pm

hmmm, i have a spare computer power supply, would that work fine? just add up the voltage?
rudster
 
Posts: 9
Joined: Wed Sep 10, 2008 5:25 pm

Re: Sync music with Leds

Postby Entropy » Wed May 05, 2010 9:53 am

rudster wrote:hmmm, i have a spare computer power supply, would that work fine? just add up the voltage?

Well it might work if you rewired your strands for 12v, but at that point you'd have to control a decent amount of current. Also a lot of PC power supplies don't like uneven rail loading. (e.g. running lots off of 12v but nothing on other lines.)

That 24v power supply from CSI is really cheap. If you live in a country other than the USA you can probably find a similar deal elsewhere.
Entropy
 
Posts: 472
Joined: Mon Jan 07, 2008 11:43 pm
Location: Owego, NY USA

Re: Sync music with Leds

Postby Muzlight » Mon Jun 11, 2012 7:42 pm

No one is probably still working on this issue since 2010 but in case you have been I think I have a solution. Take an audio output and run it through the Muzlight board. The output can connect to any array of RGBA leds. So far I've only put up videos of one light shining into an obelisk shape but there could be any array of LED's with the same controller. Check it out its www.muzlight.com The video is right at the bottom of the front page. Make sure you have a good internet connection because if it skips around you won't be able to see the syncing of the music to the light.
Muzlight
 
Posts: 1
Joined: Mon Jun 11, 2012 7:37 pm


Return to Arduino

Who is online

Users browsing this forum: No registered users and 14 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[24]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]