-
Notifications
You must be signed in to change notification settings - Fork 131
Noise and Spikes
During the development of our sound reactive version of WLED, we've had several challenges with WiFi along with the ADC capability of the ESP devices.
After the code refactoring of WLED from .ino to .cpp files around April 2020, our ESP8266 code lost connection between the user interface and the ESP8266's web server. This eventually culimated in a re-write of a stripped down version of SR WLED dedicated just for the ESP8266. It included the UDP sound sync as a receiver (only), but supported none of the FFT or 2D functionality. This stripped down version seems to be stable, however that platform is now deprecated from further development.
Although the ESP32 did lose connection with the web server, it was nowhere near as bad as the ESP8266.
On both platforms, we encountered significant spikes when using the analog ADC when the WiFi is active. There are numerous articles on this issue, along with various methods to reduce the noise. We've found that an I2S microphone, such as the INMP441 or ICS-43434 will provide a better response than any of the analog microphones or input methods that we support.
Here's some test results with the analog input, including strong spikes observed very frequently.
Here's some references:
- https://www.atomic14.com/2020/09/12/esp32-audio-input.html
- https://www.youtube.com/watch?v=pPh3_ciEmzs
- https://www.youtube.com/watch?v=3g7l5bm7fZ8
- https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc.html
- https://www.esp32.com/viewtopic.php?t=9613
- https://github.com/espressif/arduino-esp32/issues/92
- https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/
Note: According to atomic14 in the above videos, the I2S microphones do not exhibit the issues found with the analog microphones.
Introduction
Installing and Compiling
First Time Setup
Running Sound Reactive WLED
2D Support
Sound Settings
2D LED Preferences
ARTI-FX
UDP Sound Sync
Sound Reactive Animations
Non-Reactive Animations
Digital Microphone Hookup
Analog Audio Input Options
Using my PC for the Sound
News
It's Not Working
Noise and Spikes
Connectivity Issues
WLED Programming Notes
Modifying Sound Reactive WLED
Future Directions
Adding a new Settings Page
On Lossy Colours
Sliders in WLED
Testing