Tiny Arduino Music Visualizer: https://learn.adafruit.com/piccolo?embeds=allow
Please see this video. After restarting Arduino the LED matrix is off, and the lights do not turn on until I make a noise. After that point they act as you see in the video and making extra noises does not change the display.
Photo of wiring.
LED Matrix works with a bicolor8x8 example project.
Thank you for any help.
Problem with Tiny Arduino Music Visualizer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- fid
- Posts: 74
- Joined: Wed Sep 25, 2013 3:00 pm
Re: Problem with Tiny Arduino Music Visualizer
Hi karts, I am glad to see your post and another one from last year by someone else. I thought it was me or the equipment I bought. I switched from a Nano to a Pro Mini to a Uno R3. Then I thought it was the microphone. I replaced it with another with the same results. Changed the wire lengths and used four different breadboards. I also used a little perma-proto board that fits into a tiny mint tin.
I ran many tests and different arduino sketches with the microphones to look at the end result outputs. I am beginning to think that this project does not really work. A couple of weeks ago I read a post reply about changing the numbers in the array noise[64]. I think the reply was from Phil Burgess. Anyway, whoever it was said to double the first eight numbers until the LED matrix gave the desired output. The original poster said all he had to change the second number in the array to 64. I tried it and it didn't work for me. I changed the first eight numbers way up. I don't know how high the numbers should go and I went up to 512 on each one of them. I didn't notice a change on the LED matrix.
I am not like a genius or anything, but I am persistent. If I figure out a way to make this work I'll let you know by posting again right here.
If anyone else has any hints to get the piccolo music visualizer working please let us know.
->Greg<-
I ran many tests and different arduino sketches with the microphones to look at the end result outputs. I am beginning to think that this project does not really work. A couple of weeks ago I read a post reply about changing the numbers in the array noise[64]. I think the reply was from Phil Burgess. Anyway, whoever it was said to double the first eight numbers until the LED matrix gave the desired output. The original poster said all he had to change the second number in the array to 64. I tried it and it didn't work for me. I changed the first eight numbers way up. I don't know how high the numbers should go and I went up to 512 on each one of them. I didn't notice a change on the LED matrix.
I am not like a genius or anything, but I am persistent. If I figure out a way to make this work I'll let you know by posting again right here.
If anyone else has any hints to get the piccolo music visualizer working please let us know.
->Greg<-
- fid
- Posts: 74
- Joined: Wed Sep 25, 2013 3:00 pm
Re: Problem with Tiny Arduino Music Visualizer
I ran some tests using the Microphone Amplifier Breakout and the Measuring Sound Levels sketch from the tutorial about the Microphone. I tried on both an Uno R3 and a Nano. I used two Arduinos just in case one had a bad 3v3 pin output. Here's the sketch from the tutorial web page.
I was getting a fluctuation from 0.01 to 0.02 when watching the Serial monitor. I slowly turned the dial on the pot from one end to the other. The output to the Serial Monitor went from 0.01 to 0.08. 0.08 is the highest I could get the output to go. I decided to check with a different Arduino. I did notice when I touched the jeweler's screwdriver to the pot the output went up +0.01. So, when I had the output at 0.08 and took the screwdriver off I got 0.07. When the output is fluctuating between 0.01 and 0.02 and I touched the screwdriver to the pot the fluctuation changed to 0.02 through 0.03. I am going to mess with the line that converts to volts near the bottom of the sketch to see if I can raise the Serial output to about 1.65v, or VCC/2. Perhaps adjusting that will help.
-->Greg<--
Code: Select all
/****************************************
Example Sound Level Sketch for the
Adafruit Microphone Amplifier
****************************************/
const int sampleWindow = 50; // Sample window width in mS (50 mS = 20Hz)
unsigned int sample;
void setup()
{
Serial.begin(9600);
}
void loop()
{
unsigned long startMillis= millis(); // Start of sample window
unsigned int peakToPeak = 0; // peak-to-peak level
unsigned int signalMax = 0;
unsigned int signalMin = 1024;
// collect data for 50 mS
while (millis() - startMillis < sampleWindow)
{
sample = analogRead(0);
if (sample < 1024) // toss out spurious readings
{
if (sample > signalMax)
{
signalMax = sample; // save just the max levels
}
else if (sample < signalMin)
{
signalMin = sample; // save just the min levels
}
}
}
peakToPeak = signalMax - signalMin; // max - min = peak-peak amplitude
double volts = (peakToPeak * 5.0) / 1024; // convert to volts
Serial.println(volts);
}
-->Greg<--
Please be positive and constructive with your questions and comments.