Cannot Get an Output From an ICS 43434 MEME Microphone Module

jblake5858
Posts: 1
Joined: Thu Jun 11, 2026 3:36 am

Cannot Get an Output From an ICS 43434 MEME Microphone Module

Postby jblake5858 » Thu Jun 11, 2026 3:41 am

I have the following module:

https://www.adafruit.com/product/6049?s ... f3UZiuYQ2c

And I'm running the following code:

Code: Select all

#include <driver/i2s.h>
 
#define I2S_WS 2
#define I2S_SD 3
#define I2S_SCK 11
 
// Use I2S Processor 0
#define I2S_PORT I2S_NUM_0
 
// Define input buffer length
#define bufferLen 64
int16_t sBuffer[bufferLen];
 
void i2s_install() {
  // Set up I2S Processor configuration
  const i2s_config_t i2s_config = {
    .mode = i2s_mode_t(I2S_MODE_MASTER | I2S_MODE_RX),
    .sample_rate = 44100,
    .bits_per_sample = i2s_bits_per_sample_t(16),
    .channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
    .communication_format = i2s_comm_format_t(I2S_COMM_FORMAT_STAND_I2S),
    .intr_alloc_flags = 0,
    .dma_buf_count = 8,
    .dma_buf_len = bufferLen,
    .use_apll = false
  };
 
  i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
}
 
void i2s_setpin() {
  // Set I2S pin configuration
  const i2s_pin_config_t pin_config = {
    .bck_io_num = I2S_SCK,
    .ws_io_num = I2S_WS,
    .data_out_num = -1,
    .data_in_num = I2S_SD
  };
 
  i2s_set_pin(I2S_PORT, &pin_config);
}
 
void setup() {
 
  // Set up Serial Monitor
  Serial.begin(115200);
  Serial.println(" ");
 
  delay(1000);
 
  // Set up I2S
  i2s_install();
  i2s_setpin();
  i2s_start(I2S_PORT);
 
 
  delay(500);
}
 
void loop() {
 
  // False print statements to "lock range" on serial plotter display
  // Change rangelimit value to adjust "sensitivity"
  int rangelimit = 3000;
  Serial.print(rangelimit * -1);
  Serial.print(" ");
  Serial.print(rangelimit);
  Serial.print(" ");
 
  // Get I2S data and place in data buffer
  size_t bytesIn = 0;
  esp_err_t result = i2s_read(I2S_PORT, &sBuffer, bufferLen, &bytesIn, portMAX_DELAY);
 
  if (result == ESP_OK)
  {
  // Read I2S data buffer
    int16_t samples_read = bytesIn / 8;
    if (samples_read > 0) {
      float mean = 0;
      for (int16_t i = 0; i < samples_read; ++i) {
        mean += (sBuffer[i]);
      }
 
  // Average the data reading
      mean /= samples_read;
 
  // Print to serial plotter
      Serial.println(mean);
    }
  }
}
I'm running an Espressif ESP32-C6-DevKitC-1 as I needed I2S functionality, and grabbed the code from a tutorial I found online. I connected the breakout board as follows:

3V = 3.3V on MCU

GND = GND

BCLK = GPIO11

DOUT = GPIO3

LRCL = GPIO2

SEL = GND on MCU

I'm getting what appears to be data on the serial monitor, as when I change the pin values to be incorrect, it goes to all zeros, but mapped correctly I get numbers. I'm not getting anything on the serial plotter however. In the tutorial I was using, it has a pretty distinct audio wave when spoken into. Can anybody please give me some insight on this? Thanks.

Who is online

Users browsing this forum: Applebot, Semrush [Bot] and 2 guests