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

APA102 and fill_rainbow() #674

Open
MorganBarbier opened this Issue Oct 31, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@MorganBarbier

MorganBarbier commented Oct 31, 2018

Hi everybody,

My first experience with electronic stuff and leds strip! (5m of 30leds/m => 150 leds) ( https://fr.aliexpress.com/item/1m-2m-4m-5m-5V-APA102-digital-smart-rgb-led-pixel-strip-light-30-32-60/32794298843.html?spm=a2g0s.9042311.0.0.40696c37u2EY2e https://fr.aliexpress.com/item/LAFVIN-De-Base-Starter-Kit-pour-Arduino-UNO-MEGA-2560-avec-Tutoriel/32869624633.html?spm=a2g0s.9042311.0.0.40696c37u2EY2e )

What I see: quickly a rainbow but the blue pixels become either red or green... so it is a mix between green and red.

What I did:
using FastLED v3.2.1

  • -> 5V power Arduino supply
  • -> GND Arduino
    CLK -> pin 5
    DAT -> pin 6
    (5 and 6 to enjoy PWM if necessary...)

Since some colors changed into rainbow I tested different things, one of them is really strange for me:

#include <FastLED.h>

  #define NUM_LEDS 150
  #define DATA_PIN 6
  #define CLOCK_PIN 5

  #define COLOR_ORDER BGR

  CRGB leds[NUM_LEDS];


  void setup()
  {

       FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, BGR>(leds, NUM_LEDS);
       fill_rainbow(leds, NUM_LEDS, 128);
       FastLED.show();
  }

  void loop()
  {

  }

and after some seconds some blue leds becames either red either green....

My questions are:

  • is it a bug of FastLED?
  • I did a mistake in electronic?
  • I did a mistake in programming?
  • My LEDs strip is dead?

thank you for your help!!!!

@marmilicious

This comment has been minimized.

marmilicious commented Nov 1, 2018

What if you move the fill_rainbow and Fast.LED.show lines out of setup and into the main loop?

Also, how are you powering your pixels?

Probably not related, but did you run the FastLED RGBCalibrate example here:
https://github.com/FastLED/FastLED/tree/master/examples/RGBCalibrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment