Search found 6 matches

by geoffr
Thu Aug 28, 2025 6:28 pm
Forum: ESP32 Arduino
Topic: ESP32-S3 PDM Microphone
Replies: 8
Views: 2411

Re: ESP32-S3 PDM Microphone

yes, that does change 65535 to -1. I do however have other samples which are crazy large as seen by 6553 4 above. With the change to int16_t I get the output below. Why am I seeing -2 and -3 (or even much more negative!)

0
-1
-1
1
0
0
-1
-2
-1
2
2
-1
-3
-2
-2
0
1 ...
by geoffr
Wed Aug 27, 2025 4:23 pm
Forum: ESP32 Arduino
Topic: ESP32-S3 PDM Microphone
Replies: 8
Views: 2411

Re: ESP32-S3 PDM Microphone

Looks like the documentation doesn't line up :(
read() - Read the next available byte from the I2S interface.
https://docs.espressif.com/projects/arduino-esp32/en/latest/api/i2s.html

But that would change things!

Although as I noted above it still does not work correctly - I get samples in the ...
by geoffr
Sun Aug 24, 2025 1:32 pm
Forum: ESP32 Arduino
Topic: ESP32-S3 PDM Microphone
Replies: 8
Views: 2411

Re: ESP32-S3 PDM Microphone

Sure, changing to int means no negative numbers but I get samples in the ~6553x range which is not a valid sample (It's not that noisy!).

If you look at the definition of read() it's "Read the next available byte from the I2S interface." So, it's only 8 bits which ~65553x is definitely not ...
by geoffr
Thu Aug 21, 2025 3:36 pm
Forum: ESP32 Arduino
Topic: ESP32-S3 PDM Microphone
Replies: 8
Views: 2411

ESP32-S3 PDM Microphone

I'm trying to use a PDM microphone with the ESP32-S3 and arduino-esp32 library. I know I am reading microphone data (as it reacts to me blowing into the microphone), however I'm consistently getting negative values interspersed into the I2S output data. Has anyone got PDM working that can see where ...
by geoffr
Wed Dec 13, 2023 2:40 pm
Forum: Hardware
Topic: Maximum PDM Clock rate (ESP32-WROVER)
Replies: 2
Views: 69752

Re: Maximum PDM Clock rate (ESP32-WROVER)

Anybody have any ideas?
by geoffr
Thu Dec 07, 2023 6:00 pm
Forum: Hardware
Topic: Maximum PDM Clock rate (ESP32-WROVER)
Replies: 2
Views: 69752

Maximum PDM Clock rate (ESP32-WROVER)

I am looking to get a PDM clock rate high enough for an ultrasonic PDM microphone to work correctly. So far I have only been able to get a 10Mhz PDM clock - can a higher clock rate be acheived?

The maximum clock I have seen seems to relate to this comment in section "12.3 The Clock of I2S Module ...

Go to advanced search