Hey there!
I try to point out my problem short - I have a ws2812b neopixel led strip with 144 led / m. I want to let them flicker and do some animations. Working great on pin 7 of the teensy 3.2.
I also have the prop shield generating some sine waves mixed together based on gyro data. (and yes, it'll be a lightsaber finally managed to synthetically generate the lightsaber sound using 14 sine waves having the values of the fft of the original from the movies)
Both working fine, but individually. I put together both codes to have the led control and the audio output, first try with the fastled library. Problem: only half the led strip is on, seems the audio processing takes too much CPU usage to be fast enough to cycle all the LEDs.
Then I tried it with the neopixel library. There, LEDs are working fine but the audio output cracks every time leds.show() is called (in every loop iteration for the animation).
The prop shield buffer is just meant for apa102, as I read. The buffer could fix the problem when using fastled again, but I just have ws2812b and they stay off when connected to the prop shield.
Any ideas if this really is a CPU overload problem or other ways to solve this issue, maybe with "pseudo" threads?
Thanks and cheers,
Daniel
I try to point out my problem short - I have a ws2812b neopixel led strip with 144 led / m. I want to let them flicker and do some animations. Working great on pin 7 of the teensy 3.2.
I also have the prop shield generating some sine waves mixed together based on gyro data. (and yes, it'll be a lightsaber finally managed to synthetically generate the lightsaber sound using 14 sine waves having the values of the fft of the original from the movies)
Both working fine, but individually. I put together both codes to have the led control and the audio output, first try with the fastled library. Problem: only half the led strip is on, seems the audio processing takes too much CPU usage to be fast enough to cycle all the LEDs.
Then I tried it with the neopixel library. There, LEDs are working fine but the audio output cracks every time leds.show() is called (in every loop iteration for the animation).
The prop shield buffer is just meant for apa102, as I read. The buffer could fix the problem when using fastled again, but I just have ws2812b and they stay off when connected to the prop shield.
Any ideas if this really is a CPU overload problem or other ways to solve this issue, maybe with "pseudo" threads?
Thanks and cheers,
Daniel
Last edited: