LEDs don't light up

  • Hello,


    After trying several options I always get the same result, Hyperion looks like it starts correctly, the grabber is working fine apparently, but the LEDs don't light up, only the initial flash in the setup works. Then, the TX blinks but nothing lights up.


    This is my setup:

    • Raspberry Pi 3B+
    • OSMC
    • Arduino MEGA
    • WS2812B


    This is the sketch I'm using, although I tried like 2 or 3 more:


    [MEDIA=pastebin]fzSiyrQE[/MEDIA]


    This is the Hyperion.config:


    [MEDIA=pastebin]4HEjmVnP[/MEDIA]


    And this is the log:


    [MEDIA=pastebin]DsPM91LX[/MEDIA]


    I checked that the LEDs work, with DI pin connected to D6 and GND to the Arduino. I tried also with Raspbian but same result.


    I don't know what else I can try. Any idea of what's going on?


    Thanks,

  • I've connected an LED to the Arduino to sort of debug it. I could only see that this piece of code is reached:


    Code
    if (transmissionSuccess)
    {  
      digitalWrite(LED_BUILTIN, HIGH);
      endTime = millis() + OFF_TIMEOUT;
      FastLED.show();
    }


    So I tried to hardcore the LEDs color, instead of this code:


    Code
    leds[idx].r = r;
    leds[idx].g = g;
    leds[idx].b = b;


    This line:


    Code
    leds[idx] = CRGB(255,0,0);


    But nothing, I'll continue fiddling with the code, maybe there's some misconfiguration using the library with these leds.


    PS: @TPmodding Yes, I checked that and it's correct.


    Here's the differences of /dev folder when the Arduino is plugged in.


    [MEDIA=pastebin]eVXPa1K3[/MEDIA]

  • Taking a closer look at this page's tutorial, I saw that I have to set this:


    Code
    #Increase UART speed
    init_uart_clock=14745600


    So I did, rebooted, and then the LEDs were on but completely random, and static. Then I restarted Hyperion and they were gone, rebooted the Raspberry and still nothing, the same behaviour as always. Initial flash works, but nothing else.

    • Offizieller Beitrag

    just try the other baudrates
    // Baudrate, higher rate allows faster refresh rate and more LEDs
    //#define serialRate 460800 // use 115200 for ftdi based boards
    //#define serialRate 115200 // use 115200 for ftdi based boards
    #define serialRate 500000 // use 115200 for ftdi based boards

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!