I’m having trouble with my LED strip that I purchased from Aliexpress (link in comments later). This was recommended from a Youtuber so I decided to buy the same strip as he did.
Supposedly, it is an APA102 chipset, with a Clock pin, Data pin, and Pwr and GND.
I’m using this code call:
FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, GRB>(leds, NUM_LEDS);
with everything properly declared (variable-wise and such). I tried running the calibration code (and other existing code) and I’m getting sporadic color changes.
I’m using the entire strip (30 leds/m, so 150 in all with a proper dedicated power supply), also an Arduino Uno. Can anyone help?
So that ended up lighting up the entire strip, with the ends flickering colors. I’m starting to believe I wasn’t given an APA102 chipset strip? I also tried changing the color order from GBR to RGB with no avail.
I will say it’s possible the power supply may be acting up. I switched DC-to-screw terminal adapters and got a different result. Still generally the same (some flickering and such) but less of the strip lit up.
What power supply are you using, and how is it connected?
And double checking… do you have the ground from the strip connected to the ground of the UNO?
Is it flickering all over, or only after a certain point down the strip?
Also, even if you have the color order incorrect, you shouldn’t get any flickering at all, just different colors then you would expect.
I think this may have solved it! The grounding wire that was “soldered” onto the wire is bad. I tested out a rainbow code while touching a grounded cable to the other negative terminal on the strip, and it worked beautifully!
Interestingly enough, if I leave the arduino on, and either the GND or Data pins in, the strip will still light up red, although very faintly. Uploading new code to the Arduino required me to pull the GND plug from the arduino and back in again (haven’t tried with the data pin yet)
@Daniel_Garcia Oh, believe me I had it backwards the first time, and let’s just say I blinded myself with that light!
@marmil I’m using a 5v 10a power supply that has been confirmed with other DIY users. Also, I just grounded the strip and it works! Although, uploading new code to the arduino requires me to pull the pins from the arduino and plug them back in.
Pulling the power supply also leaves the strip on very faintly with a red color.
Thank you for the tips! I am powering the Uno with a 12v 1a adapter. When I am uploading code it is powered via USB only. Would that explain the dim red glow/weird behavior near the end of the strip? I will be double checking the output of the 5v 10a adapter to be sure
If the leds are still plugged in to the uno they will try to draw power from it while you are programming. If you are going to remove power from the uno for programming you should completely disconnect the leds.
For testing purposes and to reduce the number of variables in the system, try removing the 12V supply for now and just power the UNO from USB. Make sure the grounds from your 5V supply and UNO are connected.
When wired this way are you able to upload code?
Check the voltage from your 5V supply. Use a multi meter to measure the voltage at the start of your strip, and also at the end of your strip.
My multimeter is currently at school, so I’m unable to get a hold of it.
Just a quick question, is it possible to power both ends of the strip simultaneously?
Yes. You can use the same power source, OR if it’s a second 5V power source you will need to break the positive (+) line somewhere along the strip. (In the middle for example.) You do not need to break the ground line. All the grounds should always be connected.
Thanks! I’ll give it a shot. So far, the strip behaves correctly to an extent.
Near the end of the strip, it’s erratic with the colors (running the Rainbow demo it seems accelerated). On that end it is grounded, with the positive end connected to the power supply.
I turned down the amount of LEDs from 150 to 120. The ones that are unused stay a bright white, and the strip behaves correctly. There is some minor flashing here and there.