1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + OSMC LEDs don't light up

Discussion in 'Software Support' started by dani3, 5 January 2019.

  1. dani3

    dani3 New Member

    Messages:
    5
    Hardware:
    RPi3, +Arduino
    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:



    This is the Hyperion.config:



    And this is the log:



    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,
     
  2. Akriss

    Akriss Active Member

    Messages:
    495
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    That has been clipped, correct?
     
  3. dani3

    dani3 New Member

    Messages:
    5
    Hardware:
    RPi3, +Arduino
    Yes, it has.
     
  4. Akriss

    Akriss Active Member

    Messages:
    495
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Not sure.
    Try lowering:
    Code:
    #define serialRate 500000
    And.
    Code:
     "rate"     : 500000,
    Hope it helps.
     
  5. dani3

    dani3 New Member

    Messages:
    5
    Hardware:
    RPi3, +Arduino
    I tried different speeds but still nothing. I'll try to investigate a little more tomorrow.
     
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,303
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    and you sure it is "/dev/ttyACM0" ?
    can you make a screenshot without the arduino connectet fro "ls /dev" and one after connecting it
     
  7. dani3

    dani3 New Member

    Messages:
    5
    Hardware:
    RPi3, +Arduino
    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.

     
  8. dani3

    dani3 New Member

    Messages:
    5
    Hardware:
    RPi3, +Arduino
    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.
     
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,303
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    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