Skip to content

Analog Microphone audio source shows ADC analog - quiet after enable (audioreactive usermod) #4345

Open
@pjkerly

Description

@pjkerly

What happened?

Analog Microphone audio source after initially staring goes to ADC analog - quiet after starting. The lights are no longer responsive to audio sound / music. This happens for both pre-compiled and well as self-build binaries (multiple versions) for audio reactive. I've already debugged and am working on a Pull Request to submit proposed changes, review, and hopefully incorporated.

To Reproduce Bug

Install esp32dev_audioreactive binary. Configure the hardware. I'm using GPIO 36 R/O (supposed on ADC1). Select Generic Analog and Enable. Refresh the Info screen and see the audio source to go quiet.

Expected Behavior

Expected ADC Audio Source to register Peak (varying in %) in reaction for audio.

Install Method

Binary from WLED.me

What version of WLED?

v0.14.4

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

There are several issues with the current source code. I will Submit a PR soon. Summary 1). I2S_MODE_MASTER is not a suitable mode for I2S ADC configuration. Thie mode is for controlling an external I2S device. 2). The order of initializing the I2S driver and the associated ADC is not created in correct order. Should configure the ADC completely before installing the driver and then enable the I2S and ADC on the driver. The current order seems to be intermittent failure/success. Correct order seems to eliminate this intermittent failure. 3). The I2SSource getSamples tries to down sample to 16 bits when it shouldn't. This consistently causes the symptom of going to quiet.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions