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

RPi + Other Software Rpi1 B + Raspbian + WS2812b = not working

Discussion in 'Software Support' started by Alessandro1985, 27 March 2017.

  1. Alessandro1985

    Alessandro1985 New Member

    Messages:
    4
    Hardware:
    RPi1/Zero, RPi3
    Hi everyone,

    this thing is driving me crazy...

    Hyperion is not controlling leds. No turning on, no turning off... nothing on boot, nothing on executing standard effects...
    HyperCon is connected, but can't change color (even turn on or off leds)
    Android App not working either. (it syncs with daemon and lists all effects available, but nothing happens)

    I'm sure its a simple problem and I'm focusing on the wrong spot....

    My specs:

    Board = Rpi1 B (2011.12)
    Leds = WS2812b - 5m - 60leds/m [*edit]
    ALL 300 LEDS ARE CONNECTED RIGHT NOW. IN CONFIGURATION FILE ONLY 206 ARE CONSIDERED. should not be a problem... should it?

    Wiring = as per the following guide:
    http://dordnung.de/raspberrypi-ledstrip/ws2812
    (testd with python script included in this tutorial and every thing is working fine - all 300 leds work and can be controlled)

    SO = fresh install 2017-03-02-raspbian-jessie-lite
    Hyperion = installed with command line script (after apt update && apt upgrade)

    HyperCon is able to connect via SSH and take screenshot of grabber, starting / stopping daemon...
    On boot hyperiond starts correctly, and no error is returned.

    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"       : "ws2812b",
            "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" : "PAL",
            "width" : 640,
            "height" : 480,
            "frameDecimation" : 2,
            "sizeDecimation" : 8,
            "priority" : 900,
            "mode" : "2D",
            "cropLeft" : 22,
            "cropRight" : 22,
            "cropTop" : 22,
            "cropBottom" : 22,
            "redSignalThreshold" : 0.1,
            "greenSignalThreshold" : 0.1,
            "blueSignalThreshold" : 0.1
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.0,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "classic"
        },
    
        // 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.5000, "maximum" : 0.5156 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.4844, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.4688, "maximum" : 0.4844 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.4531, "maximum" : 0.4688 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.4375, "maximum" : 0.4531 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.4219, "maximum" : 0.4375 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.4063, "maximum" : 0.4219 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
    
    .....ALL LEDS IN BETWEN.....
    
            {
                "index" : 200,
                "hscan" : { "minimum" : 0.5938, "maximum" : 0.6094 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 201,
                "hscan" : { "minimum" : 0.5781, "maximum" : 0.5938 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 202,
                "hscan" : { "minimum" : 0.5625, "maximum" : 0.5781 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 203,
                "hscan" : { "minimum" : 0.5469, "maximum" : 0.5625 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 204,
                "hscan" : { "minimum" : 0.5313, "maximum" : 0.5469 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 205,
                "hscan" : { "minimum" : 0.5156, "maximum" : 0.5313 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    

    Thanks for support!!!

    Alex
     
    Last edited: 27 March 2017
  2. Biggles

    Biggles Member

    Messages:
    53
    Hardware:
    RPi1/Zero
    5 x 30 = 150
     
  3. Alessandro1985

    Alessandro1985 New Member

    Messages:
    4
    Hardware:
    RPi1/Zero, RPi3
    wooops.. I meant 60 led/m...
    I wrote 300 in the first istance, then I deleted one zero... and didn't change it to 60.
    EDITED!;)
     
  4. Alessandro1985

    Alessandro1985 New Member

    Messages:
    4
    Hardware:
    RPi1/Zero, RPi3
    I had time to dump the log:

    Code:
    ssh out:     sudo journalctl -u hyperion.service 2>/dev/null
    ssh in:     -- Logs begin at Mon 2017-03-27 19:16:40 UTC, end at Mon 2017-03-27 19:20:42 UTC. --
    ssh in:     Mar 27 19:16:49 raspberrypi systemd[1]: Starting Hyperion Systemd service...
    ssh in:     Mar 27 19:16:49 raspberrypi systemd[1]: Started Hyperion Systemd service.
    ssh in:     Mar 27 19:16:51 raspberrypi hyperiond[341]: Hyperion Ambilight Deamon (341)
    ssh in:     Mar 27 19:16:51 raspberrypi hyperiond[341]: Version   : V1.03.2 (brindosch-99d9396/d3713a8-1469452981
    ssh in:     Mar 27 19:16:51 raspberrypi hyperiond[341]: Build Time: Jul 25 2016 06:54:40
    ssh in:     Mar 27 19:16:51 raspberrypi hyperiond[341]: INFO: Selected configuration file: /etc/hyperion/hyperion.config.json
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: HYPERION INFO: ColorTransform 'default' => [0; 203]
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: HYPERION INFO: ColorCorrection 'default' => [0; 203]
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: HYPERION INFO: ColorAdjustment 'default' => [0; 203]
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: LEDDEVICE INFO: configuration:
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: {
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: "colorOrder" : "rgb",
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: "name" : "MyHyperionConfig",
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: "type" : "ws2812b"
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: }
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: Page 0 not present (pfn 0xa100000000016979)
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: Page map: 1 pages
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: WS2812b init finished
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: INFO: Creating linear smoothing
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: HYPERION (CS) INFO: Created linear-smoothing(interval_ms=50;settlingTime_ms=200;updateDelay=0
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: EFFECTENGINE INFO: 27 effects loaded from directory /usr/share/hyperion/effects
    ssh in:     Mar 27 19:16:52 raspberrypi hyperiond[341]: EFFECTENGINE INFO: Initializing Python interpreter
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: INFO: Hyperion started and initialised
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: INFO: Boot sequence 'Knight rider' EFFECTENGINE INFO: run effect Knight rider on channel 0
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: BLACKBORDER INFO: mode:default
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: started
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: INFO: Json server created and started on port 19444
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: INFO: Proto server created and started on port 19445
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER INFO: width=720 height=576
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER INFO: pixel format=UYVY
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: BLACKBORDER INFO: threshold set to 0 (0)
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: BLACKBORDER INFO: mode:default
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER INFO: signal threshold set to: {0,0,0}
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER INFO: started
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: INFO: V4L2 grabber created and started
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER ERROR: Frame too small: 825372 != 829440
    ssh in:     Mar 27 19:16:53 raspberrypi hyperiond[341]: V4L2GRABBER ERROR: Frame too small: 825486 != 829440
    ssh in:     Mar 27 19:16:54 raspberrypi hyperiond[341]: V4L2GRABBER INFO: stopped
    ssh in:     Mar 27 19:16:56 raspberrypi hyperiond[341]: EFFECTENGINE INFO: effect finished
    ssh in:     Mar 27 19:16:57 raspberrypi hyperiond[341]: V4L2GRABBER INFO: started
    I'm not sure but probably is the Page 0 not present (pfn 0xa100000000016979) part???
     
  5. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,103
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    did you solved your problem?
     
  6. Alessandro1985

    Alessandro1985 New Member

    Messages:
    4
    Hardware:
    RPi1/Zero, RPi3
    I solved it but I'm putting all info together to show off the solution ;)
     
  7. Micah Smith

    Micah Smith New Member

    Messages:
    14
    Hardware:
    RPi1/Zero, +Arduino
    How did you solve this after?
     
  8. Zyarra

    Zyarra New Member

    Messages:
    1
    Hardware:
    RPi3
    I'm having exactly the same issue.
    LEDs work with python script but hyperion doesn't do anything.
    No error in the log when trying to change a color for an example, but it just doesn't happen:
    ssh out: hyperion-remote -c ff4964
    ssh in: hyperion-remote:
    ssh in: version : V1.03.4 (brindosch-c750c41/dc6a602-1522918225
    ssh in: build time: Apr 5 2018 01:57:05
    ssh in: Connected to localhost:19444
    ssh in: Set color to 255 73 100

    Anyone with a solution ?
     
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,103
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    make a own thread, give more information, upload your configs and a log