-
Hi, I'd like to use this on an m5 atom u which has a PDM mic built in. I know the official microphone component has a PDM option. Is there any support for a PDM microphone in this component? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, currently it does not support PDM mode and I don't have such mics around to test it, but looking at the official implementation, seems like the only difference is in a single boolean flag set upon driver initialization. So I can add it, but, as I said, I can't test if it actually works, or more modifications are needed. So you'll have to test it on your own, and let me know whether it works. Or if you are aware of any other PDM specifics that should be handled let me know also. |
Beta Was this translation helpful? Give feedback.
-
I've just added it to a separate branch pdm_support (I'll merge into main, if it works), so you can try it by specifying branch name at the end of source url and set external_components:
- source: github://stas-sl/esphome-sound-level-meter@pdm_support
# ...
i2s:
# ...
pdm: true
# ... But this is fully untested, so it might work or not. |
Beta Was this translation helpful? Give feedback.
I've just added it to a separate branch pdm_support (I'll merge into main, if it works), so you can try it by specifying branch name at the end of source url and set
pdm: true
fori2s
section:But this is fully untested, so it might work or not.