UNO R4 Wifi controlling WS2811 LED pixel

Hello there!

Recently I bought a Arduino UNO R4 Wifi wanting to use it to control a WS2811 LED pixel strip.
I am a bit familiar with the FastLED library thus I wanted to use it to do this project.
The FastLED library doesn't support the UNO R4 yet though.
Therefor I installed a version of the library which is supposed to support the R4.
Yet when I upload my sketch to the arduino the LED strip stays white.
I am using a 12V 3A PSU for the LED strip.
The Arduino is powerd through USB.
I checked the Arduino through the build in LED-matrix which works fine.
(BTW the strip does flicker a bit if the data pin is disconected and the white (data) wire is touched)

Below is my code, it's just a simple code to check if the LED strip works.

#include <FastLED.h>

#define NUM_LEDS 50
#define BRIGHTNESS 100
#define DATA_PIN 5


CRGB leds[NUM_LEDS];

void setup() {
  delay(2000);
  FastLED.addLeds<ws2811, DATA_PIN, RGB>(leds, NUM_LEDS);
  FastLED.clear();
}


void loop() {
  leds[0] = CRGB::Red;
  FastLED.show();
}

Does anyone have any idea why the strip doesn't respond?

I believe that you will find that it does. Which version of the FastLED library have you got installed ?

See GitHub - arduino/uno-r4-library-compatibility

I have not tested it extensively but it seems to work here

Damn, thanks! I am not at home so I can't test out the actual LED-strip itself but the library seems to be working fine with the Arduino. Not sure why it didn't work earlier.
Thanks again!

Aight, got home and tested it, sadly to no avail. Would it then be the LED strip or Arduino malfunctioning?
Or are the specific pins I need to use?

You should be able to use any GPIO pin

Which version of the FastLED library have you got installed ?

What exactly happens when you upload your sketch ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.