New Ambient Lighting system - no knowledge (1 Viewer)

Rick164

Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Will be on IRC as well, seems enabled in Mediaportal according to config but no mention of AtmoLight of Hyperion in logs which definitely is weird.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Hrm...still struggling...tried a bit around with the help of @Lightning303 and @Rick164 but still no luck.

    Current investigations lets me think the China-PSU is defective. Would this be likely for this kind of error? Gotta search for a better one...
     

    Lightning303

    MP Donator
  • Premium Supporter
  • September 12, 2009
    798
    577
    Germany Germany
    Country flag
    In most cases the problem is not the hardware. Why do you think the psu is faulty? Have you meassured voltages?
    What is the current problem? Best if you attach pictures of what the leds are showing and what is expected.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Simple reason: the psu has a blue light indicating that its powered. This light goes off sometimes when chaniging colours. Will try to do a proper shooting later this day.
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    So, more infos, still the same situation as yesterday, even with the new hyperion version installed, thanks to @Rick164.

    I now guess its the PSU too, but not only, as I have a stable blue light on the PSU currently. Gotta exchange it as its too risky for me. Any recommondations? I don't want a PSU making a noise when its not under full load. Can I use an old Notebook-PSU, see next pic, but I guess its too powerful?!?
    IMG_1818.JPG

    And a few pictures what is happening currently. Only tried with hyperion webremote. Hopefully the pictures will be recognizable.

    - Colour changing doesn't really work. If I change something in remote control to e.g. blue, LEDs on strip changes colour but all different, some totally off.
    - Effects are working quite a bit.
    Knight rider makes the first 14 LEDs to red and blinking around. Guess this is ok, but what about the rest of the LEDs. They stay in the old colours.
    IMG_1819.JPG

    Strobe white is giving full white on all LEDs.
    IMG_1820.JPG

    Strobe blue is giving red on first 24 LEDs, rest of the LEDs stay unchanged.
    IMG_1821.JPG

    I am absolutely puzzled and don't know how to move on. Happy for every suggestion and hanging around on IRC as much as I can...

    EDIT: Shall I drop Openelec and go for Raspian? And has anyone looked at my pictures with the connections if its all correct this way?
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    I now guess its the PSU too, but not only, as I have a stable blue light on the PSU currently. Gotta exchange it as its too risky for me. Any recommondations? I don't want a PSU making a noise when its not under full load. Can I use an old Notebook-PSU, see next pic, but I guess its too powerful?!?
    For PSU would expect different results like it intermittent colors instead of being able to do full white (which draws the max), the notebook PSU is 19V so that will blow up the leds and would need something with 5V like a phone charge for instance.
    What type / brand of PSU are you using at the moment?

    EDIT: Shall I drop Openelec and go for Raspian? And has anyone looked at my pictures with the connections if its all correct this way?
    OpenElec should be fine, for testing you can go for Raspian and should be these steps in an SSH session:

    Code:
    rpi-update
    reboot
    apt-get update
    apt-get upgrade
    apt-get install libqtcore4 libqtgui4 libqt4-network libusb-1.0-0 libprotobuf7 ca-certificates
    wget -N https://raw.github.com/tvdzwan/hyperion/master/bin/install_hyperion.sh
    sh ./install_hyperion.sh
    You can update Hyperion for APA102 later but that fix is only for the last led bug so would skip it for now as would first try to get the other issue sorted :)

    I am absolutely puzzled and don't know how to move on. Happy for every suggestion and hanging around on IRC as much as I can...
    Could you attach the Hyperion config just in case something is off in it?
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Hyperion config:
    Code:
    // Automatically generated configuration file for 'Hyperion daemon'
    // Generated by: HyperCon (The Hyperion deamon configuration file builder
    
    {
        /// Device configuration contains the following fields:
        /// * 'name'       : The user friendly name of the device (only used for display purposes)
        /// * 'type'       : The type of the device or leds (known types for now are 'ws2801', 'ldp8806',
        ///                  'lpd6803', 'sedu', 'adalight', 'lightpack', 'test' and 'none')
        /// * 'output'     : The output specification depends on selected device. This can for example be the
        ///                  device specifier, device serial number, or the output file name
        /// * 'rate'       : The baudrate of the output to the device
        /// * 'colorOrder' : The order of the color bytes ('rgb', 'rbg', 'bgr', etc.).
        "device" :
        {
            "name"       : "MyPi",
            "type"       : "apa102",
            "output"     : "/dev/spidev0.0",
            "rate"       : 250000,
            "colorOrder" : "bgr"
        },
    
        /// Color manipulation configuration used to tune the output colors to specific surroundings.
        /// The configuration contains a list of color-transforms. Each transform contains the
        /// following fields:
        ///  * 'id'   : The unique identifier of the color transformation (eg 'device_1')    ///  * 'leds' : The indices (or index ranges) of the leds to which this color transform applies
        ///             (eg '0-5, 9, 11, 12-17'). The indices are zero based.    ///  * 'hsv' : The manipulation in the Hue-Saturation-Value color domain with the following
        ///            tuning parameters:
        ///            - 'saturationGain'  The gain adjustement of the saturation
        ///            - 'valueGain'       The gain adjustement of the value
        ///  * 'red'/'green'/'blue' : The manipulation in the Red-Green-Blue color domain with the
        ///                           following tuning parameters for each channel:
        ///            - 'threshold'       The minimum required input value for the channel to be on
        ///                                (else zero)
        ///            - 'gamma'           The gamma-curve correction factor
        ///            - 'blacklevel'      The lowest possible value (when the channel is black)
        ///            - 'whitelevel'      The highest possible value (when the channel is white)
        ///
        /// Next to the list with color transforms there is also a smoothing option.
        ///  * 'smoothing' : Smoothing of the colors in the time-domain with the following tuning
        ///                  parameters:
        ///            - 'type'            The type of smoothing algorithm ('linear' or 'none')
        ///            - 'time_ms'         The time constant for smoothing algorithm in milliseconds
        ///            - 'updateFrequency' The update frequency of the leds in Hz
        "color" :
        {
            "transform" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "hsv" :
                    {
                        "saturationGain" : 1.2000,
                        "valueGain"      : 1.2000
                    },
                    "red" :
                    {
                        "threshold"  : 0.1000,
                        "gamma"      : 2.0000,
                        "blacklevel" : 0.0000,
                        "whitelevel" : 1.0000
                    },
                    "green" :
                    {
                        "threshold"  : 0.1000,
                        "gamma"      : 2.0000,
                        "blacklevel" : 0.0000,
                        "whitelevel" : 1.0000
                    },
                    "blue" :
                    {
                        "threshold"  : 0.1000,
                        "gamma"      : 2.0000,
                        "blacklevel" : 0.0000,
                        "whitelevel" : 1.0000
                    }
                }
            ],
            "smoothing" :
            {
                "type"            : "linear",
                "time_ms"         : 100,
                "updateFrequency" : 25.0000
            }
        },
    
        ///  The configuration for each individual led. This contains the specification of the area
        ///  averaged of an input image for each led to determine its color. Each item in the list
        ///  contains the following fields:
        ///  * index: The index of the led. This determines its location in the string of leds; zero
        ///           being the first led.
        ///  * hscan: The fractional part of the image along the horizontal used for the averaging
        ///           (minimum and maximum inclusive)
        ///  * vscan: The fractional part of the image along the vertical used for the averaging
        ///           (minimum and maximum inclusive)
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0313 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.0313, "maximum" : 0.0625 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.0625, "maximum" : 0.0938 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.0938, "maximum" : 0.1250 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.1250, "maximum" : 0.1563 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.1563, "maximum" : 0.1875 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.1875, "maximum" : 0.2188 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.2188, "maximum" : 0.2500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.2500, "maximum" : 0.2813 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.2813, "maximum" : 0.3125 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.3125, "maximum" : 0.3438 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.3438, "maximum" : 0.3750 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.3750, "maximum" : 0.4063 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.4063, "maximum" : 0.4375 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.4375, "maximum" : 0.4688 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.4688, "maximum" : 0.5000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.5000, "maximum" : 0.5313 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.5313, "maximum" : 0.5625 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.5625, "maximum" : 0.5938 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.5938, "maximum" : 0.6250 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.6250, "maximum" : 0.6563 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.6563, "maximum" : 0.6875 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.6875, "maximum" : 0.7188 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.7188, "maximum" : 0.7500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.7500, "maximum" : 0.7813 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.7813, "maximum" : 0.8125 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.8125, "maximum" : 0.8438 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.8438, "maximum" : 0.8750 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.8750, "maximum" : 0.9063 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.9063, "maximum" : 0.9375 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.9375, "maximum" : 0.9688 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.9688, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0300 }
            }
        ],
    
        /// The black border configuration, contains the following items:
        ///  * enable    : true if the detector should be activated
        ///  * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.01
        },
    
        /// The configuration of the effect engine, contains the following items:
        ///  * paths        : An array with absolute location(s) of directories with effects
        ///  * bootsequence : The effect selected as 'boot sequence'
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects"
            ]
        },
    
    //     "bootsequence" :
    //     {
    //         "effect" : "Rainbow swirl fast",
    //         "duration_ms" : 3000
    //     },
    
        ///  The configuration for the frame-grabber, contains the following items:
        ///   * width        : The width of the grabbed frames [pixels]
        ///   * height       : The height of the grabbed frames [pixels]
        ///   * frequency_Hz : The frequency of the frame grab [Hz]
        "framegrabber" :
        {
            "width" : 64,
            "height" : 64,
            "frequency_Hz" : 10.0
        },
    
        /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields:
        ///  * xbmcAddress       : The IP address of the XBMC-host
        ///  * xbmcTcpPort       : The TCP-port of the XBMC-server
        ///  * grabVideo         : Flag indicating that the frame-grabber is on(true) during video playback
        ///  * grabPictures      : Flag indicating that the frame-grabber is on(true) during picture show
        ///  * grabAudio         : Flag indicating that the frame-grabber is on(true) during audio playback
        ///  * grabMenu          : Flag indicating that the frame-grabber is on(true) in the XBMC menu
        ///  * grabScreensaver   : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
        ///  * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
        "xbmcVideoChecker" :
        {
            "xbmcAddress" : "127.0.0.1",
            "xbmcTcpPort" : 9090,
            "grabVideo" : false,
            "grabPictures" : false,
            "grabAudio" : false,
            "grabMenu" : false,
            "grabScreensaver" : false,
            "enable3DDetection" : false
        },
    
        /// The configuration of the Json server which enables the json remote interface
        ///  * port : Port at which the json server is started
        "jsonServer" :
        {
            "port" : 19444
        },
    
        /// The configuration of the Proto server which enables the protobuffer remote interface
        ///  * port : Port at which the protobuffer server is started
        "protoServer" :
        {
            "port" : 19445
        },
    
        /// The configuration of the boblight server which enables the boblight remote interface
        ///  * port : Port at which the boblight server is started
    //     "boblightServer" :
    //     {
    //         "port" : 19333
    //     },
    
        "endOfJson" : "endOfJson"
    }
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    And my PSU is a no-name 5V-10A I ordered from AliExpress...
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom