Giter Club home page Giter Club logo

Comments (4)

miketeachman avatar miketeachman commented on June 14, 2024

Hi,
I'm having a bit of difficulty to understand your application. Is it possible to describe more on the type of microphone you have (PDM or I2S?) and how you would like to use it?

thanks!

Does the API_i2s transform from PDM to PCM or does it just work with PDM?

The I2S Module only works with PCM data

What kind of modulation is recording in the .py examples scripts: PCM or PDM?

PCM

from micropython-i2s-examples.

FernandoQui avatar FernandoQui commented on June 14, 2024

Hello, thanks for responding so soon. I will explain in more detail the project I am working on. I'm using the ST microphone: MP45DT02 (with I2S interface, data output in PDM format); the microcontroller is: ST32F407-ARM-CortexM4.I'm using the last compilation of Micropython, to access I2S chanel and the device.
Basically I am doing a test reading the audio data on the microphone and sending it to the DAC that the onboard microcontroller has.
From the answer you gave me above, and reviewing in more detail the hardware on which the tests were made, the API receives and delivers the data directly in PCM format, since the hardware of the audio amplifier and microphone are of this type of modulation.
I will have to do filtering and decimation processing to get results. If you are interested we could work together to extend the library to support PDM modulated microphones.

from micropython-i2s-examples.

miketeachman avatar miketeachman commented on June 14, 2024

Hi,
Thank you for describing the application. I took a look at the datasheet. Unfortunately it will not be possible to use this PDM microphone with the new I2S class. Sorry. These two protocols are not compatible. Sometime in the future a new PDM class could be added to the Machine module of MicroPython to support PDM microphones. Maybe you would like to take a look at that work?

But, some good news, the CircuitPython documentation shows that PDM microphones are supported:
https://learn.adafruit.com/adafruit-pdm-microphone-breakout/circuitpython

Is it important to use a PDM microphone? If you switched to an I2S microphone you can use this new I2S class with no changes.

from micropython-i2s-examples.

miketeachman avatar miketeachman commented on June 14, 2024

There are no plans to support PDM microphones in the machine.I2S class, so closing this issue.

from micropython-i2s-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.