Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't control the strip #5

Closed
haizaar opened this issue Jul 13, 2019 · 6 comments
Closed

Can't control the strip #5

haizaar opened this issue Jul 13, 2019 · 6 comments

Comments

@haizaar
Copy link
Collaborator

haizaar commented Jul 13, 2019

Hi @jim-sokoloff ,

I finally got boards and the strip, but I fail to control it. Any ideas how can I further debug it? (I got BM235 multimter and that's all, no scope)

The wiring picture is below. I simplified the code down to the bare minimum, tried two different nano boards and it still no lights are coming up. Couple of things:

  • The strip is probably fine, since when I mounted a vanilla nano and powered the strip + nano, lights came up randomly (some noise turned them on probably)
  • I checked clock/data pins and I see that +5v on clock pin.

What have I tried:

  • Double-checking that yellow is connected to DI and green to CI
  • Double-checked wiring from arduino pins down to the strip.

Here is the minimal code that I use:

#include <Adafruit_DotStar.h>
#define NUMPIXELS 60 // Number of LEDs in strip
 
// Here's how to control the LEDs from any two pins:
#define DATAPIN    6
#define CLOCKPIN   7
Adafruit_DotStar strip(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BRG);


void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello");

  strip.begin();
  strip.show();
  strip.setPixelColor(10, 255, 127, 0);
  strip.show();

}

void loop() {
  // put your main code here, to run repeatedly:
  strip.show();
  delay(50);
}

image

Here is the strip I use: https://www.aliexpress.com/item/32878004298.html, 60 leds/m, IP67 white PCB if that matter.

@jim-sokoloff
Copy link
Collaborator

It looks like you're maybe using pins D8 and D9 physically and D6 and D7 in the code. Hard to be sure with the picture...

@jim-sokoloff
Copy link
Collaborator

Sorry; zooming in more, it looks like it's a parallax thing.

@jim-sokoloff
Copy link
Collaborator

On the Aliexpress photo, it looks like maybe green is data in and yellow is clock in. Perhaps try switching those (or looking closely at the ones you have; I can't tell from your photo above which wires are going where).

@jim-sokoloff
Copy link
Collaborator

jim-sokoloff commented Jul 16, 2019

I also would not use two power supplies. Use just the computer power supply to drive the Nano, then pull power off the 5V and GND from there to the LED strips. You have two USB supplies in the mix and it's not clear if they're sharing a common ground potential (and even if they are, I don't like to see a USB supply "fighting" the output of the regulator on the Nano).

Edit: disconnect the braided USB supply.

@jim-sokoloff
Copy link
Collaborator

If none of that helps, post a clear shot of the flex PCB where the input power comes from (so I/we can see which color is going to which line on the APA segment).

@haizaar
Copy link
Collaborator Author

haizaar commented Jul 17, 2019

That's very interesting. I did all of what you suggest back on Sunday already. I figured out that common ground is a must. Then after your replies I checked everything again and still nothing helped.

Eventually, I decided to cut out a small strip of just 5 leds, solder 4-core wire to it and have a try. I thought maybe with my early tests something went wrong with the first LED and not it blocks traffic to the rest.

With the new stip it worked! I cut of the first led, resoldered the strip of 50 and they all worked! I reprogrammed nano it to drive just a single led and tried again with that originally-first led and it didn't work as assumed.

So here I have it. All good! I even managed to write some moving rainbow code. In action: https://www.youtube.com/watch?v=Dl4kCLGTWSw

Still, I wonder what could've gone wrong with that first led - I only plugged usb-sourced power, and my usb wart does not have quick-charge, so no way it could've zapped it with 9 volts or something. Do you have any ideas? Could have reverse polarity kill it?

Thanks again for your help!

@haizaar haizaar closed this as completed Jul 18, 2019
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

No branches or pull requests

2 participants