Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the maximum sample-rate? #20

Open
sail2themoon opened this issue Sep 1, 2022 · 6 comments
Open

What is the maximum sample-rate? #20

sail2themoon opened this issue Sep 1, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@sail2themoon
Copy link

Assuming the PDM-mic is capaple of doing this: What is the maximum audio sample rate for the Pi pico 2040 and this library? Are 192KHz or even 384KHz possible?

Kind regards

@sandeepmistry
Copy link
Member

Hi @sail2themoon,

This is a great question. I've only tested 8 kHz and 16 kHz myself.

Please let me know if you've managed to get a higher sampling rate working.

@sandeepmistry sandeepmistry added the help wanted Extra attention is needed label Oct 3, 2022
@sail2themoon
Copy link
Author

sail2themoon commented Dec 27, 2022

the highest sample-rate I can get to work is 88KHz. The strange thing is: 80Khz does not work: loud crackling in the recording.
I've tried also 37KHz and 62KHz, just to have some other non-regular sample-rates. They are fine.
This is my mic: SPH0641LU4H-1

Edit: 99KHz is also working, while 86Khz is not...This is weird.

@sail2themoon
Copy link
Author

This is a spectrogram of the 99KHz recording clicking my fingers:
https://i.postimg.cc/kMVv8N2F/Bildschirmfoto-vom-2022-12-27-21-20-49.png
There is some silent hiss above frequencies humans can hear, and I don't know if that's a recording error or if that sound was some interference of a device here. But the recording sounds fine. You can also see, that there is data at those high frequencies. So the mic really gets something.

@lafar6502
Copy link

@sail2themoon i have a question to you - it appear's you're using SPH0641LU4H Knowles microphone, which i'm also interested in. Would like to build an ultrasonic-range sound level meter (up to 40kHz would be fine). My question is - is this microphone suitable for the purpose, in your opinion? And does it work trouble-free with sandeepmistry's pico pdm library, or are some modifications necessary?
Best regards
RG

@sail2themoon
Copy link
Author

Hi RG,
I think the mic can to that well, as seen in the datasheet. But you have to sample with 80KHz then, for picking up 40Khz waves. The pdm library got me confused.. As I wrote some sample-frequencies go well, a slightly higher suddenly won't, an even higher works again, then again some which won't work... So trouble-free: I'd say no. I think first someone must find the right way to get data from it at high sample-rates.

@VoiceMagician
Copy link

VoiceMagician commented Jun 7, 2024

I have try 16kHz, 32kHz, 48kHz, 60kHz and 64kHz, they can work except 64kHz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants