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

HyperCon Would a USB to DMX converter and DMX lights be supported?

Discussion in 'Software Support' started by Bart Smits, 23 September 2016.

Tags:
  1. Bart Smits

    Bart Smits New Member

    Messages:
    4
    Hardware:
    RPi2
    Like the title says... I would like to use a USB to DMX converter together with my RPi2B+ and a video grabber to make a large Ambilight system with DMX controlled led spots. Is this possible in the current version and if so how do I configure it in the hypercon?

    Many thanks in advance
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Not yet but it wouldn't be too hard.

    I added e1.31 support recently to Hyperion.ng - this is basically just DMX wrapped in udp packets.

    Does your DMX controller look like a serial port ? Got a link to some sample code ?
     
  3. Bart Smits

    Bart Smits New Member

    Messages:
    4
    Hardware:
    RPi2
    Hello penfold42,
    thank you for your quick answer.

    My DMX controller looks like this:[​IMG]

    I'm fairly new to Hyperion so dont expect too much from me...
    You want the configuration file as sample code?

    Thanks again for your time
     
  4. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Got a link to the product and what existing software it supports ?
     
  5. Bart Smits

    Bart Smits New Member

    Messages:
    4
    Hardware:
    RPi2
  6. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  7. Bart Smits

    Bart Smits New Member

    Messages:
    4
    Hardware:
    RPi2
    Thank you for your help,
    i'll try that.
     
  8. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I'll try to add native dmx512 over serial like interfaces soon
     
  9. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  10. Chris/si

    Chris/si Member

    Messages:
    30
    Hi,

    I just found this DMX related thread and wanted to ask if it is possible to support DMX Lights controlled via an Artnet-interface over ethernet?
    I am currently looking for a way to use the Enttec ODE Open DMX Ethernet interface to feed my lights with data from the Raspi but I didn't found a solution yet.
     
  11. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Not at the moment - i can help add support but I have no way to test it.

    I don't think it will be hard - it's just another variation on the existing e131 support

    Have you got some basic coding skills ?
     
  12. Chris/si

    Chris/si Member

    Messages:
    30
    My coding skills are really just on a very basic level, but I would try to do something if you can give me an advice how and where to start :)
     
  13. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  14. Chris/si

    Chris/si Member

    Messages:
    30
    Last edited: 13 May 2017
  15. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
  16. Chris/si

    Chris/si Member

    Messages:
    30
    I think this project is what we are looking for: https://github.com/hobbyquaker/artnet

    If I understand this correctly you can use the set method to select the channel and values and they will be send to given ip-address.
     
  17. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    I finished this today - can you please pull my hyperion.ng artnet branch and test ?

    I've tested it with wire shark and http://www.lightjams.com/artnetominator/ but I'd like some feedback on a real physical device if possible.
     
  18. Chris/si

    Chris/si Member

    Messages:
    30
    A huge thanks for doing it this fast! :bigsmile:

    I expect my new interface to arrive at tuesday so I will test this immediately if I have the new hardware.
     
  19. Chris/si

    Chris/si Member

    Messages:
    30
    To prepare me for tomorrow when the hardware arrives can you tell me what exactly I have to change in my hyperion-config (or a new one?) and how to address the right dmx channels?

    This is my current 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.1 (11.06.2016)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "MyHyperionConfig",
            "type"       : "ws2801",
            "output"     : "/dev/spidev0.0",
            "rate"     : 1000000,
            "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.1900,
                        "gamma"         : 2.5000
                    },
                    "green" :
                    {
                        "threshold"     : 0.1900,
                        "gamma"         : 2.5000
                    },
                    "blue" :
                    {
                        "threshold"     : 0.1900,
                        "gamma"         : 2.5000
                    }
                }
            ],
        // SMOOTHING CONFIG
            "smoothing" :
            {
                "type"            : "linear",
                "time_ms"         : 200,
                "updateFrequency" : 60.0000,
                "updateDelay"     : 0
            }
        },
    
        // V4L2 GRABBER CONFIG
        "grabber-v4l2" :
        {
            "device" : "/dev/video0",
            "input" : 0,
            "standard" : "NTSC",
            "width" : -1,
            "height" : -1,
            "frameDecimation" : 2,
            "sizeDecimation" : 4,
            "priority" : 800,
            "mode" : "2D",
            "cropLeft" : 6,
            "cropRight" : 6,
            "cropTop" : 2,
            "cropBottom" : 2,
            "redSignalThreshold" : 0.1,
            "greenSignalThreshold" : 0.1,
            "blueSignalThreshold" : 0.1
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.2,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
    
        // 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.5294, "maximum" : 0.5882 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.5882, "maximum" : 0.6471 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.6471, "maximum" : 0.7059 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.7059, "maximum" : 0.7647 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.7647, "maximum" : 0.8235 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.8235, "maximum" : 0.8824 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.8824, "maximum" : 0.9412 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.9412, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8889, "maximum" : 1.0000 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7778, "maximum" : 0.8889 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6667, "maximum" : 0.7778 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5556, "maximum" : 0.6667 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4444, "maximum" : 0.5556 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3333, "maximum" : 0.4444 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2222, "maximum" : 0.3333 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1111, "maximum" : 0.2222 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.1111 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.9412, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.8824, "maximum" : 0.9412 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.8235, "maximum" : 0.8824 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.7647, "maximum" : 0.8235 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.7059, "maximum" : 0.7647 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.6471, "maximum" : 0.7059 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.5882, "maximum" : 0.6471 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.5294, "maximum" : 0.5882 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.4706, "maximum" : 0.5294 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.4118, "maximum" : 0.4706 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.3529, "maximum" : 0.4118 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.2941, "maximum" : 0.3529 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.2353, "maximum" : 0.2941 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.1765, "maximum" : 0.2353 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.1176, "maximum" : 0.1765 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.0588, "maximum" : 0.1176 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0588 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.1111 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1111, "maximum" : 0.2222 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2222, "maximum" : 0.3333 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3333, "maximum" : 0.4444 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4444, "maximum" : 0.5556 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5556, "maximum" : 0.6667 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6667, "maximum" : 0.7778 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7778, "maximum" : 0.8889 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8889, "maximum" : 1.0000 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0588 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.0588, "maximum" : 0.1176 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.1176, "maximum" : 0.1765 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.1765, "maximum" : 0.2353 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.2353, "maximum" : 0.2941 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.2941, "maximum" : 0.3529 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.3529, "maximum" : 0.4118 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.4118, "maximum" : 0.4706 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    
     
    Last edited: 15 May 2017
  20. penfold42

    penfold42 Moderator Developer

    Messages:
    750
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Can you use the web interface ?

    Start hyperiond and give it a nonnexistent config file and then browse to http://<host>:8099

    The led device config section should have a dropdown with the device type (artdmx) and fields for the (starting) universe, artnet ip and port.

    The channels are mapped directly from Hyperion led indexes in order and should follow the colour order specified:

    Dmx channel 1 is hyperion LED 0 red
    Dmx channel 2 is hyperion LED 0 green
    Dmx channel 3 is hyperion LED 0 blue
    Dmx channel 4 is hyperion LED 1 red
    Dmx channel 5 is hyperion LED 1 green
    Dmx channel 6 is hyperion LED 1 blue

    If you specify more leds than 1 universe can support, additional universes are used for the overflow.
     
    Last edited: 16 May 2017