INMP441 I2S digital microphone with ESP32
Supply 3.3 V
Bus GPIO
Measures sound
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| L/R | Not wired to the ESP32 | — | Channel select: GND = left, 3V3 = right |
| WS | SPI chip select | D25 | I2S word select (LRCLK), not SPI |
| SCK | SPI clock | D26 | I2S bit clock (BCLK), not SPI |
| SD | Output (the part drives it) | D27 | I2S data out of the microphone |
| VDD | Power | 3V3 | 3.3 V only |
| GND | Ground | GND |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Starter code (Arduino)
void setup() {
Serial.begin(115200);
pinMode(27, INPUT); // SD
}
void loop() {
Serial.println(digitalRead(27));
delay(100);
}
Sources
- InvenSense INMP441 datasheet, I2S interface: SCK, WS, SD, L/R; supply 1.8 to 3.3 V
Try it in 3D in BoardPilot
Related parts
A02YYUW waterproof ultrasonic distance (UART)A3144 hall effect switchAM312 mini PIR motion sensorATGM336H GPS/BeiDou moduleBeitian BN-220 GPS moduleBenewake TF-Luna LiDAR (UART mode)
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.