Omnidirectionele MEMS-microfoonmodule voor 3.3V-projecten met I2S-aansluiting, geschikt voor hobbyisten en professionals.
SKU: OT6767 Artikelnummer: AH131 EAN: 8720828223857 Locatie: H08.03
Alternatief
Microfoon (Condensator), Gevoeligheid 52D, Perfect voor Gebruik met Arduino/Raspberry Pi 9 x 7mm, Through Hole
€ 0,90
Bekijk dit alternatief
Zo sluit je de Omnidirectionele Microfoon INMP441 MEMS 3.3V aan op een Arduino UNO of ESP32, met een voorbeeldsketch die je direct kunt uploaden.
Dit project verbindt een digitale, omnidirectionele INMP441 I2S-microfoon met een Arduino Uno. De Uno genereert de I2S-bitclock (SCK) en word select (WS)-signalen in software om 24-bit audiosamples van de SD-lijn uit te lezen. Open de Seriële Monitor of Seriële Plotter op 115200 baud om de geluidsniveaus in real time te zien fluctueren.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : INMP441 I2S Microphone with Arduino Uno
* Board : Arduino UNO (arduino:avr:uno)
* Parts : INMP441 microphone
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
// INMP441 I2S Microphone demonstration on Arduino Uno
const int PIN_SCK = 2; // Serial Clock (SCK)
const int PIN_WS = 3; // Word Select / LRCLK (WS)
const int PIN_SD = 4; // Serial Data (SD)
void setup() {
Serial.begin(115200);
pinMode(PIN_SCK, OUTPUT);
pinMode(PIN_WS, OUTPUT);
pinMode(PIN_SD, INPUT);
digitalWrite(PIN_SCK, LOW);
digitalWrite(PIN_WS, LOW);
Serial.println(F("INMP441 Microphone Demo Initialized."));
Serial.println(F("Speak or make noise near the microphone."));
}
// Bit-bang 32 clock pulses per channel and sample 24-bit audio
int32_t readI2SSample() {
int32_t sample = 0;
// Select Left Channel
digitalWrite(PIN_WS, LOW);
// I2S standard has 1-bit delay before MSB
for (int bit = 0; bit < 32; bit++) {
digitalWrite(PIN_SCK, HIGH);
digitalWrite(PIN_SCK, LOW);
if (bit > 0 && bit <= 24) {
sample = (sample << 1) | digitalRead(PIN_SD);
}
}
// Select Right Channel to complete stereo frame
digitalWrite(PIN_WS, HIGH);
for (int bit = 0; bit < 32; bit++) {
digitalWrite(PIN_SCK, HIGH);
digitalWrite(PIN_SCK, LOW);
}
// Sign-extend 24-bit to 32-bit signed integer
if (sample & 0x00800000) {
sample |= 0xFF000000;
}
return sample;
}
void loop() {
int32_t rawSample = readI2SSample();
int32_t magnitude = abs(rawSample);
Serial.print(F("Raw: "));
Serial.print(rawSample);
Serial.print(F("\tMagnitude: "));
Serial.println(magnitude);
delay(20);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Leest digitale audio van de omnidirectionele I2S-microfoon INMP441 en berekent real-time volumeniveaus. Open de Serial Monitor of Serial Plotter op 115200 baud om omgevingsgeluid en spraakamplitude te visualiseren.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : INMP441 I2S Sound Level Meter
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : INMP441 microphone
* Libraries : none (built-in)
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <driver/i2s.h>
#define I2S_WS 15
#define I2S_SD 32
#define I2S_SCK 14
#define I2S_PORT I2S_NUM_0
#define BUFFER_LEN 64
int32_t samples[BUFFER_LEN];
void setup() {
Serial.begin(115200);
const i2s_config_t i2s_config = {
.mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX),
.sample_rate = 16000,
.bits_per_sample = I2S_BITS_PER_SAMPLE_32BIT,
.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
.communication_format = i2s_comm_format_t(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = ESP_INTR_FLAG_LEVEL1,
.dma_buf_count = 4,
.dma_buf_len = BUFFER_LEN,
.use_apll = false
};
const i2s_pin_config_t pin_config = {
.bck_io_num = I2S_SCK,
.ws_io_num = I2S_WS,
.data_out_num = I2S_PIN_NO_CHANGE,
.data_in_num = I2S_SD
};
i2s_driver_install(I2S_PORT, &i2s_config, 0, NULL);
i2s_set_pin(I2S_PORT, &pin_config);
}
void loop() {
size_t bytes_read = 0;
i2s_read(I2S_PORT, &samples, sizeof(samples), &bytes_read, portMAX_DELAY);
int samples_read = bytes_read / sizeof(int32_t);
int64_t sum = 0;
for (int i = 0; i < samples_read; i++) {
int32_t sample = samples[i] >> 14;
sum += abs(sample);
}
if (samples_read > 0) {
int32_t sound_level = sum / samples_read;
Serial.print("SoundLevel:");
Serial.println(sound_level);
}
delay(20);
}
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Verrijk uw technologische projecten met onze geavanceerde omnidirectionele MEMS-microfoonmodule, uitgerust met de INMP441-chip. Deze module is ontwikkeld om hoogwaardige audioprestaties te leveren, compatibel met een breed scala aan microcontrollers en ontwikkelborden die op 3.3V werken, zoals ESP8266, ESP32, en zelfs de Raspberry Pi. Dit maakt het een veelzijdige keuze voor toepassingen variërend van slimme apparaten en geluidsanalyse tot interactieve kunstprojecten.
Technische Specificaties:
Pinout:
Pakketinhoud:
Deze microfoonmodule is niet alleen geschikt voor hobbyisten en makers, maar ook voor professionals die op zoek zijn naar een betrouwbare oplossing voor geavanceerde audioprojecten. Het ondersteunt een breed scala aan toepassingen en is compatibel met populaire ontwikkelplatforms zoals ESP8266, ESP32, en Raspberry Pi, waardoor het een uitstekende keuze is voor iedereen die zijn projecten wil verrijken met hoogwaardige audio.
Deze omnidirectionele MEMS-microfoonmodule met de INMP441-chip is geschikt voor een breed scala aan toepassingen, waaronder:

| Interface | I2S |
|---|---|
| PCB-afmetingen | Compact met 14 x 14mm, ontworpen voor flexibele inzetbaarheid |
| Geschikt voor | ESP8266, ESP32, Raspberry Pi |
| Voedingsspanning | 1.8-3.3V DC, perfect voor integratie met de meeste laagspanningsontwikkelborden |
| Stroomverbruik | Ongeveer 1.4mA, ideaal voor projecten waar energiezuinigheid belangrijk is |
| Chip | De INMP441 zorgt voor heldere en nauwkeurige audio-opnamen |
| Frequentiebereik | 60-15,000Hz, vangt een breed scala aan geluiden op |
| Signaalspanning | 1.8-3.3V, garandeert naadloze samenwerking met uw gekozen platform |
| Gevoeligheid | Circa -26dBFS, voor het vastleggen van geluid met hoge precisie |
| SD | I2S datasignaal voor kwalitatieve geluidsopname |
| VDD | Voedingsspanning, eenvoudig te verbinden met uw project |
| GND | Aarde/min, essentieel voor stabiele prestaties |
| WS | I2S woordselectie, cruciaal voor audio synchronisatie |
| SCK | I2S kloksignaal, ondersteunt nauwkeurige datatransmissie |
| Audio-opname | Ideaal voor kwalitatieve geluidsopnamen in compacte apparaten |
Nog geen beoordelingen.
Niet tevreden? Je hebt 30 dagen bedenktijd na ontvangst om het product terug te sturen.
Alles over retourneren
Omnidirectionele Microfoon INMP441 MEMS 3.3V