Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit 438525e

Browse files
authored
AR: use bandpass filter for analog input
Many bad quality analog mics are not centered properly at 1.6V, but stuck at 0V or stuck at 3.3V in silence. The bandpass filter removes DC offsets and improve signal quality.
1 parent eb66a40 commit 438525e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

usermods/audioreactive/audio_reactive.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ class AudioReactive : public Usermod {
11751175
DEBUGSR_PRINTLN(F("AR: Analog Microphone (left channel only)."));
11761176
audioSource = new I2SAdcSource(SAMPLE_RATE, BLOCK_SIZE);
11771177
delay(100);
1178+
useBandPassFilter = true; // PDM bandpass filter seems to help for bad quality analog
11781179
if (audioSource) audioSource->initialize(audioPin);
11791180
break;
11801181
#endif

0 commit comments

Comments
 (0)