Simple SoundReactive Setup w/ WS2812FX #284
generic-beat-detector
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check this out. Using WS2812FX (w/ DMA via NeoPixelBus) for LED rendering.
Signal analysis task pinned to ESP32 core0 with high priority. Executing a 2048-point FFT using the ESP32-FFT engine with a worst case execution time of 5ms. Taking into account that the task involves additional computations for the sound-reactive stuff, the worst case times reflect the advertised values @ esp32-fft performance for the vanilla radix-2 out-of-place
FFT_REAL
implementation. Note that all computations are done with single-precision floating-point.System is quite stable and I run it for hours at a time. Separate and parallel task/thread contexts are used for the various modules namely: the A2DP sink, the sound reactive algorithm, and the LED rendering engine. An additional ArduinoJSON-based messaging module for adjusting system parameters at runtime via UART is included in the mix. Been testing for weeks now and the system has only crashed a couple of times with:
Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
Not yet sure if this is an issue related to the sound reactive code, or to ESP32-A2DP, or to one of the other 3rd party modules/libs, or to FreeRTOS. Will investigate further...
Beta Was this translation helpful? Give feedback.
All reactions