Hi!
I'm trying to make a VU-meter with the msgeq7 IC that I got from sparkfun. Before summer vacations I managed to make it work. Now i moved my IC to another breadboard and it's not woorking anymore. I don't know if it wasn't working before I moved everything because i didn't test it. Anyway I think I tried everything. I changed the IC to another, I changed Arduino, power supply and I still get the graph below.
//Basic MSGEQ7 Declarations
int strobePin = A0; // Strobe Pin on the MSGEQ7
int resetPin = A1; // Reset Pin on the MSGEQ7
int outPin = A2; // Output Pin on the MSGEQ7
int level[7]; // An array to hold the values from the 7 frequency bands
void setup() {
Serial.begin (9600);
// Define our pin modes
pinMode (strobePin, OUTPUT);
pinMode (resetPin, OUTPUT);
pinMode (outPin, INPUT);
// Create an initial state for our pins
digitalWrite (resetPin, LOW);
digitalWrite (strobePin, LOW);
delay (1);
// Reset the MSGEQ7 as per the datasheet timing diagram
digitalWrite (resetPin, HIGH);
digitalWrite (resetPin, LOW);
digitalWrite (strobePin, HIGH);
}
void loop() {
// Cycle through each frequency band by pulsing the strobe.
for (int i = 0; i < 7; i++) {
digitalWrite (strobePin, LOW);
level[i] = analogRead (outPin);
digitalWrite (strobePin, HIGH);
}
for (int i = 0; i < 7; i++) {
Serial.print (level[i]);
Serial.print (" ");
}
Serial.println ();
}

I followed this diagram to assemble everything :

Any ideas why it's not working anymore?
Before summer vacations I managed to make it work.
I don't know if it wasn't working before I moved everything because i didn't test it.
Did it used to work or not ?
Check the wiring against the required circuit then check it again
I haven't studied your code, but you might need a couple more timing delays to match the timing diagram.
What are you using for an audio signal?
I'm trying to make a VU-meter with the msgeq7
It's not a VU meter chip (and it's not an equalizer chip either). It's 7-band a spectrum analyzer which is something like 7 VU meters, each for a different frequency band.
I still get the graph below.
That does look "odd", but the regular serial plotter isn't going to work very well. The 1st data point represents the low-frequency band, and the 2nd data point represents the next frequency band, etc., until the loop runs again and then the 8 data point represents the low frequency band again, and the the 15th point represents the low frequency band, etc. So, if it's working properly it will look like a big mess with regular audio... If you have a pure test tone you should see a repeating pattern.
Or... IF you had a bargraph with 7 bars, and you update the bargraph data every time through the loop, THEN you'd have a spectrum analyzer display. But that requires a program on the computer.
A couple of recommendations for testing...
Use the regular serial monitor to "look" at the actual data values, and add some text so you know what frequency band each value represents. The data will be coming fast so you'll need to add a few seconds delay to each loop so you have time to read the information and/or pause the serial monitor from scrolling.
Make 7 test-tones with [u]Audacity[/u] so you can test one frequency-band at a time.
Here is the code that I use to read the MSGEQ7. Note the delay for settling time.
for (int x = 0; x < 7; x++)
{
digitalWrite(msg7Strobe, LOW); // output each DC value for each freq band
delayMicroseconds(35); // to allow the output to settle
readings[x] = analogRead(msg7DCout);
digitalWrite(msg7Strobe, HIGH);
}
It is much better if you post the images so that we do no have to download them. See
How to post images.