LED strip example not working with r4

I'm setting up the basic LED strip example from the sundfound r4 kit.

Photo of the wiring here. It's only 3 wires. yellow to pin 6. Red to 5v and black to ground. The exact code from the example is uploaded.

I can't figure out what I missed. I've used this r4 for other projects and it's been fine. For what it's worth, I also tried getting this to work on an Nano and it also didn't work. But that wasn't the example given.

code

/*
  The code controls a chain of 8 NeoPixel LEDs using the FastLED library. It 
  lights up each LED in the chain one at a time, in a blue color, with a small 
  delay between each LED. After lighting up an LED, it turns it off ("Black") 
  before moving to the next one.
  
  Board: Arduino Uno R4
  Component: WS2812 RGB LEDs Strip
  Library: https://github.com/FastLED/FastLED  (FastLED by Daniel Garcia)
*/

#include <FastLED.h>  // Include FastLED library
#define NUM_LEDS 8    // Number of LEDs in the chain
#define DATA_PIN 6    // Data pin for LED control

CRGB leds[NUM_LEDS];  // Array to hold LED color data
  
void setup() {
  FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);  // Initialize LEDs
}

void loop() {
  // Loop through each LED and set it to blue
  for (int dot = 0; dot < NUM_LEDS; dot++) {
    leds[dot] = CRGB::Blue;   // Set the current LED to blue
    FastLED.show();           // Update LEDs
    leds[dot] = CRGB::Black;  // Clear the current LED
    delay(30);                // Wait for a short period before moving to the next LED
  }
}

Photo

Deleted.

Your code works (a zooming, blue pixel). Verify your wiring. Show your wiring diagram.

Sorry what do you mean by "Deleted?"

Here's a circuit diagram matching the photo I posted.

Do I just assume the LED strip is bad?

Not readable.

What is not readable?

I'm assuming you mean the green lines are covering the pins, I've moved it around a little.

Also, you have the Neopixels backwards. You are connecting to the output.

[edit]
Now you changed the drawing.

That's why I posted the photo. So you can see the actual wiring. It's connected to the input. I've updated the diagram accordingly.

Not readable.

Your wiring is bad. Your sketch works.

Much more readable, hi-res, ultra crisp photo.

I don't see what is bad about the wiring. It's 3 wires. My 5 year old could get this right. I must be an idiot if I can't get 3 wires right.

That's how you respond to help?

Well you've been providing single, one word responses, with no context, no detail, and no empathy. How else would someone respond to such behavior?

I get that you're here to help, but your responses thus far are dismissive and punitive.

Your's are ungrateful at a minimum. Were those enough words for you?

Wrong.

1 Like

Well I'm sorry that you think I'm ungrateful. When your first response was "Deleted." and your second response was "Not Readable". That made it tough to give you a bit more.

I think I could have started off my response by saying thank you. And I think you could have said "Hey I think a wiring diagram would be helpful, also the photo is a bit hard to see, maybe take a closer picture".

In a world where we have less and less actual human interaction, I think we can all do a bit more. Me included.

I think you might be right that this LED strip is connected to the output not the input. But it literally came in the kit this way, and it's heat shrinked, so it's not just un plug and plug in the other side. But the sunfounder website has it plugged in the way I have it.

I tested using my multimeter and I am getting 5v from the LED strip contacts

ChatGPT hooked me up, It suggested I bypass the first LED using a separate wire for the data line. And it turns out the first LEDs are bad.

"I deleted my previous thought." We are separated by a common language.

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