jopeto2000
Member
Hi,
I have lower speed with teensy 4.1 when send data to leds, compared with arduino every.
for test I use same code (below), on teensy4.1 and on arduino every, led strips are same - 800 leds (SK6812 with mini 3535 smd, 144 led/m), power supply are the same, but when I start test - "three color wheel" (code below) - on teensy 4.1 finish for approx 60sec, on arduino every for approx 40sec!
I measure the time with an external manual stopwatch.
Оn Teensy 4.1 I tried everything I could think of - I tried with different libraries - Fastled, WS2812Serial, octoWS2811 - the time always remains around 60s, I tried different CPU speeds on Teensy - from 150 to 960 Mhz - again no change.
I have no problem with power - I inject 5V on every 40leds! All work fine, but on teensy work slower !!
With Arduino every I don't need to use stepup 3.3V to 5V, on Teensy, I first try with SparkFun Logic Level Converter - Bi-Directional (https://www.sparkfun.com/products/12009), but found information somewhere that they are slow and try with 74AHCT125N - result always is same - around 60sec (the problem apparently not in the logical converters!)
I try on Teensy with different control pins (1, 9, 10...)- same result - 60sec.
Only for info - I try parallel output on Teensy with octoWS2811+FastLed and all works - when I use two outputs time is around 30sec, when use 4 pins - time is around 15sec.
Any ideas?
I have lower speed with teensy 4.1 when send data to leds, compared with arduino every.
for test I use same code (below), on teensy4.1 and on arduino every, led strips are same - 800 leds (SK6812 with mini 3535 smd, 144 led/m), power supply are the same, but when I start test - "three color wheel" (code below) - on teensy 4.1 finish for approx 60sec, on arduino every for approx 40sec!
I measure the time with an external manual stopwatch.
Оn Teensy 4.1 I tried everything I could think of - I tried with different libraries - Fastled, WS2812Serial, octoWS2811 - the time always remains around 60s, I tried different CPU speeds on Teensy - from 150 to 960 Mhz - again no change.
I have no problem with power - I inject 5V on every 40leds! All work fine, but on teensy work slower !!
With Arduino every I don't need to use stepup 3.3V to 5V, on Teensy, I first try with SparkFun Logic Level Converter - Bi-Directional (https://www.sparkfun.com/products/12009), but found information somewhere that they are slow and try with 74AHCT125N - result always is same - around 60sec (the problem apparently not in the logical converters!)
I try on Teensy with different control pins (1, 9, 10...)- same result - 60sec.
Only for info - I try parallel output on Teensy with octoWS2811+FastLed and all works - when I use two outputs time is around 30sec, when use 4 pins - time is around 15sec.
Any ideas?
Code:
#include <Adafruit_NeoPixel.h>
#define PIN 9
Adafruit_NeoPixel strip = Adafruit_NeoPixel(800, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.setBrightness(20);
strip.show(); // Initialize all pixels to 'off'
}
void loop() {
colorWipe(strip.Color(255, 0, 0)); // Red
colorWipe(strip.Color(0, 255, 0)); // Green
colorWipe(strip.Color(0, 0, 255)); // Blue
}
void colorWipe(uint32_t c) {
for(uint16_t i=0; i<strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
}
}