You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've ported your example to plot a spectrogram of differential pressure sensor output and it looks promising! It's cool to see that I only needed to change the Sampler class logic to read I2C differential pressure values and pipe read data (in surprisingly the same data format, int16_t) to the Processor. And the application works fine.
You haven't touched the intrinsics of FFT processing in your youtube video, and I'm struggling to figure out a couple of things. The most important one, what's the magic number 30 in
Does it bear physical meaning or it's simply a scaling factor derived empirically to make the plots look nice?
Also, the sampling rate of my sensor is unfortunately way below 16 kHz: it's 1024 Hz. If I'm interested in all possible frequencies, from 0 to 1024/2, shouldn't I set the WINDOW_SIZE to 1024?
The text was updated successfully, but these errors were encountered:
Hi,
I've ported your example to plot a spectrogram of differential pressure sensor output and it looks promising! It's cool to see that I only needed to change the Sampler class logic to read I2C differential pressure values and pipe read data (in surprisingly the same data format,
int16_t
) to the Processor. And the application works fine.You haven't touched the intrinsics of FFT processing in your youtube video, and I'm struggling to figure out a couple of things. The most important one, what's the magic number
30
inm5stack-core2-audio-monitor/src/AudioProcessing/Processor.cpp
Line 35 in 28f4231
Does it bear physical meaning or it's simply a scaling factor derived empirically to make the plots look nice?
Also, the sampling rate of my sensor is unfortunately way below 16 kHz: it's 1024 Hz. If I'm interested in all possible frequencies, from 0 to 1024/2, shouldn't I set the
WINDOW_SIZE
to 1024?The text was updated successfully, but these errors were encountered: