Page 1 of 2
ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 3:15 pm
by stefan.erni
Hi Ben
If I use component LED_SK6812RGBW2 on the 2D Panel or 3D Panel on a ESP32S
the ESP32 gives fail while compile.
[2/6] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/esp-project.c.obj
regards
Stefan
Re: ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 3:33 pm
by BenR
Hi Stefan,
Please can you attached the .msg.txt file and I'll investigate for you.
Re: ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 3:43 pm
by stefan.erni
Hi Ben
In FC9 it's working but in FC10 not yet
regards
Stefan
Re: ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 3:49 pm
by BenR
Thanks Stefan,
I've pushed an update for you that will hopefully solve the problem.
Re: ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 5:10 pm
by stefan.erni
Hi Ben
Now it's working in FC10 also. Litle problem are in FC9 and FC10 about color.
I testet a litle more and in the simulation it's working fine to set the leds and color.
In the hardware with the ESP32 I can set all to white or off.
But to set RGBW to the Leds is like a mixed mode off color and LED's.
maybe can test a little more.
regards
Stefan
Simulation perfect!

- Snag_f84d10.png (27.42 KiB) Viewed 6467 times
Re: ESP32 and component LED_SK6812RGBW2
Posted: Thu Feb 09, 2023 5:32 pm
by BenR
Hi Stefan,
If you can work out what's going wrong that might help. I think I have some of these LEDs somewhere so I'll try and replicate too.
Re: ESP32 and component LED_SK6812RGBW2
Posted: Fri Feb 10, 2023 10:36 am
by stefan.erni
Hi Ben
Now it's working in FC10 also.
Unfortunately not. The LEDs were still lit from the FC9 program. The LED does not work in the FC10 yet.
In the FC9 I tried to test all LEDs and colors but there is no connection that I can see. On my device, the LEDs are behind plexiglass and are therefore difficult to see which LED lights up and how. I'm going to get a strip too. Then it will be easier (maybe).
regards
Stefan
Strip I get :

- Snag_cbc632.png (639.89 KiB) Viewed 6454 times
Re: ESP32 and component LED_SK6812RGBW2
Posted: Sat Feb 11, 2023 8:45 am
by mnfisher
Use of the RMT functionality of the RMT functions is very interesting...
I tested a strip of these with an esp32 - and after a SetAllLeds(color) - Refresh - I get a multicolour strip (the strip I have is 120 LEDs in 60 pairs) - and I notice that 'pairs' are identical - but the colours of the pairs seem to be 'random'. I'll have a play with the oscilloscope and see if I can see what's happening here.
Yesterday (having misread the post badly) - I had a play with the ws2812 library - and output looks okay (also RMT and timings match the specs very nicely) - but with a 14us 'gap' after each pair of LEDs (a consequence of writing 48 bits of data (a pair of LEDs) using a 64 bit buffer?) - and one idea is that the 4us 'wait' (rather that waiting while the RMT transmit is busy) is causing an issue?
Martin
Re: ESP32 and component LED_SK6812RGBW2
Posted: Mon Feb 13, 2023 8:00 am
by mnfisher
After a bit of fiddling - I got the LEDs to work...
So my strip seems to be GRB rather than RGBW - and the LEDs addressed in pairs (so 60 pairs length rather than 120 individually addressed)
I created an 'experimental' program than lets the user choose data format and bits per pixel. LEDs now glowing happily
Note that it stores the pixel data as a long word in the order to send (MSB first) - so calculates the colour according to RGB order. I don't have an RGBW strip to test - so maybe someone could try (SetAllPixels might need a tweak, and set properties)
Martin
Re: ESP32 and component LED_SK6812RGBW2
Posted: Fri Oct 06, 2023 2:33 pm
by stefan.erni
Hi Ben, Hi Martin
With the code abstract layer from Martin the Les Strip is working.
Is it possible that the component from flowcode also works?
regards
Stefan