Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SK6812 RGBW colors broken in 0.15.0 on ESP32, not ESP8266, works in 0.14.4 #4380

Open
1 task done
trullock opened this issue Dec 11, 2024 · 8 comments
Open
1 task done
Labels

Comments

@trullock
Copy link

trullock commented Dec 11, 2024

What happened?

I have two strips of SK6812s RGBWs, one lot attached to an ESP32 and one to an ESP8266

Updating to 0.15 from 0.14.4 breaks the ESP32 colors but not the ESP8266 colors

I've reverted to 0.14.4 so cant debug further at this moment but can do later

To Reproduce Bug

SK6812s RGBWs in GBR mode on an ESP32, the colors are the wrong. They are very dim, the hue isnt far off or might be right (havent fully debugged, had to quickly revert before the kids came home to see no xmas lights!)

Expected Behavior

Colors to be correct ;)

Install Method

Binary from WLED.me

What version of WLED?

0.15.0

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

can probive later, got to

Anything else?

Can debug further later, thought Id get this raised for everyones sake

Code of Conduct

  • I agree to follow this project's Code of Conduct
@trullock trullock added the bug label Dec 11, 2024
@willmmiles
Copy link
Collaborator

very dim

Try checking the brightness limiter settings. Also, if you can, please post the config from your 0.14 system; it sounds like there's either (a) a bug in the upgrade path, or (b) a setting that was previously ignored is now being correctly applied; I'd like to poke the config and see if I can work out what it is.

@trullock
Copy link
Author

trullock commented Dec 11, 2024

Will have a fiddle with the settings tomorrow

The animation/effect seems to be working properly, its just the "color" thats wrong. Will try and be more descriptive tomorrow

Config exported from 1.14.4:

