Can you use a Fast Fourier Transform on a project with a single addressable LED? Does it have to be a matrix? Or is there something I am misunderstanding?
Thank you for any help!
Can you use a Fast Fourier Transform on a project with a single addressable LED? Does it have to be a matrix? Or is there something I am misunderstanding?
Thank you for any help!
FFT even works without a LED. Please explain how FFT and LED are related?
It does sound like a misunderstanding, but it would help if you would explain more about what you are trying to achieve.
Also, if you have written any code so far, everyone would appreciate if you would post that too, but make sure it is between ``` code tags ```
usually we use it to represent frequency content. so you can use Leds or even an LCD to show ...
What should the LED do?
You can do whatever you want with the FFT data!!!
Typically, people make a spectrum analyzer effect with addressable LEDs physically arranged in a matrix with frequency on the horizontal scale and amplitude on the vertical scale.
Addressable LED strips are wired and addressed serially.
One of the 1st projects I built from a kit when I was a kid in the 1970s was a color organ similar to this. Mine had three colors, one for bass, one for mid-frequencies, and one for treble. It was all done in hardware... We didn't have microcontrollers.
I've seen something like a color organ done with addressable LEDs, where for example, if red represents bass and there is some strong bass, the 1st LED (and a few more) light-up red and then the red "moves through" the string.
Sorry for the late reply, I'm wanting to turn on one LED whenever a microphone (audio-in) hears bass.
Then a button switch that, when pressed, makes the light responsive to treble.
I haven't wrote any code as much as I've been doing research so, unfortunately, no in that department
Take it one step at a time and work on the input (audio) and output (LEDs). separately. Make sure you can read the audio, then the bass & treble and of course make sure you can read the button. And make sure you can control the LEDs, before you start putting everything togtether.
Do you have a "sound sensor" board? A microphone alone won't work. You need a preamp and for the Arduino you need a preamp with a biased output. A sound sensor board takes care of all that. There are different kinds of sound sensors and you want one that puts-out an analog audio waveform.
You may be able to use simple high-pass and low-pass filters (a couple of resistors & capacitors) instead of using FFT.
Just to get started, try my World's Simplest Lighting Effect. It flickers the built-in LED with the sound by turning the LED on when the sound is louder than average and off when it's quieter than average.
If you are using a sound sensor you can ignore the bias circuit.
No, ESP32, but this question is a universal question so it doesn't really matter what board I'm using. I have a MAX4466 microphone and an audio amplifier -MAX98306-.
I want to make sure my code works and then switch out the LED with a homemade magnet.
The MAX 4466 is an amplifier chip so I assume you have a microphone board with a MAX4466 amplifier chip on it.
The microphone board should work fine.
That's a power amplifier chip for driving a speaker. Not useful for what you've described so far.
I'm attaching speakers, my bad. I'd just want to make sure the base idea runs properly before I move to adding the speakers and such.
I figured I could practice with one simple LED and a microphone attachment to make sure I've got that part down, then move onto attaching speakers. I'm trying to move slow, I just have all the pieces.
Can you use a Fast Fourier Transform on a project with a single addressable LED?
this question is a universal question
Speaking generally, yes, you can use a Fast Fourier Transform with a single addressable LED.
The question you are asking though is so universal, that everyone is concerned that you could be heading off in the wrong direction. They're trying to find out exactly what you're up to, to help you keep on track, and to avoid any of the more common mistakes that trip people up.
From your conversation with DVDdoug, it sounds like you're heading in more or less the right direction.
One important comment that you have skipped over:
The MAX 4466 is an amplifier chip so I assume you have a microphone board with a MAX4466 amplifier chip on it.
A microphone board with a MAX4466:
A MAX4466 chip, on its own:
If you do have a microphone board with MAX4466, you should be able to hook it straight up, and start playing with the FFT library. As DVDdoug put it:
Take it one step at a time and work on the input (audio) and output (LEDs). separately. Make sure you can read the audio, then the bass & treble and of course make sure you can read the button. And make sure you can control the LEDs, before you start putting everything togtether.
then move onto attaching speakers
This part does sound potentially problematic, but one thing at a time. Just get the input working first.
Thank all of you guys. Yeah that was the plan was to start with the microphone and how it would work with FFT then move to everything else.
Also, yeah that's the microphone I got from Adafruit and I got the amplifier from Adafruit as well
Oh I got stuck on this question because I hadn't seen a spectrum analyzer display below 8 channels and not on a matrix and I'm still what Id consider an apprentice to this craft so I had no idea if there was some reason I was unaware of.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.