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

RPi + LibreELEC Leds are mirrored somehow

Discussion in 'Software Support' started by mheijnemans, 11 February 2019.

  1. mheijnemans

    mheijnemans New Member

    Messages:
    1
    Hardware:
    RPi3, +nodeMCU/ESP8266
    Hi,

    Recently i installed a RPI3 with libreElec and hyperion, and i love it!
    There is just one single issue:
    The leds only respond to the left half of the screen.
    Strange enough, this doesn't mean the right half isn't working: the right side does exactly the same as the left side.
    When there is color on the left side, both sides mimic that side.
    When there is no color on the left, all leds are dark.

    This is my config file:
    Code:
    // Automatically generated configuration file for Hyperion ambilight daemon
    // Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
    // Generated by: HyperCon (The Hyperion deamon configuration file builder)
    // Created with HyperCon V1.03.3 (22.10.2017)
    
    {
       // DEVICE CONFIGURATION
       "device" :
       {
         "name"  : "wireless",
         "type"  : "udp",
         "output"  : "192.168.1.240:19446",
         "rate"  : 250000,
         "maxpacket"  : 1450,
         "protocol"  : 0,
         "colorOrder" : "grb"
       },
    
       // COLOR CALIBRATION CONFIG
       "color" :
       {
         "channelAdjustment" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "pureRed" :
             {
               "redChannel"     : 255,
               "greenChannel"     : 0,
               "blueChannel"     : 0
             },
             "pureGreen" :
             {
               "redChannel"     : 0,
               "greenChannel"     : 240,
               "blueChannel"     : 0
             },
             "pureBlue" :
             {
               "redChannel"     : 0,
               "greenChannel"     : 0,
               "blueChannel"     : 225
             }
           }
         ],
         "temperature" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "correctionValues" :
             {
               "red"    : 255,
               "green"   : 255,
               "blue"    : 255
             }
           }
         ],
         "transform" :
         [
           {
             "id"  : "default",
             "leds" : "*",
             "hsl" :
             {
               "saturationGain"   : 1.0000,
               "luminanceGain"     : 1.0000,
               "luminanceMinimum"     : 0.3000
             },
             "red" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             },
             "green" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             },
             "blue" :
             {
               "threshold"    : 0.0000,
               "gamma"     : 2.5000
             }
           }
         ],
       // SMOOTHING CONFIG
         "smoothing" :
         {
           "type"  : "linear",
           "time_ms"  : 50,
           "updateFrequency" : 25.0000,
           "updateDelay"  : 0
         }
       },
    
       // NO V4L2 GRABBER CONFIG
       // FRAME GRABBER CONFIG
       "framegrabber" :
       {
         "width" : 64,
         "height" : 64,
         "frequency_Hz" : 10.0,
         "priority" : 890
       },
    
       // BLACKBORDER CONFIG
       "blackborderdetector" :
       {
         "enable" : true,
         "threshold" : 0.1,
         "unknownFrameCnt" : 600,
         "borderFrameCnt" : 50,
         "maxInconsistentCnt" : 10,
         "blurRemoveCnt" : 1,
         "mode" : "default"
       },
    
       // KODI CHECK CONFIG
       "xbmcVideoChecker" :
       {
         "xbmcAddress" : "127.0.0.1",
         "xbmcTcpPort" : 9090,
         "grabVideo" : true,
         "grabPictures" : true,
         "grabAudio" : true,
         "grabMenu" : false,
         "grabPause" : true,
         "grabScreensaver" : true,
         "enable3DDetection" : true
       },
    
       // 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 BOBLIGHT SERVER CONFIG
       // NO JSON/PROTO FORWARD CONFIG
    
       // LED CONFIGURATION
       "leds" :
       [
         {
           "index" : 0,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.8000, "maximum" : 1.0000 }
         },
         {
           "index" : 1,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.6000, "maximum" : 0.8000 }
         },
         {
           "index" : 2,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.4000, "maximum" : 0.6000 }
         },
         {
           "index" : 3,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.2000, "maximum" : 0.4000 }
         },
         {
           "index" : 4,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.2000 }
         },
         {
           "index" : 5,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 6,
           "hscan" : { "minimum" : 0.1000, "maximum" : 0.2000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 7,
           "hscan" : { "minimum" : 0.2000, "maximum" : 0.3000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 8,
           "hscan" : { "minimum" : 0.3000, "maximum" : 0.4000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 9,
           "hscan" : { "minimum" : 0.4000, "maximum" : 0.5000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 10,
           "hscan" : { "minimum" : 0.5000, "maximum" : 0.6000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 11,
           "hscan" : { "minimum" : 0.6000, "maximum" : 0.7000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 12,
           "hscan" : { "minimum" : 0.7000, "maximum" : 0.8000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 13,
           "hscan" : { "minimum" : 0.8000, "maximum" : 0.9000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 14,
           "hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
         },
         {
           "index" : 15,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.0000, "maximum" : 0.2000 }
         },
         {
           "index" : 16,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.2000, "maximum" : 0.4000 }
         },
         {
           "index" : 17,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.4000, "maximum" : 0.6000 }
         },
         {
           "index" : 18,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.6000, "maximum" : 0.8000 }
         },
         {
           "index" : 19,
           "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.8000, "maximum" : 1.0000 }
         },
         {
           "index" : 20,
           "hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 21,
           "hscan" : { "minimum" : 0.8000, "maximum" : 0.9000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 22,
           "hscan" : { "minimum" : 0.7000, "maximum" : 0.8000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 23,
           "hscan" : { "minimum" : 0.6000, "maximum" : 0.7000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 24,
           "hscan" : { "minimum" : 0.5000, "maximum" : 0.6000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 25,
           "hscan" : { "minimum" : 0.4000, "maximum" : 0.5000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 26,
           "hscan" : { "minimum" : 0.3000, "maximum" : 0.4000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 27,
           "hscan" : { "minimum" : 0.2000, "maximum" : 0.3000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 28,
           "hscan" : { "minimum" : 0.1000, "maximum" : 0.2000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         },
         {
           "index" : 29,
           "hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
           "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
         }
       ],
    
       "endOfJson" : "endOfJson"
    }
    
    

    I'm using the internal frame grabber, and the leds are connected to a ESP8266 using the following sketch:
    https://github.com/SciLor/Hyperion_LED-Controller

    Does anyone have any clue how to fix this?
    I tried messing around with the grabber settings, but this doesn't seem to help.
    Also, i can't seem to be able to take screenshots for the internal framegrabber.
     
  2. Akriss

    Akriss Active Member

    Messages:
    476
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    it's probably the "1st LED offset" need a negative value.
    Then the led should be rearranged in the correct sides.

    Add the LED count from one vertical side and one horizontal side. Then add that the value to the "1st LED offset" as a negitive value (From the above config it look as if you have 5 leds on the vertical and 10 on the horizontal, So it look like the value for you setup is "-15", I could be wrong though)

    Hope its of help.