The capacitor right after the power supply is labelled "1K uF", is it really 1 Farad? If so you might want to try some different values with that to see if it's a noise problem, e.g. in parallel with that add one or a couple of 0.1 uFs, 4.7 uF, etc.
The adafruit website says to use a 1k uF capacitor and a 330 ohm resistor, so that is what I am using. It works on other microcontrollers, so I don't believe that is the issue.
Sorry for threadjacking but if you're just looking to level shift a single GPIO pin and only one direction, couldn't you just use a simple transistor?
I'm about to package up 1.12-beta6. Should I update FastLED? Can anyone recommend which version/branch would be the best to include at this point?
Thank you, I didn't notice that, I just assumed that the signal went from A to B. This part works fine now.In this case direction low will have it activating the right hand side drivers so it will be operating in reverse (see chapter 5 fig 1) from your sketch.
#include "FastLED.h"
#define NUM_LEDS 91
#define DATA_PIN 10
CRGB leds[NUM_LEDS];
void setup ()
{
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}
void loop() {
for (int each; each < NUM_LEDS; each++) {
leds[each] = CRGB::Green;
}
FastLED.show();
delay(1000);
for (int each; each < NUM_LEDS; each++) {
leds[each] = CRGB::Red;
}
FastLED.show();
delay(1000);
}
#include "FastLED.h"
#define NUM_LEDS 91
#define DATA_PIN 10
CRGB leds[NUM_LEDS];
void setup ()
{
FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);
}
void loop ()
{
for (uint8_t k = 0; k < 91; k++) {
leds[k] = CRGB::Black;
leds[k - 1] = CRGB::White;
FastLED.show();
delay(500);
}
}
Hi!
I´m sorry for bringing this thread up again, but I have been trying to get some WS2812B leds to work with a Teensy 3.1, and this was one of the only google searches I could find that helped me. One thing that I missed was a drawing showing the actual connections needed for the 74HCT245 to work. There is one, but as you say later it is incomplete.
So I wanted to upload the circuit that I made, in case someone arrives here with the same problem. The leds work great wiring things like this
View attachment 6140