esp32:i2s
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| esp32:i2s [2019/10/11 14:19] – created aistis | esp32:i2s [2020/09/30 07:16] (current) – aistis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | MH-ET LIVE Omnidirectional Microphone Module I2S Interface INMP441 MEMS High Precision Low Power Ultra small volume for ESP32 | ||
| + | |||
| esp32 i2s microphone | esp32 i2s microphone | ||
| - | tik l/r ruti buti high | + | tik l/r ruti buti GRND |
| {{: | {{: | ||
| {{: | {{: | ||
| + | |||
| + | {{: | ||
| https:// | https:// | ||
| + | veikia man ir 16 ir 32 bitai: I2S_BITS_PER_SAMPLE_16BIT I2S_BITS_PER_SAMPLE_32BIT | ||
| + | |||
| + | sample_rate maziausias 4000, didziausias 48000 | ||
| ne sitas SPH0645 I2S MEMS Microphone | ne sitas SPH0645 I2S MEMS Microphone | ||
| + | |||
| + | |||
| + | SEL is unconnected, | ||
| + | |||
| + | if (bytes_read > 0 and sample != 0) { | ||
| + | | ||
| + | {{: | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | // The I2S config as per the example | ||
| + | const i2s_config_t i2s_config = { | ||
| + | .mode = i2s_mode_t(I2S_MODE_MASTER | I2S_MODE_RX), | ||
| + | //.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_TX | I2S_MODE_DAC_BUILT_IN | I2S_MODE_ADC_BUILT_IN), | ||
| + | .sample_rate = | ||
| + | .bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT, | ||
| + | .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT, | ||
| + | // | ||
| + | // | ||
| + | .communication_format = (i2s_comm_format_t)(I2S_COMM_FORMAT_I2S | I2S_COMM_FORMAT_I2S_MSB), | ||
| + | // | ||
| + | // .dma_buf_count = 16, // number of buffers | ||
| + | // .dma_buf_len = 80 // 8 samples per buffer (minimum) | ||
| + | |||
| + | .intr_alloc_flags = 0, | ||
| + | // | ||
| + | .dma_buf_count = 16, | ||
| + | .dma_buf_len = 1024 | ||
| + | }; | ||
| + | |||
| + | </ | ||
| + | |||
| + | ir L/R turi buti pajungtas ant grnd | ||
| + | |||
| + | |||
| + | {{: | ||
esp32/i2s.1570792750.txt.gz · Last modified: by aistis
