Hello
I picked up a couple of the MSGEQ7 IC's and connected as the attached image to Pro Mini.
Using the following code from the MSGEQ7 library (and I have tried others too), I get nothing but 7 lines of randomised high numbers. This is with no audio source attached.
Nice smooth 5.12v supply to the IC's. Nothing else sharing that supply. Common 0v to the Pro Mini.
Check the values of my components, and all seem correct. Didn't have a 200k, hence the dual 100Ks.
This happens on both IC's, so a dud chip is unlikely.
/*
Example program for the MD_MSGEQ7 library
Reads the input value from the IC and displays a rolling table on the serial monitor.
*/
#include <MD_MSGEQ7.h>
// hardware pin definitions - change to suit circuit
#define DATA_PIN A0
#define RESET_PIN 11
#define STROBE_PIN 10
// frequency reading the IC data
#define READ_DELAY 50
MD_MSGEQ7 MSGEQ7(RESET_PIN, STROBE_PIN, DATA_PIN);
void setup()
{
MSGEQ7.begin();
//pinMode(DATA_PIN,INPUT);
//pinMode(RESET_PIN,OUTPUT);
//pinMode(STROBE_PIN,OUTPUT);
Serial.begin(57600);
Serial.println("[MD_MSG_SEQ7_Serial]");
}
void loop()
{
// only read every READ_DELAY milliseconds
static long prevTime = 0;
if (millis() - prevTime >= READ_DELAY)
{
prevTime = millis();
MSGEQ7.read();
// Serial output
for (uint8_t i=0; i<MAX_BAND; i++)
{
Serial.print(MSGEQ7.get(i));
Serial.print('\t');
}
Serial.println();
}
}
The output is:
910 912 912 910 911 911 909
907 906 904 906 906 904 905
912 911 910 912 911 909 911
906 906 904 905 906 905 905
912 910 912 912 910 910 911
905 906 906 904 906 906 904
910 911 911 910 909 911 911
905 906 906 904 905 906 904
912 910 910 911 910 910 912
906 906 905 905 906 905 904
911 911 910 910 911 911 910
906 905 906 906 904 906 905
910 911 911 909 911 911 909
907 905 905 906 905 904 906
911 910 911 911 909 911 912
907 905 905 906 905 904 906
910 911 911 909 911 911 909
907 907 904 906 906 905 905
910 910 911 911 909 911 911
906 905 906 906 904 906 906
912 910 910 911 910 909 911
906 905 906 905 904 906 905
910 911 910 909 911 911 909
907 905 906 906 904 906 906
911 909 911 911 910 910 911
906 907 904 905 906 905 904
911 911 909 910 911 910 910
907 905 905 906 906 904 906
912 910 909 911 911 909 911
907 905 907 906 904 906 906
909 909 910 910 909 911 911
906 906 907 905 905 906 905
910 911 909 910 911 909 910
906 905 907 906 904 906 906
911 910 909 911 911 909 911
906 907 905 904 906 906 904
910 911 910 910 911 911 909
907 907 905 905 906 905 904
910 910 911 910 910 911 911
905 906 906 905 905 906 905
909 910 911 909 911 911 910
908 906 906 907 906 905 906
911 911 909 910 911 910 910
907 905 906 906 904 906 906
911 910 909 911 911 909 911
Any ideas where I am going wrong?