Skip to content

Update T1H and T0H timing to fix flicker on UNO R4 - #1554

Merged
samguyer merged 2 commits into
FastLED:masterfrom
sparky650:master
Dec 18, 2023
Merged

samguyer merged 2 commits into
FastLED:masterfrom
sparky650:master

Conversation

@sparky650

Copy link
Copy Markdown
Contributor

I found that the timing gave a flicker on WS2812 and WS2818 LED drivers, I think this is due to the T1H timing being >1050ns. The new timing puts the timing at ~800ns for T1H and ~340ns for T0L. This has been tested on genuine UNO R4 WiFi and Minima boards with WS2818B LED strips and WS2812B LED modules

@ocack

ocack commented Nov 25, 2023 •

Copy link
Copy Markdown

Hello the community,

Here is the context:
I have an Arduino R3 UNO that controls succesfully a WS2811 Led strips by using FastLed 3.6.0
The arduino has also to receive MIDI messages through a shield.
All works pretty good excepted the loss of some MIDI messages but this is not the subject and it's actually a well-known issue
Interrupt-problems

Here is the issue:
I have recently bought an Arduino R4 Minima for replacing my R3 (and avoiding interrupt problems on MIDI).
Next, I have installed the "Arduino UNO R4 Boards" to the Arduino IDE
I quickly had the well-known compilation error (platform R4 is not yet supported by FastLed)
Thus, I had to install the non official FastLed release "renesas: initial porting for UNO R4" #1523

All was compiling without error but the strip led was flickering randomly.
Then, I've found this topic and try the sparky650's fix.
But it has not solved the issue for my case :-(
Note that we haved tried the fix by compiling our sketch with chipset WS2811, WS2811_400, WS2812 and WS2812B
We also tried with the sketch "FirstLight.ino" example attached in FastLed library

Conclusion:
It seems that this fix doesn't solve the flickering issue when using an Arduino R4 Minima and WS2811 strip led
I am open for trying any advice useful for potentially fix the Issue.
I own a Arduino R4 Minima and WS2811 strip leds.

Regards

@sparky650

Copy link
Copy Markdown
Contributor Author

Ordering some WS2811 LEDs to test at 400kHz, hopefully we can find the solution to this

@architolk

Copy link
Copy Markdown

I had the same issue with a string of WS2813 LEDs and a genuine Arduino UNO R4 WiFi. This PR fixed the issue

@samguyer
samguyer merged commit 3adbeb3 into FastLED:master Dec 18, 2023
@samguyer

samguyer commented Dec 18, 2023 •

Copy link
Copy Markdown
Contributor

@sparky650 Thanks for your work on this issue! We are accepting this PR, but if you discover anything new about the problem let us know or submit a new PR. Looking at the code, I'm wondering if you can elaborate on what the timing adjustment does -- TBH I did not understand the purpose of the original adjustment (i.e., why is any adjustment to T1 necessary?)

@ocack

ocack commented Jan 2, 2024 •

Copy link
Copy Markdown

Hi sparky650

Is there any news about the test with the WS2811 that you ordered ?
I can help if needed, I am not a novice in C programmation.
I just miss the specification of the WS2811 and the renesas platform/framework.
What would be the starting point to try to fix the issue of the WS2811 and the UNO R4 ?
We have the hardware for testing any fix/idea.
When do you plan to test it ?

Regards

@ocack

ocack commented Jan 29, 2024

Copy link
Copy Markdown

Can anybody help me for this issue ?
Difficult to beleive that I am the only one that interfaces an Arduino R4 with FastLed and a strip WS2811 !?
I would like to help the community to move forward on that issue.
Which tests can I do ?
Which documentation do I need for trying to fixing that ?
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants