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

RPi + OpenELEC DIY LightBerry HDMI without RPI

Discussion in 'Hardware Support' started by Tomy137, 4 January 2017.

  1. Tomy137

    Tomy137 New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit
    Bonjour,


    I bought 3 times already equipment to operate the LightBerry with Hyperion on my Media-Center.
    1. Kit LightBerry 48 LED + Analogic Grabber(Works fine on RPI 1 GPIO)
      [​IMG] [​IMG]
    2. HDMI Converter (Again on RPI GPIO)
      [​IMG]
    3. USB Converter (To pass over GPIO)
      [​IMG]
    Stage 3. From this week, I brought out the whole system of its boxes for the occasion. Final objective: work without the RPI, I had repacked everything because it was really gas-works. I will describe my different experiments, if you have tracks to unlock me it would be really great!

    Target architecture
    [​IMG]
    Etape 1 - Le PC is one RPI with OpenElec


    In this configuration, I can not operate the system properly. Only one LED of the banner lights up in white, and whatever I do, nothing does. Yet no mistake Hyperion side.

    OpenELEC:~ # /storage/hyperion/bin/hyperiond.sh /storage/.kodi/addons/plugin.program.hyperion.configurator-master/
    hyperion.config.new
    Hyperion Ambilight Deamon
    Version : V1.02.0 (brindosch-f4162eb/2d45d51-1462453507
    Build Time: May 5 2016 06:07:47
    INFO: Selected configuration file: /storage/.kodi/addons/plugin.program.hyperion.configurator-master/hyperion.config.new
    HYPERION INFO: ColorTransform 'leds' => [0-21]
    HYPERION INFO: ColorTransform 'ledsOff' => [22-149]
    LEDDEVICE INFO: configuration:
    {
    "colorOrder" : "rgb",
    "name" : "MyPi",
    "output" : "/dev/spidev0.0",
    "rate" : 1000000,
    "type" : "lightberry"
    }

    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=100;updateDelay=0
    EFFECTENGINE INFO: Initializing Python interpreter
    INFO: Hyperion started and initialised
    INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
    BLACKBORDER INFO: threshold set to 0.1 (26)
    BLACKBORDER INFO: mode:default
    started
    INFO: Kodi checker created and started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    DISPMANXGRABBER INFO: Display opened with resolution: 1920x1080
    BLACKBORDER INFO: threshold set to 0.1 (26)
    BLACKBORDER INFO: mode:default
    INFO: Frame grabber created and started
    KODICHECK INFO: Kodi Connected
    KODICHECK INFO: Kodi Message: {"id":666,"jsonrpc":"2.0","result":[]}
    KODICHECK INFO: switching to OFF mode
    KODICHECK INFO: Kodi Message: {"id":668,"jsonrpc":"2.0","result":{"System.ScreenSaverActive":true}}
    KODICHECK INFO: Kodi Message: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":16,"minor":1,"revision":"60a76d9","tag":"stable"}}}
    EFFECTENGINE INFO: effect finished
    ^CINFO: Application closed with code 0
    KODICHECK INFO: Kodi Disconnected
    EFFECTENGINE INFO: Cleaning up Python interpreter


    So I followed the following tutorial to update the "Level Converter", with the model WS2801:
    : Link
    I checked the power supplies: 5V for the Premium Kit and for the Converter (Against 12 with the Serie version)

    For info, the configuration file was generated with Hypercon, and I tried several combinations for the parameterization of the device. Even though according to the official website, the good it this one:
    Code:
    "device": {
            "type": "adalight",
            "name": "MyPi",
            "colorOrder": "rgb",
            "output": "/dev/ttyACM0"
        },
    But it does not work either

    // 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.1 (11.06.2016)

    {
    // DEVICE CONFIGURATION
    "device" :
    {
    "name" : "MyHyperionConfig",
    "type" : "ws281x",
    "leds" : 48,
    "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" : 1.0000,
    "luminanceGain" : 1.0000,
    "luminanceMinimum" : 0.0000
    },
    "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" : 200,
    "updateFrequency" : 20.0000,
    "updateDelay" : 0
    }
    },

    // NO V4L2 GRABBER CONFIG
    // 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 fast",
    "duration_ms" : 3000,
    "priority" : 700
    },

    // JSON SERVER CONFIG
    "jsonServer" :
    {
    "port" : 19444
    },

    // PROTO SERVER CONFIG
    "protoServer" :
    {
    "port" : 19445
    },

    // JSON/PROTO FORWARD CONFIG
    "forwarder" :
    {
    "json" : ["127.0.0.1:19446"],
    "proto" : ["127.0.0.1:19447"]
    },

    // EFFECT PATH
    "effects" :
    {
    "paths" :
    [
    "/storage/hyperion/effects",
    "/usr/share/hyperion/effects"
    ]
    },

    // NO FRAME GRABBER CONFIG
    // NO KODI CHECK CONFIG
    // NO BOBLIGHT SERVER CONFIG

    // LED CONFIGURATION
    "leds" :
    [
    {
    "index" : 0,
    "hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 1,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.1429 }
    },
    {
    "index" : 2,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.1429, "maximum" : 0.2857 }
    },
    {
    "index" : 3,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.2857, "maximum" : 0.4286 }
    },
    {
    "index" : 4,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.4286, "maximum" : 0.5714 }
    },
    {
    "index" : 5,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.5714, "maximum" : 0.7143 }
    },
    {
    "index" : 6,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.7143, "maximum" : 0.8571 }
    },
    {
    "index" : 7,
    "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.8571, "maximum" : 1.0000 }
    },
    {
    "index" : 8,
    "hscan" : { "minimum" : 0.9000, "maximum" : 1.0000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 9,
    "hscan" : { "minimum" : 0.8000, "maximum" : 0.9000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 10,
    "hscan" : { "minimum" : 0.7000, "maximum" : 0.8000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 11,
    "hscan" : { "minimum" : 0.6000, "maximum" : 0.7000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 12,
    "hscan" : { "minimum" : 0.5000, "maximum" : 0.6000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 13,
    "hscan" : { "minimum" : 0.4000, "maximum" : 0.5000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 14,
    "hscan" : { "minimum" : 0.3000, "maximum" : 0.4000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 15,
    "hscan" : { "minimum" : 0.2000, "maximum" : 0.3000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 16,
    "hscan" : { "minimum" : 0.1000, "maximum" : 0.2000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 17,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
    "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
    },
    {
    "index" : 18,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.8571, "maximum" : 1.0000 }
    },
    {
    "index" : 19,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.7143, "maximum" : 0.8571 }
    },
    {
    "index" : 20,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.5714, "maximum" : 0.7143 }
    },
    {
    "index" : 21,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.4286, "maximum" : 0.5714 }
    },
    {
    "index" : 22,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.2857, "maximum" : 0.4286 }
    },
    {
    "index" : 23,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.1429, "maximum" : 0.2857 }
    },
    {
    "index" : 24,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.1429 }
    },
    {
    "index" : 25,
    "hscan" : { "minimum" : 0.0000, "maximum" : 0.1000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 26,
    "hscan" : { "minimum" : 0.1000, "maximum" : 0.2000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 27,
    "hscan" : { "minimum" : 0.2000, "maximum" : 0.3000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 28,
    "hscan" : { "minimum" : 0.3000, "maximum" : 0.4000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 29,
    "hscan" : { "minimum" : 0.4000, "maximum" : 0.5000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 30,
    "hscan" : { "minimum" : 0.5000, "maximum" : 0.6000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 31,
    "hscan" : { "minimum" : 0.6000, "maximum" : 0.7000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 32,
    "hscan" : { "minimum" : 0.7000, "maximum" : 0.8000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    },
    {
    "index" : 33,
    "hscan" : { "minimum" : 0.8000, "maximum" : 0.9000 },
    "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
    }
    ],

    "endOfJson" : "endOfJson"
    }

    Le matériel est pourtant bien détecté côté RPI.

    OpenELEC:~ # cat /dev/
    autofs nbd9 tty17 tty56
    block/ net/ tty18 tty57
    btrfs-control network_latency tty19 tty58
    bus/ network_throughput tty2 tty59
    char/ null tty20 tty6
    console ppp tty21 tty60
    cpu_dma_latency ptmx tty22 tty61
    disk/ pts/ tty23 tty62
    fb0 ram0 tty24 tty63
    fd/ ram1 tty25 tty7
    full ram10 tty26 tty8
    fuse ram11 tty27 tty9
    gpiomem ram12 tty28 ttyACM0
    hidraw0 ram13 tty29 ttyAMA0
    hidraw1 ram14 tty3 uhid
    hwrng ram15 tty30 uinput
    initctl ram2 tty31 urandom
    input/ ram3 tty32 usb/
    kmsg ram4 tty33 vc-cma
    log ram5 tty34 vc-mem
    loop-control ram6 tty35 vchiq
    loop0 ram7 tty36 vcio
    mem ram8 tty37 vcs
    memory_bandwidth ram9 tty38 vcs1
    mmcblk0 random tty39 vcs2
    mmcblk0p1 serial/ tty4 vcs3
    mmcblk0p2 shm/ tty40 vcs4
    mqueue/ snd/ tty41 vcs5
    nbd0 spidev0.0 tty42 vcs6
    nbd1 spidev0.1 tty43 vcsa
    nbd10 stderr tty44 vcsa1
    nbd11 stdin tty45 vcsa2
    nbd12 stdout tty46 vcsa3
    nbd13 tty tty47 vcsa4
    nbd14 tty0 tty48 vcsa5
    nbd15 tty1 tty49 vcsa6
    nbd2 tty10 tty5 vcsm
    nbd3 tty11 tty50 watchdog
    nbd4 tty12 tty51 watchdog0
    nbd5 tty13 tty52 zero
    nbd6 tty14 tty53
    nbd7 tty15 tty54
    nbd8 tty16 tty55


    Even before thinking about the grabber and still less about the RPI, I'm already stuck.

    I think I post the rest of the steps in this post as I progressed so as to make a tutorial. Thank you in advance for your help !
     
    Last edited: 4 January 2017
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,802
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    Did you contact LightBerry?
     
  3. Tomy137

    Tomy137 New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit
    I don't know how to do that. They don't have any forum. Do you have a contact ?

    Thx
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,802
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266