Is there anyone here who might know about spectrum analysers?

Is there anyone here who might know about spectrum analysers?

I’m building an LED covered jacket, which I want to function as a spectrum analyser. I will be using ws2812b strips for the LEDs, and a teensy 3.2 to control it all.

Naturally, the PJRCSpectrumAnalyser example is the first place I look for code to start with

I was wondering a couple things

Can I get the same effect without using a smartmatrix? (Or any pre built matrix display) I plan on using strips, so the frequency bands can be dispersed all over my jacket.

Can I accomplish this effect without the octows2811 adapter? My “matrix” will be 6 pixels tall x 18 pixels wide (18 strips of 6 LEDs each), so 108 pixels total.

Thanks for your assistance!

@Post-Master_Sodium - Use the Search Community box on the left of this webpage with the term: spectrum. Also, search with the name: Matt Camp. Matt Camp has a great top hat spectrum analyzer in which he shares his code. Also search with: spectrum deamcoat. Robert Atkins shares the code for his amazing dreamcoat with spectrum analyzer. These searches and projects should be helpful to you.

A simple tutorial that got me started : https://learn.adafruit.com/fft-fun-with-fourier-transforms/spectrum-analyzer

It uses a Teensy 3.2 and a microphone, very easy to wire and get started.

Also, where do you plan on using your jacket? I’ve had terrific success with sound reactive projects in small setups in the 33-50 decibel range, but I’ve had trouble getting good results in festivals over 70+ decibels. It’s much harder to tune. It seems like all the frequencies overload each other or something. Just so you know when you do your tests.

Thanks @Ken_White , I was using the android app, so I didn’t have a search function, but logging in through the web works, I will definitely look those up!

@Franck_Marcotte I hope to have it usable for oregon eclipse (music festival). I do know the fft tutorial you posted. I was planning on using that first, then working it out so each strip is a frequency band, and looks more like the common specrum analyser.

I’m not sure it will work as good as I hope, but I’m going to add a potentiometer to adjust the dB range, so I can (hopefully) fine tune it to where I’m at. We’ll see how it goes though, lol.

Hello @Post-Master_Sodium

You can use Garret Mace’s tool to generate a mapping function for just about any possible LED strip combination (https://macetech.github.io/FastLED-XY-Map-Generator/).

Thanks @matt_p ​, that’s a very nice tool to have in the arsenal! I’m sure I’ll get much use out of that!

Let me know how it turns out :slight_smile:

Sure will @Cristian_Martinez