# Analog Microphone & Analog Potentiometer

**URL:** <https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531>\
**Category:** Issues\
**Created:** [October 17, 2023, 1:03pm UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531 "2023-10-17T13:03:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [October 17, 2023, 1:03pm UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/1 "2023-10-17T13:03:48Z")

</div>

**Question**

Is it possible to use analog mic together with a potentiometer to adjust global brightness?

I use an ESP32 connected to an analog microphone MAX9814 on GPIO 39 (A3). Audio reactive effects work correctly. Additional I connected a potentiometer to GPIO 34 (A0) as button 1 to adjust global brightness (set button action double=250). I also tried potentiometer at GPIO 35 (A1), respecting the documentation:

> On ESP32, only ADC1 pins will work for analog input while WiFi is active (pins 32-39). ADC2 pins will not work.

After trying out A0 & A1, without luck ☹ I recognized that when disabling audio, the potentiometer global brightness works as expected (at least using A0). So, it looks like analog audio via MAX9814 and potentiometer for global brightness can’t be used/activated in parallel together… is this the case?

Is it possible to make analog audio & button hardware/pins work side by side?

Note: I used [WLED v0.14.0-b6](https://github.com/Aircoookie/WLED/releases/download/v0.14.0-b6/WLED_0.14.0-b6_ESP32_audioreactive.bin) “Hoshi” with audio reactive usermod.

---

<div class="post-metadata">

**Author:** ![TheLight3r](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@TheLight3r](https://wled.discourse.group/u/TheLight3r)\
**Post date:** [October 17, 2023, 5:20pm UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/2 "2023-10-17T17:20:52Z")

</div>

As much as I know:

Buttons work normally when using SR versions!

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [October 17, 2023, 8:35pm UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/3 "2023-10-17T20:35:24Z")

</div>

Buttons do, but analog potentiometer to adjust brightness I can’t get to work besides MAX9814 ☹

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [October 18, 2023, 4:17am UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/4 "2023-10-18T04:17:25Z")

</div>

Analog microphone and potentiometer are incompatible in audioreactive usermod.

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [October 18, 2023, 10:24am UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/5 "2023-10-18T10:24:38Z")

</div>

@blazoncek thank you for verifying this behavior. So I wired everything correctly 🙂

Conclusion: WLED can handle audio or analog buttons but not both at the same time!

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [October 18, 2023, 10:35am UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/6 "2023-10-18T10:35:08Z")

</div>

For best results you should use I2S microphone.

---

<div class="post-metadata">

**Author:** ![mxklb](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mxklb/32/4032_2.png) [@mxklb](https://wled.discourse.group/u/mxklb)\
**Post date:** [October 18, 2023, 10:40am UTC](https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531/7 "2023-10-18T10:40:59Z")

</div>

I already used digital mics and potentiometer successfully together, I can confirm this works.

To finally finish this, please merge this PR into the docs repo:

> <https://github.com/Aircoookie/WLED-Docs/pull/163>
>
> Added missing info about analog buttons when using analog microphones in audio r…eactive mode:
> 
> https://wled.discourse.group/t/analog-microphone-analog-potentiometer/9531
