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

RPi + LibreELEC Very abrupt LED transition

Discussion in 'Hardware Support' started by halfblade, 9 November 2020.

  1. halfblade

    halfblade New Member

    Messages:
    2
    Hello, I turn to the wise to see if you can help me a little;)

    The problem I have is that the transitions are not very good.
    It gives the feeling that it goes at about 15fps and in the end it ends up making you dizzy.

    I have tried different settings and looking for possible solutions, without success.

    I think the problem is in the quality of the LEDs, they are ws2812b with 3 pins at 60 LEDs per meter.
    I've been thinking of changing them for some APA102 with 144 LEDs per meter, but before buying them I want to make sure it's the problem.

    The hardware I use is:

    Aliexpress ambilight kit
    3x2 divider
    Raspberry 3 Model B with SO LibreELEC 9.2.6 (Leia)
    Grabber Fushicai UTVF007
    HDMI to AV converter
    Diagrama.jpg

    Hyperion Log:

    Code:
    // Created with HyperCon V1.03.3 (22.10.2017)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "HyperionRole",
            "type"       : "adalight",
            "output"     : "/dev/ttyUSB0",
            "rate"     : 115200,
            "delayAfterConnect"     : 0,
            "colorOrder" : "rgb"
        },
    
        // COLOR CALIBRATION CONFIG
        "color" :
        {
            "channelAdjustment" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "pureRed" :
                    {
                        "redChannel"        : 255,
                        "greenChannel"        : 0,
                        "blueChannel"        : 0
                    },
                    "pureGreen" :
                    {
                        "redChannel"        : 0,
                        "greenChannel"        : 255,
                        "blueChannel"        : 0
                    },
                    "pureBlue" :
                    {
                        "redChannel"        : 0,
                        "greenChannel"        : 0,
                        "blueChannel"        : 255
                    }
                }
            ],
            "temperature" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "correctionValues" :
                    {
                        "red"     : 255,
                        "green"    : 255,
                        "blue"     : 255
                    }
                }
            ],
            "transform" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "hsl" :
                    {
                        "saturationGain"    : 0.5000,
                        "luminanceGain"        : 0.8000,
                        "luminanceMinimum"        : 0.0000
                    },
                    "red" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.5000
                    },
                    "green" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.7500
                    },
                    "blue" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.6000
                    }
                }
            ],
        // SMOOTHING CONFIG
            "smoothing" :
            {
                "type"            : "linear",
                "time_ms"         : 100,
                "updateFrequency" : 40.0000,
                "updateDelay"     : 0
            }
        },
    
        // V4L2 GRABBER CONFIG
        "grabber-v4l2" :
        {
            "device" : "/dev/video0",
            "input" : 0,
            "standard" : "PAL",
            "width" : -1,
            "height" : -1,
            "frameDecimation" : 2,
            "sizeDecimation" : 8,
            "priority" : 900,
            "mode" : "2D",
            "cropLeft" : 25,
            "cropRight" : 25,
            "cropTop" : 20,
            "cropBottom" : 15,
            "redSignalThreshold" : 0.0,
            "greenSignalThreshold" : 0.0,
            "blueSignalThreshold" : 0.0
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.0,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
        // BOOTEFFECT CONFIG
        "bootsequence" :
        {
            "color" : [0,0,0],
            "effect" : "Rainbow swirl",
            "duration_ms" : 3000,
            "priority" : 700
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects",
                "/usr/share/hyperion/effects"
            ]
        },
    
        // NO FRAME GRABBER CONFIG
        // NO KODI CHECK CONFIG
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
     
  2. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    First thing you should do is move to Hyperion.NG
    The version you use is outdated.

    FYI: I use WS2812b too, with 176Leds in my setup (60Leds/m) and everything is smooth, your problem is not with the Leds.
     
    • Like Like x 2
  3. halfblade

    halfblade New Member

    Messages:
    2
    Thanks for replying Neeeed.

    I have done the first tests with Hyperion.NG, but it still does not resolve at all.
    It is noticeable above all when it goes from a color to black (off), it jumps until the LEDs turn off.

    The problem is how I configure it, could you pass me your code to start from a stable base?

    Another possible failure that I think it may be, is the Baudrate, if I put a rate higher than 115200 it doesn't work.
    I have directly connected the LED kit to the USB of the Pi, I suppose that the box will have an Arduino and it is set to that Baudrate.

    This is the kit:
    https://es.aliexpress.com/item/3282...earchweb0_0,searchweb201602_,searchweb201603_
     
  4. NeeeeB

    NeeeeB Active Member

    Messages:
    178
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    Set latch Time to 0, at the same place you set the baud rate (115200 is ok). You might need to enable advanced settings to see it. You Can Do this by clicking on the upper right icon in the WebUI.
    Also, set Time to 100ms and update frequency to 50hz in the smoothing configuration (that is in the image processing tab of the webUI)
     
    Last edited: 11 November 2020