{
    "rev": [
        1,
        0
    ],
    "vid": 2412100,
    "id": {
        "mdns": "wled-house",
        "name": "WLED-HOUSE",
        "inv": "Light",
        "sui": false
    },
    "nw": {
        "espnow": false,
        "linked_remote": "",
        "ins": [
            {
                "ssid": "REDACTED",
                "pskl": 13,
                "ip": [
                    0,
                    0,
                    0,
                    0
                ],
                "gw": [
                    0,
                    0,
                    0,
                    0
                ],
                "sn": [
                    255,
                    255,
                    255,
                    0
                ]
            }
        ],
        "dns": [
            8,
            8,
            8,
            8
        ]
    },
    "ap": {
        "ssid": "WLED-AP",
        "pskl": 8,
        "chan": 1,
        "hide": 1,
        "behav": 0,
        "ip": [
            4,
            3,
            2,
            1
        ]
    },
    "wifi": {
        "sleep": false,
        "phy": false,
        "txpwr": 78
    },
    "hw": {
        "led": {
            "total": 30,
            "maxpwr": 850,
            "ledma": 0,
            "cct": false,
            "cr": false,
            "ic": false,
            "cb": 0,
            "fps": 42,
            "rgbwm": 3,
            "ld": true,
            "ins": [
                {
                    "start": 0,
                    "len": 221,
                    "pin": [
                        3
                    ],
                    "order": 0,
                    "rev": false,
                    "skip": 0,
                    "type": 30,
                    "ref": false,
                    "rgbwm": 0,
                    "freq": 0,
                    "maxpwr": 230,
                    "ledma": 55
                },
                {
                    "start": 221,
                    "len": 595,
                    "pin": [
                        16
                    ],
                    "order": 0,
                    "rev": false,
                    "skip": 0,
                    "type": 30,
                    "ref": false,
                    "rgbwm": 0,
                    "freq": 0,
                    "maxpwr": 619,
                    "ledma": 55
                }
            ]
        },
        "com": [],
        "btn": {
            "max": 4,
            "pull": true,
            "ins": [
                {
                    "type": 2,
                    "pin": [
                        0
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                },
                {
                    "type": 0,
                    "pin": [
                        -1
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                },
                {
                    "type": 0,
                    "pin": [
                        -1
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                },
                {
                    "type": 0,
                    "pin": [
                        -1
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                }
            ],
            "tt": 32,
            "mqtt": false
        },
        "ir": {
            "pin": -1,
            "type": 0,
            "sel": true
        },
        "relay": {
            "pin": 32,
            "rev": false,
            "odrain": false
        },
        "baud": 1152,
        "if": {
            "i2c-pin": [
                -1,
                -1
            ],
            "spi-pin": [
                -1,
                -1,
                -1
            ]
        }
    },
    "light": {
        "scale-bri": 100,
        "pal-mode": 0,
        "aseg": true,
        "gc": {
            "bri": 1,
            "col": 2.8,
            "val": 2.8
        },
        "tr": {
            "mode": true,
            "fx": true,
            "dur": 7,
            "pal": false,
            "rpc": 5,
            "hrp": true
        },
        "nl": {
            "mode": 1,
            "dur": 60,
            "tbri": 0,
            "macro": 0
        }
    },
    "def": {
        "ps": 0,
        "on": false,
        "bri": 128
    },
    "if": {
        "sync": {
            "port0": 21324,
            "port1": 65506,
            "espnow": false,
            "recv": {
                "bri": true,
                "col": true,
                "fx": true,
                "pal": true,
                "grp": 1,
                "seg": false,
                "sb": false
            },
            "send": {
                "en": false,
                "dir": true,
                "btn": false,
                "va": false,
                "hue": true,
                "grp": 1,
                "ret": 0
            }
        },
        "nodes": {
            "list": true,
            "bcast": true
        },
        "live": {
            "en": true,
            "mso": false,
            "rlm": true,
            "port": 5568,
            "mc": false,
            "dmx": {
                "uni": 1,
                "seqskip": false,
                "e131prio": 0,
                "addr": 1,
                "dss": 0,
                "mode": 4
            },
            "timeout": 25,
            "maxbri": false,
            "no-gc": true,
            "offset": 0
        },
        "va": {
            "alexa": false,
            "macros": [
                0,
                0
            ],
            "p": 0
        },
        "mqtt": {
            "en": false,
            "broker": "",
            "port": 1883,
            "user": "",
            "pskl": 0,
            "cid": "WLED-e661b0",
            "rtn": false,
            "topics": {
                "device": "wled/e661b0",
                "group": "wled/all"
            }
        },
        "hue": {
            "en": false,
            "id": 1,
            "iv": 25,
            "recv": {
                "on": true,
                "bri": true,
                "col": true
            },
            "ip": [
                192,
                168,
                2,
                0
            ]
        },
        "ntp": {
            "en": true,
            "host": "0.wled.pool.ntp.org",
            "tz": 1,
            "offset": 0,
            "ampm": false,
            "ln": -1.26,
            "lt": 52.9
        }
    },
    "ol": {
        "clock": 0,
        "cntdwn": false,
        "min": 0,
        "max": 59,
        "o12pix": 0,
        "o5m": false,
        "osec": false,
        "osb": false
    },
    "timers": {
        "cntdwn": {
            "goal": [
                20,
                1,
                1,
                0,
                0,
                0
            ],
            "macro": 0
        },
        "ins": [
            {
                "en": 1,
                "hour": 255,
                "min": 0,
                "macro": 0,
                "dow": 127
            },
            {
                "en": 1,
                "hour": 255,
                "min": 0,
                "macro": 0,
                "dow": 127
            }
        ]
    },
    "ota": {
        "lock": false,
        "lock-wifi": false,
        "pskl": 7,
        "aota": true
    },
    "um": {
        "AudioReactive": {
            "enabled": false,
            "add-palettes": false,
            "analogmic": {
                "pin": -1
            },
            "digitalmic": {
                "type": 1,
                "pin": [
                    32,
                    15,
                    14,
                    -1
                ]
            },
            "config": {
                "squelch": 10,
                "gain": 60,
                "AGC": 0
            },
            "frequency": {
                "scale": 3
            },
            "dynamics": {
                "limiter": true,
                "rise": 80,
                "fall": 1400
            },
            "sync": {
                "port": 11988,
                "mode": 0
            }
        }
    }
}

@trullock
Copy link
Author

And this is the config from the ESP8266 device which works on 0.14.4 and 0.15, just in case its a config issue rather than a hardware-specific bug

{
    "rev": [
        1,
        0
    ],
    "vid": 2405180,
    "id": {
        "mdns": "wled-garage",
        "name": "WLED_Garage",
        "inv": "Light"
    },
    "nw": {
        "ins": [
            {
                "ssid": "REDACTED",
                "pskl": 13,
                "ip": [
                    0,
                    0,
                    0,
                    0
                ],
                "gw": [
                    0,
                    0,
                    0,
                    0
                ],
                "sn": [
                    255,
                    255,
                    255,
                    0
                ]
            }
        ]
    },
    "ap": {
        "ssid": "WLED-AP",
        "pskl": 8,
        "chan": 1,
        "hide": 0,
        "behav": 0,
        "ip": [
            4,
            3,
            2,
            1
        ]
    },
    "wifi": {
        "sleep": true,
        "phy": false
    },
    "hw": {
        "led": {
            "total": 334,
            "maxpwr": 850,
            "ledma": 0,
            "cct": false,
            "cr": false,
            "cb": 0,
            "fps": 42,
            "rgbwm": 3,
            "ld": false,
            "ins": [
                {
                    "start": 0,
                    "len": 334,
                    "pin": [
                        1
                    ],
                    "order": 0,
                    "rev": false,
                    "skip": 0,
                    "type": 30,
                    "ref": false,
                    "rgbwm": 0,
                    "freq": 0
                }
            ]
        },
        "com": [],
        "btn": {
            "max": 2,
            "pull": true,
            "ins": [
                {
                    "type": 2,
                    "pin": [
                        0
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                },
                {
                    "type": 0,
                    "pin": [
                        -1
                    ],
                    "macros": [
                        0,
                        0,
                        0
                    ]
                }
            ],
            "tt": 32,
            "mqtt": false
        },
        "ir": {
            "pin": -1,
            "type": 0,
            "sel": true
        },
        "relay": {
            "pin": 12,
            "rev": false
        },
        "baud": 1152,
        "if": {
            "i2c-pin": [
                -1,
                -1
            ],
            "spi-pin": [
                -1,
                -1,
                -1
            ]
        }
    },
    "light": {
        "scale-bri": 100,
        "pal-mode": 0,
        "aseg": false,
        "gc": {
            "bri": 1,
            "col": 2.8,
            "val": 2.8
        },
        "tr": {
            "mode": true,
            "fx": true,
            "dur": 7,
            "pal": 0,
            "rpc": 5
        },
        "nl": {
            "mode": 1,
            "dur": 60,
            "tbri": 0,
            "macro": 0
        }
    },
    "def": {
        "ps": 0,
        "on": false,
        "bri": 128
    },
    "if": {
        "sync": {
            "port0": 21324,
            "port1": 65506,
            "recv": {
                "bri": true,
                "col": true,
                "fx": true,
                "grp": 1,
                "seg": false,
                "sb": false
            },
            "send": {
                "dir": false,
                "btn": false,
                "va": false,
                "hue": true,
                "macro": false,
                "grp": 1,
                "ret": 0
            }
        },
        "nodes": {
            "list": true,
            "bcast": true
        },
        "live": {
            "en": true,
            "mso": false,
            "port": 5568,
            "mc": false,
            "dmx": {
                "uni": 1,
                "seqskip": false,
                "e131prio": 0,
                "addr": 1,
                "dss": 0,
                "mode": 4
            },
            "timeout": 25,
            "maxbri": false,
            "no-gc": true,
            "offset": 0
        },
        "va": {
            "alexa": false,
            "macros": [
                0,
                0
            ],
            "p": 0
        },
        "mqtt": {
            "en": false,
            "broker": "",
            "port": 1883,
            "user": "",
            "pskl": 0,
            "cid": "WLED-9422e9",
            "rtn": false,
            "topics": {
                "device": "wled/9422e9",
                "group": "wled/all"
            }
        },
        "hue": {
            "en": false,
            "id": 1,
            "iv": 25,
            "recv": {
                "on": true,
                "bri": true,
                "col": true
            },
            "ip": [
                192,
                168,
                2,
                0
            ]
        },
        "ntp": {
            "en": false,
            "host": "0.wled.pool.ntp.org",
            "tz": 0,
            "offset": 0,
            "ampm": false,
            "ln": 0,
            "lt": 0
        }
    },
    "remote": {
        "remote_enabled": false,
        "linked_remote": ""
    },
    "ol": {
        "clock": 0,
        "cntdwn": false,
        "min": 0,
        "max": 29,
        "o12pix": 0,
        "o5m": false,
        "osec": false
    },
    "timers": {
        "cntdwn": {
            "goal": [
                20,
                1,
                1,
                0,
                0,
                0
            ],
            "macro": 0
        },
        "ins": []
    },
    "ota": {
        "lock": false,
        "lock-wifi": false,
        "pskl": 7,
        "aota": true
    },
    "um": {}
}

@listlesslife
Copy link

I was having a similar problem, but my esp8266s weren't changing colors and my esp32s were fine. Rolled back the 8266s to 0.14.4 and now color changing works. 0.15.0 also knocked a couple of my esp8266s offline and they had to be reflashed via serial, but that's a different issue.

@trullock
Copy link
Author

trullock commented Dec 12, 2024

So, automatic brightness limiting had been turned on, turning that off solves it.

However the effects wrt segments is screwy, like its sped up. Segment 1 is ok, but the rest are not

I have a vid but cant post it here. Can DM/email

@nomonkeynodeal
Copy link

It looks like the blue channel just doesn't work for me with 15.0. I rolled back to 14.4 and it's fine.

@trullock
Copy link
Author

0.15 now seems completely broken for me, and I can't roll back to 0.14.4. I provide the binary and seems to apply the update, but it doesnt.

Will have to get the ladders out and flash it directly I guess

@c-b5r
Copy link

c-b5r commented Dec 14, 2024

I updated (OTA) 5x ESP8266 (d1 mini) with an almost identical SK6812 setup (except for the switch type). Here is the result:

  • 2x updated just fine and everything worked as before
  • 2x updated but the entire color setup (RGB wheel + sliders) was missing. I then switched the LED configuration to [WS2812x > apply > SK6812 > apply] and after that everything seemed back to normal.
  • 1x device didn't boot after the update. I manually flashed 0.15.0 via USB and then the device came back online again with all the previous settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants