Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analog Microphone (MAX9814) Not Working on 0.13.3 #260

Closed
1 task done
ali-essam opened this issue Dec 22, 2022 · 11 comments
Closed
1 task done

Analog Microphone (MAX9814) Not Working on 0.13.3 #260

ali-essam opened this issue Dec 22, 2022 · 11 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@ali-essam
Copy link

What happened?

Sound reactive effects not working on ESP32 with Analog Mic MAX9814 (connected the same way as in the docs).

I first flashed 0.13.3 via esptools and everything works except the sound reactive effects, tested on different ADC1 inputs, but it won't work.

There is a weird behavior though that right after a powercycle or a reset, when switching the effect to a SR effect the first time, it'll pick up a faint signal that will go down in 2 or 3 seconds, for example with noise meter, it'll show up 7 leds (/144) that will go down to zero leds in couple of seconds. After that, nothing else is picked up until it's reset/cycled.

Reverted back to 0.13.0-b4 as mentioned in #162 through OTA and it was working fine, upgraded again to 0.13.3 over OTA and it stopped working again.

I don't have any buttons or any other input, just the esp32, the microphone, powersupply and the leds

The board in use: AZDelivery ESP32 NodeMCU Module WLAN WiFi Development Board with CP2102

To Reproduce Bug

  • Connect analog microphone (max9814) to esp32
  • Flash WLED SR 0.13.13
  • Select an SR Effect

Expected Behavior

SR effects work the same as they're working in previous releases

Install Method

From SoundReactive Release Page https://github.com/atuline/WLED/releases

What version of Soundreactive WLED?

WLED 0.13.3 (build 2210301)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ali-essam ali-essam added the bug Something isn't working label Dec 22, 2022
@netmindz
Copy link

Just to confirm, are you saying audio responsive patterns work correctly with your current hardware setup if you run 0.13.0-b4?

@ali-essam
Copy link
Author

Yes, the same exact setup, no changes, works perfectly on 0.13.0-b4 but not on 0.13.3

@ali-essam
Copy link
Author

I have also now tried 0.13.0-b6 and 0.13.2 but not working too, so the issue is definitely something the changed between 0.13.0-b4 and 0.13.0-b6

@ali-essam
Copy link
Author

@netmindz Is there a way to debug this on my side?

@gonzokalle
Copy link

I have the same problem with 0.13.0-b6 and higher. The analog Microphone working only a short time.
With 0.13.0-b4 works good.

@softhack007 softhack007 added the duplicate This issue or pull request already exists label Dec 24, 2022
@softhack007
Copy link
Collaborator

See #231

@iamSIAM
Copy link

iamSIAM commented Dec 25, 2022

I have sae issues ,Thats why i dont updated & using older version of sr wled!!! I was thinking this is microfon compabilty problem in higher version ..

@softhack007
Copy link
Collaborator

softhack007 commented Dec 25, 2022

It is not a generic compatibility issue, but something special that seems to happens to some users. There are a lot of people (including myself) who use max4466 or max9814 with the latest release, and it works for them without problem. OK, poor quality compared to I2S, but the mic works as expected.

So it could be related to other factors, like

  • esp32 hardware (adc, power supply)
  • bad wiring, or voltage fluctuations
  • if your mic delivers "0" or "4095" when you perform analogread() in silence, then you have a broken microphone - analog input should be centered around 1.6V and not stuck at 0V or stuck at 3.3V
  • some microphone batches are just no good

Actually there will be an update of SR end of January with a new filtering method for analog mics. It might be this new filter will work better, for bad analog mics that are heavily off-center (strong negative dc offset).
So possibly the upcoming release helps. The new filter is already activated in our dev branch, and you could try a nightly build from the development branch, to check if it works better for you.

@ali-essam
Copy link
Author

I'll give it a try later 👌

As a feature request, is it possible to integrate those readings for debugging in the microphone settings view in the future? so it would be easier to check what's wrong with the microphone without having to tinker with Arduino

@jonandel
Copy link

jonandel commented Dec 31, 2022

(moved from 13.2 issue thread).
I recently upgraded from v 12.0 to current latest 13.3 - and I now see an similar problem on (cold) boot about 60% of the time - ie sound reactive features simply dont work: no response to analogue mic stimulation. I may be dreaming, but stimulating the mic during the boot cycle appears to make it 'stick' working, but if I dont create noise during the boot process (within 1 seconds or so) it appears to simply fade out, or set the gain to 0....
Board is an ESP32-D1 Mini; Gneric Analogue mic.
I can measure vcc and the output to the analogue pin - looks fine (by multimeter, not scope). But WLED simply reports as 'mic - quiet'.
I spent about a day looking into PSU, wiring, etc, different ESP32's - but in the end gave up (sorry!), as I had to use the device.
I ended up installing a digitial mic, which works flawlessly, and is more responsive anyway.

@softhack007
Copy link
Collaborator

softhack007 commented Jun 25, 2023

Situation might improve with the last beta 0.13.4

If still not working, then -sorry- you might have a broken max9814. It works for many other users.

Closing as "cannot reproduce"

@softhack007 softhack007 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants