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).
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