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

SOLVED SK6812 LED Issues

Discussion in 'LED Devices Support' started by RPK, 29 July 2020.

  1. RPK

    RPK New Member

    Messages:
    8
    I recently purchased a 5m strand of SK6812 LEDs, and I'm having issues getting it running with Hyperion.ng.

    I have the strip connected to a 5V 10A power supply and I've tried a few pins on the GPIO pins for the data line, but I can't get the light strip to do anything but light up white. I've tried running this from both a Pi Zero and a Pi 3 Model B with the same results.

    I feel like I'm missing something easy, but I can't figure it out.

    The device settings are as follows:

    Code:
    "device": {
      "colorOrder": "rgb",
      "hardwareLedCount": 1,
      "invert": false,
      "latchTime": 0,
      "output": "/dev/spidev0.0",
      "rate": 3000000,
      "rewriteTime": 1000,
      "type": "sk6812spi",
      "whiteAlgorithm": "subtract_minimum"
    }
    Anyone have any ideas on what I might be doing wrong?
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,689
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  3. RPK

    RPK New Member

    Messages:
    8
    3000000 is what it defaulted to when I selected sk6812.

    The results of the spidev_test are as follows:

    Code:
    spi mode: 4
    bits per word: 8
    max speed: 500000 Hz (500 KHz)
    
    FF FF FF FF FF FF
    40 00 00 00 00 95
    FF FF FF FF FF FF
    FF FF FF FF FF FF
    FF FF FF FF FF FF
    DE AD BE EF BA AD
    F0 0D
     
  4. Akriss

    Akriss Active Member

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

    RPK New Member

    Messages:
    8
    Unfortunately, that did not work. I have added the line to the `/boot/cmdline.txt` file as well as setting the core_freq to 250MHz, and the lights are still bright white and don't respond to any commands that are sent through the hyperion.ng interface.
     
  6. RPK

    RPK New Member

    Messages:
    8
    I don't know what I did, but they started working. I changed the config to `ws2812spi` and then back to `sk6812spi` and that seemed to kick it into gear.

    The config that ended up working was:
    Code:
    "device": {
        "hardwareLedCount": 1,
        "colorOrder": "grb",
        "invert": false,
        "latchTime": 0,
        "output": "/dev/spidev0.0",
        "rate": 3000000,
        "rewriteTime": 1000,
        "whiteAlgorithm": "subtract_minimum",
        "type": "sk6812spi"
    }
    I'll keep an eye on it moving forward and post back here if I encounter any more issues.
     
    • Like Like x 1