Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15287

Arduino R4 not lighting an addressable LED

$
0
0

For the past couple of days I have been trying to turn on a SK6812 RGBW LED with my new Arduino R4 Wifi board and after trying around 10 different codes with the Adafruit NeoPixel library (even the example ones) and other libraries I don’t understand why the LED doesn’t work. If I apply current from the 5v pin to the data pin it turns on, so the LED isn’t broken and the soldering is fine, also the test code to turn the internal 13th LED pin works (the internal LED Matrix too) but still no light on the SK.
All numerical pins have 2.5v on idle powered through USB. The pin 13 gets 5vs if a jack is connected and the pin open with this test code, still no light. Capacitor or resistance doesn’t make any difference.
I have tried absolutely everything I imagined and found on internet for hours, if you guys know a solution I’ll be blessed.
Here is the code I'm using at the moment to make tests:

#include <arduino.h>
#include <Adafruit_NeoPixel.h>

#define LED_PIN    13
#define LED_COUNT 1

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, NEO_RGBW + NEO_KHZ800);

void setup() {
  // put your setup code here, to run once:
pinMode(13, OUTPUT);
 strip.begin();
strip.setPixelColor(0, 255, 0, 0, 50);
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(13, HIGH);   // set the LED on
  delay(2000);              // wait for a second
  digitalWrite(13, LOW);    // set the LED off
  delay(2000); 

   digitalWrite(6, HIGH);   // set the LED on
  delay(2000);              // wait for a second
  digitalWrite(6, LOW);    // set the LED off
  delay(2000); 

strip.show();

}

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 15287

Trending Articles