From 42cc30215978cfec2f37ebb2655bd0c99b6227dc Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 19 Dec 2022 11:15:37 +0100 Subject: [PATCH] enable bandpass filter for analog input Analog input seems to sometime have a very strong negative DC offset, when the signal is not centered at 1.8V. The bandpass filter should help to reenter such "off limits" signals. See discussions in issue #10 . --- usermods/audioreactive/audio_reactive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/audioreactive/audio_reactive.h b/usermods/audioreactive/audio_reactive.h index c27d7268..77bca04c 100644 --- a/usermods/audioreactive/audio_reactive.h +++ b/usermods/audioreactive/audio_reactive.h @@ -1284,7 +1284,7 @@ class AudioReactive : public Usermod { case 0: default: DEBUGSR_PRINTLN(F("AR: Analog Microphone (left channel only).")); - //useBandPassFilter = true; + useBandPassFilter = true; audioSource = new I2SAdcSource(SAMPLE_RATE, BLOCK_SIZE); delay(100); if (audioSource) audioSource->initialize(audioPin);