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

HyperCon No Hyperion input

Discussion in 'Software Support' started by DutchFireFox, 8 October 2017.

  1. DutchFireFox

    DutchFireFox New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Hello,

    My setup: RPi1B or RP3 (OpenELEC 7.0.1) | arduino UNO | WS2812B ledstrip.
    UTV007 grabber (This works, tested with screenshots)

    When I boot the setup the leds start blinking the RGB flash from the setup code in the arduino.
    But there will be no rainbow effect from the Hyperion boot animation or input from the grabber.

    I have tried multiple RPi's and ardunio's with the same result.

    Do you guys have an idea what I did wrong?

    Hyperion log:
    Code:
    Hyperion Ambilight Deamon (528)
        Version   : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
        Build Time: Jun  3 2017 02:06:37
    INFO: Selected configuration file: /storage/.config/hyperion.config.json
    HYPERION INFO: ColorTransform 'default' => [0; 107]
    HYPERION INFO: ColorCorrection 'default' => [0; 107]
    HYPERION INFO: ColorAdjustment 'default' => [0; 107]
    LEDDEVICE INFO: configuration:
    {
        "colorOrder" : "rgb",
        "delayAfterConnect" : 0,
        "name" : "MyHyperionConfig",
        "output" : "/dev/ttyAMA0",
        "rate" : 460800,
        "type" : "adalight"
    }
    
    Opening UART: /dev/ttyAMA0
    INFO: Creating linear smoothing
    HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
    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 (0)
    BLACKBORDER INFO: mode:default
    started
    INFO: Json server created and started on port 19444
    INFO: Proto server created and started on port 19445
    V4L2GRABBER INFO: width=720 height=480
    V4L2GRABBER INFO: pixel format=YUYV
    BLACKBORDER INFO: threshold set to 0 (0)
    BLACKBORDER INFO: mode:default
    V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    V4L2GRABBER INFO: started
    INFO: V4L2 grabber created and started
    BORDER SWITCH REQUIRED!!
    CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
    V4L2GRABBER INFO: stopped
    EFFECTENGINE INFO: effect finished
    V4L2GRABBER INFO: started
    Hyperion config:
    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.1 (11.06.2016)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "MyHyperionConfig",
            "type"       : "adalight",
            "output"     : "/dev/ttyAMA0",
            "rate"     : 460800,
            "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"    : 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
            }
        },
    
        // V4L2 GRABBER CONFIG
        "grabber-v4l2" :
        {
            "device" : "/dev/video0",
            "input" : 0,
            "standard" : "NTSC",
            "width" : -1,
            "height" : -1,
            "frameDecimation" : 2,
            "sizeDecimation" : 8,
            "priority" : 900,
            "mode" : "2D",
            "cropLeft" : 0,
            "cropRight" : 0,
            "cropTop" : 0,
            "cropBottom" : 0,
            "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 fast",
            "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
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.5278, "maximum" : 0.5556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.5556, "maximum" : 0.5833 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.5833, "maximum" : 0.6111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.6111, "maximum" : 0.6389 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.6389, "maximum" : 0.6667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.6667, "maximum" : 0.6944 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.6944, "maximum" : 0.7222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.7222, "maximum" : 0.7500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.7500, "maximum" : 0.7778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.7778, "maximum" : 0.8056 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.8056, "maximum" : 0.8333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.8333, "maximum" : 0.8611 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.8611, "maximum" : 0.8889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.8889, "maximum" : 0.9167 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.9167, "maximum" : 0.9444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.9444, "maximum" : 0.9722 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.9722, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9474, "maximum" : 1.0000 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8947, "maximum" : 0.9474 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8421, "maximum" : 0.8947 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7895, "maximum" : 0.8421 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7368, "maximum" : 0.7895 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6842, "maximum" : 0.7368 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6316, "maximum" : 0.6842 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5789, "maximum" : 0.6316 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5263, "maximum" : 0.5789 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4737, "maximum" : 0.5263 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4211, "maximum" : 0.4737 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3684, "maximum" : 0.4211 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3158, "maximum" : 0.3684 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2632, "maximum" : 0.3158 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2105, "maximum" : 0.2632 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1579, "maximum" : 0.2105 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1053, "maximum" : 0.1579 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0526, "maximum" : 0.1053 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0526 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.9722, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.9444, "maximum" : 0.9722 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.9167, "maximum" : 0.9444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.8889, "maximum" : 0.9167 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.8611, "maximum" : 0.8889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.8333, "maximum" : 0.8611 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.8056, "maximum" : 0.8333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.7778, "maximum" : 0.8056 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.7500, "maximum" : 0.7778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.7222, "maximum" : 0.7500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.6944, "maximum" : 0.7222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.6667, "maximum" : 0.6944 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.6389, "maximum" : 0.6667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.6111, "maximum" : 0.6389 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.5833, "maximum" : 0.6111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.5556, "maximum" : 0.5833 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.5278, "maximum" : 0.5556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5278 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.4722, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 55,
                "hscan" : { "minimum" : 0.4444, "maximum" : 0.4722 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 56,
                "hscan" : { "minimum" : 0.4167, "maximum" : 0.4444 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 57,
                "hscan" : { "minimum" : 0.3889, "maximum" : 0.4167 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 58,
                "hscan" : { "minimum" : 0.3611, "maximum" : 0.3889 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 59,
                "hscan" : { "minimum" : 0.3333, "maximum" : 0.3611 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 60,
                "hscan" : { "minimum" : 0.3056, "maximum" : 0.3333 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 61,
                "hscan" : { "minimum" : 0.2778, "maximum" : 0.3056 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 62,
                "hscan" : { "minimum" : 0.2500, "maximum" : 0.2778 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 63,
                "hscan" : { "minimum" : 0.2222, "maximum" : 0.2500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 64,
                "hscan" : { "minimum" : 0.1944, "maximum" : 0.2222 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 65,
                "hscan" : { "minimum" : 0.1667, "maximum" : 0.1944 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 66,
                "hscan" : { "minimum" : 0.1389, "maximum" : 0.1667 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 67,
                "hscan" : { "minimum" : 0.1111, "maximum" : 0.1389 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 68,
                "hscan" : { "minimum" : 0.0833, "maximum" : 0.1111 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 69,
                "hscan" : { "minimum" : 0.0556, "maximum" : 0.0833 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 70,
                "hscan" : { "minimum" : 0.0278, "maximum" : 0.0556 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 71,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0278 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 72,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0526 }
            },
            {
                "index" : 73,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0526, "maximum" : 0.1053 }
            },
            {
                "index" : 74,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1053, "maximum" : 0.1579 }
            },
            {
                "index" : 75,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1579, "maximum" : 0.2105 }
            },
            {
                "index" : 76,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2105, "maximum" : 0.2632 }
            },
            {
                "index" : 77,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2632, "maximum" : 0.3158 }
            },
            {
                "index" : 78,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3158, "maximum" : 0.3684 }
            },
            {
                "index" : 79,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3684, "maximum" : 0.4211 }
            },
            {
                "index" : 80,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4211, "maximum" : 0.4737 }
            },
            {
                "index" : 81,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4737, "maximum" : 0.5263 }
            },
            {
                "index" : 82,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5263, "maximum" : 0.5789 }
            },
            {
                "index" : 83,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5789, "maximum" : 0.6316 }
            },
            {
                "index" : 84,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6316, "maximum" : 0.6842 }
            },
            {
                "index" : 85,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6842, "maximum" : 0.7368 }
            },
            {
                "index" : 86,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7368, "maximum" : 0.7895 }
            },
            {
                "index" : 87,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7895, "maximum" : 0.8421 }
            },
            {
                "index" : 88,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8421, "maximum" : 0.8947 }
            },
            {
                "index" : 89,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8947, "maximum" : 0.9474 }
            },
            {
                "index" : 90,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9474, "maximum" : 1.0000 }
            },
            {
                "index" : 91,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0278 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 92,
                "hscan" : { "minimum" : 0.0278, "maximum" : 0.0556 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 93,
                "hscan" : { "minimum" : 0.0556, "maximum" : 0.0833 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 94,
                "hscan" : { "minimum" : 0.0833, "maximum" : 0.1111 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 95,
                "hscan" : { "minimum" : 0.1111, "maximum" : 0.1389 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 96,
                "hscan" : { "minimum" : 0.1389, "maximum" : 0.1667 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 97,
                "hscan" : { "minimum" : 0.1667, "maximum" : 0.1944 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 98,
                "hscan" : { "minimum" : 0.1944, "maximum" : 0.2222 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 99,
                "hscan" : { "minimum" : 0.2222, "maximum" : 0.2500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 100,
                "hscan" : { "minimum" : 0.2500, "maximum" : 0.2778 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 101,
                "hscan" : { "minimum" : 0.2778, "maximum" : 0.3056 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 102,
                "hscan" : { "minimum" : 0.3056, "maximum" : 0.3333 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 103,
                "hscan" : { "minimum" : 0.3333, "maximum" : 0.3611 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 104,
                "hscan" : { "minimum" : 0.3611, "maximum" : 0.3889 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 105,
                "hscan" : { "minimum" : 0.3889, "maximum" : 0.4167 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 106,
                "hscan" : { "minimum" : 0.4167, "maximum" : 0.4444 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 107,
                "hscan" : { "minimum" : 0.4444, "maximum" : 0.4722 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Is the Baud rate correct ?

    Which sketch are you using on the arduino ?
     
  3. DutchFireFox

    DutchFireFox New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    I think so.

    This is the Arduino sketch:
    Code:
    #include "FastLED.h"
    
    // How many leds in your strip?
    #define NUM_LEDS 108
    
    // For led chips like Neopixels, which have a data line, ground, and power, you just
    // need to define DATA_PIN.  For led chipsets that are SPI based (four wires - data, clock,
    // ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
    #define DATA_PIN 6
    #define CLOCK_PIN 13
    
    #define COLOR_ORDER RGB
    
    // Adalight sends a "Magic Word" (defined in /etc/boblight.conf) before sending the pixel data
    uint8_t prefix[] = {'A', 'd', 'a'}, hi, lo, chk, i;
    
    // Baudrate, higher rate allows faster refresh rate and more LEDs (defined in /etc/boblight.conf)
    #define serialRate 460800
    
    // Define the array of leds
    CRGB leds[NUM_LEDS];
    
    void setup() {
      FastLED.addLeds<WS2812B, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS);
         
      // initial RGB flash, comment out if your setup works.
      LEDS.showColor(CRGB(255, 255, 255));
      delay(1000);
      LEDS.showColor(CRGB(100, 0, 0));
      delay(1000);
      LEDS.showColor(CRGB(0, 100, 0));
      delay(1000);
      LEDS.showColor(CRGB(0, 0, 100));
      delay(1000);
      LEDS.showColor(CRGB(0, 0, 0));
           
      // start listening on serial port
      Serial.begin(serialRate);
      Serial.print("Ada\n"); // Send "Magic Word" string to host
    }
    
    void loop() {
      // wait for first byte of Magic Word
      for(i = 0; i < sizeof prefix; ++i) {
        waitLoop: while (!Serial.available()) ;;
        // Check next byte in Magic Word
        if(prefix[i] == Serial.read()) continue;
        // otherwise, start over
        i = 0;
        goto waitLoop;
      }
     
      // Hi, Lo, Checksum
     
      while (!Serial.available()) ;;
      hi=Serial.read();
      while (!Serial.available()) ;;
      lo=Serial.read();
      while (!Serial.available()) ;;
      chk=Serial.read();
     
      // if checksum does not match go back to wait
      if (chk != (hi ^ lo ^ 0x55))
      {
        i=0;
        goto waitLoop;
      }
     
      memset(leds, 0, NUM_LEDS * sizeof(struct CRGB));
      // read the transmission data and set LED values
      for (uint8_t i = 0; i < NUM_LEDS; i++) {
        byte r, g, b;   
        while(!Serial.available());
        r = Serial.read();
        while(!Serial.available());
        g = Serial.read();
        while(!Serial.available());
        b = Serial.read();
        leds[i].r = r;
        leds[i].g = g;
        leds[i].b = b;
      }
      // shows new values
    FastLED.show();
    }
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  5. DutchFireFox

    DutchFireFox New Member

    Messages:
    3
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Changed the baud in the Hypercon config and tried that sketch.
    But still the same result.

    Thanks for you help tho. I have so many hours in this project, this is my last hope ;).