Example project showcasing how to use a Raspberry Pi Pico, Adafruit's PDM MEMS Microphone Breakout, and Adafruit's 2.0" 320x240 Color IPS TFT Display with microSD Card Breakout to "See sound in real-time". ๐ ๐
Hello,
excellent project, congratulations !
Can you translate please this code to use it with Arduino ?
I need to add it in my audio project (radio receiver) if I can, to see audio spectrum
Thank you in advance
I had a 240x240 screen laying around and wanted to use that, but the vertical scroll is not working. After digging into the datasheets I found that there is a separate register that can be used to define the scrolling area, by default it did not fit to the 240x240 display.
My fix would be to add this lien to st7789.c but as this is a separate git lib, but still owned by you guys then I would first ask if this could be a solution?
I was wondering why you do the sampling on FFT/2 samples (=128) and not on INPUT_BUFFER_SIZE (=64): new_samples_captured = pdm_microphone_read(capture_buffer_q15, FFT_SIZE / 2);
vs. new_samples_captured = pdm_microphone_read(capture_buffer_q15, INPUT_BUFFER_SIZE);
You do have an array length guard in the read function so your samples variable will be reset to 64 anyway.
Am I missing something?
Thank you!
PS: There is also a small typo with the name of the variable magnitude.