Comments (4)
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.
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.
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.
There are no plans to support PDM microphones in the machine.I2S class, so closing this issue.
from micropython-i2s-examples.
Related Issues (20)
- Support for int. ADC via I2S ? HOT 2
- Examples broken under esp-idf V4.4 HOT 4
- Add support for stm32 H7 series boards HOT 2
- RP2040 + ICS-43432 issue HOT 9
- Possible to play multiple .wav's simultaneously? HOT 5
- What triggers the callback, etc.? HOT 1
- "ValueError: music-16k-16bits-stereo.wav: not found"
- Sd library HOT 3
- stereo on rp2040 using I2S PCM5102 Stereo DAC Decoder HOT 6
- Shift before writing to speaker HOT 2
- play the Audio file from a URL HOT 4
- Support PCM5100A ? HOT 5
- ESP32 with 32bitdepth not working
- no change on INMP441 microphone result HOT 8
- What license does this project use? HOT 2
- examples doesnt work with PCM5102A.
- Having trouble porting play_tone.py to non-blocking HOT 3
- can i control volume on max98357a?
- INMP441 sound quality issue with Pico.
- Gain Factor on wav file in wavplayer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-i2s-examples.