flickering Apa102, low Mhz and USB.

Status
Not open for further replies.

keezpipslab

New member
Hi All,

I am trying to control 1050 leds with a teensy 3.2 and a prop shield (low cost). I tried all the examples and I use a good 50A power supply, but still the leds are giving me a beautiful organic but unwanted flickering effect.
Only if I put the project to 'CPU Speed: 8 MHz (reduce code size No USB)’ the flickering is gone, but I can’t use the USB anymore (which i need).
Is there a way to - or still use the USB with 8 MHz - or a solution to the flickering (like more powersupplies :) )?
I did try to lower the data rate to with ' FastLED.addLeds<APA102,11,13,RGB,DATA_RATE_MHZ(8) >(leds,NUM_LEDS); '
No luck.

Thanks,
Keez

#include <FastLED.h>

#define NUM_LEDS 1050
CRGB leds[NUM_LEDS];

void setup() {
delay(2000); // sanity check delay
//FastLED.addLeds<APA102, BGR>(leds, NUM_LEDS);
FastLED.addLeds<APA102,11,13,RGB,DATA_RATE_MHZ(8) >(leds,NUM_LEDS);
pinMode(7, OUTPUT);
digitalWrite(7, HIGH); // enable access to LEDs
}

void loop() {
// Move a single white led
for(int n = 0; n < NUM_LEDS; n++) {
leds[n] = CRGB::White;
FastLED.show();
delay(4);
leds[n] = CRGB(0,0,0);
}
}
 
Status
Not open for further replies.
Back
Top