
Microphone
Microphone module for audio input, sound detection, and recording
High-quality microphone module designed for audio capture applications. Features low noise and high sensitivity for clear audio recording via digital I2S interface.
For ages 14 and up. Not a toy. Contains small parts: choking hazard. Keep away from children under 3. Adult supervision recommended.
Made by Atech ApS, Lille Strandstræde 6A, st. th., 1254 København K, Denmark.
Technical specifications
- Part
- I2S MEMS Microphone (ICS-43434)
- Interface
- Digital
- Ports
- 2 neighbouring ports
- Current
- ~5 mA
- Size
- 39.5 x 19.5 x 10.8 mm
- Chip
- ICS-43434 (TDK InvenSense)
Pins
- 3.3V (first port)
- supply
- GND (first port)
- ground
- Data A (first port)
- LR, left/right channel select
- Data B (first port)
- WS, word select
- 3.3V (second port)
- supply
- GND (second port)
- ground
- Data A (second port)
- SCK, serial clock
- Data B (second port)
- SD, serial data
Key features
- High signal-to-noise ratio
- Digital I2S output
- Compact double-width design
Common applications
Technical
Microphone
I2S MEMS Microphone (ICS-43434)I2S MEMS microphone for audio capture and sound level detection. Double module spanning two adjacent ports: LR select on Line A1, WS on Line B1, SCK on Line A2, SD on Line B2. 24-bit output, 16kHz sample rate.
get_sound_levelGet current RMS sound level (0-32767)is_sound_detectedCheck if sound exceeds a thresholdget_peak_amplitudeGet peak amplitude since last read (resets after read)get_samplesCopy raw audio samples into a bufferstart_recordingStart recording audio into heap buffer (up to 10 seconds)stop_recordingStop recording audiois_recordingCheck if currently recordingget_recordingGet pointer to recorded audio buffer for playbackget_recording_lengthGet number of recorded samplesset_channelSelect left or right channel (LR pin)
MICROPHONE MODULE (I2S ICS-43434): - getSoundLevel() returns RMS level 0-32767. Call it periodically, not in a tight loop. - isSoundDetected(threshold) is a convenience check; the default threshold is 500. - For recording: startRecording() → wait → stopRecording() → getRecording() returns const int16_t*. - getRecordingLength() returns sample count. Max ~10 seconds at 16kHz. - getRecording() returns a CONST pointer. Pass it to speaker.writeSamples() for playback. - Do NOT call getRecording() without const: use "const int16_t* buf = mic.getRecording();" - getPeakAmplitude() resets after each read; use it for beat/clap detection.
A live VU-meter bar driven by sensor-level events, plus a Record/Stop toggle that dispatches the matching action. Show a 30-second timeline of recent levels below the meter so users can see speech vs silence at a glance.
| Pin | Line | Dir | Function |
|---|---|---|---|
| 1 | HV | – | not connected |
| 2 | 5V | – | not connected |
| 3 | 3.3V | input | supply |
| 4 | GND | – | ground |
| 5 | Data A | input | LR, left/right channel select |
| 6 | Data B | input | WS, word select |
| Pin | Line | Dir | Function |
|---|---|---|---|
| 7 | HV | – | not connected |
| 8 | 5V | – | not connected |
| 9 | 3.3V | input | supply |
| 10 | GND | – | ground |
| 11 | Data A | input | SCK, serial clock |
| 12 | Data B | input | SD, serial data |
from p2p/ground_truth/hardware/prototyping_line/modules/microphone.md
