Go Down

Topic: LED Music Visualizer (Read 5739 times) previous topic - next topic

majordecibel

Feb 10, 2011, 02:59 am Last Edit: Feb 10, 2011, 07:15 pm by majordecibel Reason: 1
This is my first project. I noticed a few of these guys around. It's an RGB LED music visualizer. This first video doesn't do complete justice, but I hope you enjoy it (it looks super cool in real life, I think). The beat tracking code is extremly simple, but original and robust. Processing is not used; it's all stand alone on the Arduino. I've started posting instructions with more pictures/ my custom shield (it's a good Noobie project) at my blog: http://www.majordecibel.blogspot.com


http://www.youtube.com/watch?v=OgiEAk2C66Q&feature=player_embedded


It was a lot of fun :) More videos and projects in the pipeline.

Feedback would be awesome! I'm hoping to play with one of those RGB LED strips next.

Thanks!
+++ Check out The MajorDecibel Project Review, a third party project review site spotlighting electr

Nikka93


majordecibel

Thanks :)

This is just the starting point - plan to follow up with more/ new versions.
+++ Check out The MajorDecibel Project Review, a third party project review site spotlighting electr

SilverCG

That looks really good... and wanted to say thanks for inspiring me pick up my arduino again.

my music vis project has always been anti-hardware. I'm more in it for programming then circuitry
this is my take on the RGB http://www.silvercg.com/2011/02/14/arduino-rgb-led-winamp/

Cheers,
Dave

majordecibel

Hey that's awesome! I took a look at the video and your blog - well done. Thanks for the feedback :)
+++ Check out The MajorDecibel Project Review, a third party project review site spotlighting electr

shtonkalot

This is excellent.
I'm looking at doing something similar, with the rgb strips actually.
I have been playing aroung with pwm rgb mixing on the 12v strips through the arduino.
I'm looking at adding music visualisation to it so I will be checking your project out more.
I too want everything controlled on the arduino. These things are made to go to parties ;)

Thanks for sharing, I'm impressed.

Federico

Definitly cool!
I want one!
I took a look to your blog, just wanted to ask if the circuit and the code that I see there are the one used in the video...
Federico - Sideralis
Arduino &C: http://www.sideralis.org
Foto: http://blackman.amicofigo.com

majordecibel

Finished a stand alone PCB and mounted all hardware; USB powered, very simple and low cost. I have since redone this with three high brightness CREE LEDs which look great vs. the single RGB LED. Very bright!



Haven't updated the blog in a while, but plan am now planning to release full code at some point soonish, and maybe some more details at my "blog" (haven't updated in a while).

Thanks!

http://majordecibel.blogspot.com/
+++ Check out The MajorDecibel Project Review, a third party project review site spotlighting electr

Federico

#8
Jul 16, 2011, 04:41 pm Last Edit: Jul 16, 2011, 04:44 pm by Federico Reason: 1
I'd like to make at least one of those for the next party :-)
Can't wait to see the three led version, the pcb schematic and the code...   :smiley-mr-green: :smiley-mr-green:
Federico - Sideralis
Arduino &C: http://www.sideralis.org
Foto: http://blackman.amicofigo.com

willnue

Just wrote a post about the MSGEQ7 - Seven Band Graphic Equalizer in the sensor forum last night. The chip allows you to read 7 bands from an audio input. I like using it to read 3 channels and then map thier values to RGB values for the LED(s). ie...

Channel 0 -> Low -> Green LED brightness
Channel 3 -> Mid -> Blue LED brightness
Channel 6 -> high -> Red LED brightness

Even using only 3 of the 7 channels the results are great.

Check out my post from last night for links to 2 shields for the MSGEQ7:
http://arduino.cc/forum/index.php/topic,66093.15.html

willnue

nootropic

This looks really nice.  I'm really interested in the beat detection code, but I can't find it anywhere on your site.  Are you going to let us see the code?

willnue

Sorry, I didn't mean to imply it was there. I will be adding a post to my site documenting the current project I am working on, but it's still a bit away - build pictures are taken but still need to finalize some of the effects before recording videos. I also just added IR remote control, which is slowing some of the effects down too much, so I need to optimize the code a bit.

To try to give you a better picture, take a look at J Skoba's MSEQ78 tutorial and code. The original tutorial was here http://skoba.no-ip.org/msgeq7/, but the site hasn't been up in a few weeks/months. Fortunately I have a copy that I just published on my site here http://nuewire.com/info-archive/msgeq7-by-j-skoba/.

Now that you can see how to read the 7 channels from the audio source, here is a snippet from one of my basic effects to map 3 channels to RGB values for a strip of LED lights.

Note: Colorfill() refers to a function for my LED strip lights. You would replace this with the code to light up your LED(s).
Code: [Select]
void loop() {

  //read the values from the MSGEQ7
  digitalWrite(resetPin, HIGH);
  digitalWrite(resetPin, LOW);

  for (int q = 0; q < 7; q++)
  {
    digitalWrite(strobePin, LOW);
    delayMicroseconds(30); // to allow the output to settle
    spectrumValue[q] = analogRead(analogPin);

    digitalWrite(strobePin, HIGH);
  }
 
  //EQ Color Organ
  ledeqred = (spectrumValue[5])/32; // Read channel 5 as Red and divide by 32 to map it to value from 0-32
  ledeqgrn = (spectrumValue[3])/32; // Read channel 3 as Green and divide by 32 to map it to value from 0-32
  ledeqblu = (spectrumValue[1])/32; // Read channel 1 as Blue and divide by 32 to map it to value from 0-32 
 
  colorFill(Color(ledeqred, ledeqgrn, ledeqblu), 25); //Fill in the LED string with RGB values
}


willnue

majordecibel

Hi everyone, first of all thank you so much for all the views and feedback I've received over the past few months while this project has been up! It was really cool. I wish I had provided more info in greater detail, as I know some people have expressed an interest in just that. While I haven't gotten around to flushing out all of the details on the LED Music Visualizer project just yet (hopefully I will), I just wanted to let you know that I'm piloting a new blog. I'm hoping to run it as a third party "project review" site with links to other news, etc. You can check it out mdbreview.blogspot.com. My contact email is listed on the blog, so if you are interested in getting some exposure for your blog, website, or videos related to your projects, feel free to drop me an email and I will see what I can do. Cheers!
+++ Check out The MajorDecibel Project Review, a third party project review site spotlighting electr

Go Up