a89e7a921feeb2c4ee770c42ed6bd52176d0261f
Board-new-dat/robotpet-dat/robotpet-dat.md
| ... | ... | @@ -58,6 +58,8 @@ camera_pins.h |
| 58 | 58 | |
| 59 | 59 | - speaker - [[MAX98357-dat]] - [[speaker-I2S-dat]] == https://t.me/electrodragon3/444 |
| 60 | 60 | |
| 61 | +- [[sensor-microphone-dat]] == https://t.me/electrodragon3/446 |
|
| 62 | + |
|
| 61 | 63 | |
| 62 | 64 | |
| 63 | 65 | ## ref |
Chip-cn-dat/memsensing-dat/memsensing-dat.md
| ... | ... | @@ -35,4 +35,4 @@ MEMS(敏芯微) |
| 35 | 35 | |
| 36 | 36 | ## ref |
| 37 | 37 | |
| 38 | -- [[MEMS]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[MEMSensing]] |
|
| ... | ... | \ No newline at end of file |
Tech-dat/Interface-dat/PDM-dat/PDM-dat.md
| ... | ... | @@ -44,19 +44,23 @@ In PDM microphones like the MSM261DGT003: |
| 44 | 44 | To use this specific microphone, you must tell the ESP32 to enable its internal **PDM-to-PCM decimation filter**. If you configure it as "Standard I2S," you will only hear high-pitched digital noise. |
| 45 | 45 | |
| 46 | 46 | **Arduino/ESP-IDF Example Configuration:** |
| 47 | -```cpp |
|
| 48 | -i2s_config_t i2s_config = { |
|
| 49 | - .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM), // <--- MUST include I2S_MODE_PDM |
|
| 50 | - .sample_rate = 44100, |
|
| 51 | - .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT, |
|
| 52 | - .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, |
|
| 53 | - .communication_format = I2S_COMM_FORMAT_STAND_I2S, |
|
| 54 | - .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1, |
|
| 55 | - .dma_buf_count = 8, |
|
| 56 | - .dma_buf_len = 64, |
|
| 57 | - .use_apll = false |
|
| 58 | -}; |
|
| 59 | 47 | |
| 48 | + i2s_config_t i2s_config = { |
|
| 49 | + .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_PDM), // <--- MUST include I2S_MODE_PDM |
|
| 50 | + .sample_rate = 44100, |
|
| 51 | + .bits_per_sample = I2S_BITS_PER_SAMPLE_16BIT, |
|
| 52 | + .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, |
|
| 53 | + .communication_format = I2S_COMM_FORMAT_STAND_I2S, |
|
| 54 | + .intr_alloc_flags = ESP_INTR_FLAG_LEVEL1, |
|
| 55 | + .dma_buf_count = 8, |
|
| 56 | + .dma_buf_len = 64, |
|
| 57 | + .use_apll = false |
|
| 58 | + }; |
|
| 59 | + |
|
| 60 | + |
|
| 61 | +## demo code |
|
| 62 | + |
|
| 63 | +- [[robotpet-dat]] |
|
| 60 | 64 | |
| 61 | 65 | |
| 62 | 66 | ## ref |