Skip to content

I2S input example doesn't work with common MEMS microphones #1232

@timboldt

Description

@timboldt

I was experimenting with a common I2S MEMS microphone (https://www.adafruit.com/product/3421) and it didn't work.

In retrospect, I think I found the problem. The datasheet (https://www.mouser.com/datasheet/2/218/ph0645lm4h_b_datasheet_rev_c-1525723.pdf) says that the SPH0645 needs a minimum clock rate of 1MHz in order to wake the device.

However, the example (https://github.com/earlephilhower/arduino-pico/blob/master/libraries/I2S/examples/I2SInput/I2SInput.ino) has 22050Hz * 16 bits * 2 channels = 705600Hz = 0.7MHz.

If you are interested, I can update the example to work with a modern I2S MEMS microphone, and send you a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions