micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

Audio from a microphone

Open ebolisa opened this issue 1 year ago • 4 comments
trafficstars

Hi, does anyone know how to interface the ZTS6531S smt microphone? I it got working with Circuitpy but, I want to use mpython instead. Any help is appreciated.

ebolisa avatar Mar 05 '24 05:03 ebolisa

ZTS6531S is a digital microphone with PDM output. Support for PDM will vary based on platform/microcontroller. Which chip are you using?

For ESP32, there is a MR for adding support in https://github.com/micropython/micropython/pull/14176

jonnor avatar Apr 07 '24 12:04 jonnor

ZTS6531S is a digital microphone with PDM output. Support for PDM will vary based on platform/microcontroller. Which chip are you using?

For ESP32, there is a MR for adding support in micropython/micropython#14176

It's the one which comes with this board https://52pi.com/products/deskpi-picomate-for-raspberry-pi-pico-pico-w?variant=42514429345944. As mentioned before, the microphone module works with the library which comes with CircuitPython OS. Will look into that MR. Thank you much!

ebolisa avatar Apr 07 '24 20:04 ebolisa

That board is for the Raspberry PI Pico / RP2040, not ESP32. There is at the moment no PDM support for RP2040 in MicroPython. There was a MR here with some working code, but it has not been integrated. https://github.com/micropython/micropython/pull/8016

jonnor avatar Apr 07 '24 22:04 jonnor

That board is for the Raspberry PI Pico / RP2040, not ESP32. There is at the moment no PDM support for RP2040 in MicroPython. There was a MR here with some working code, but it has not been integrated. micropython/micropython#8016

Got you, thank you!

ebolisa avatar Apr 08 '24 15:04 ebolisa

Closing in favour of the linked PR. Once PDM support is enabled then it should be possible to make this microphone work.

projectgus avatar Aug 27 '24 01:08 projectgus