Skip to content

DC 5V 1 Channel Relay Module 30A with optocoupler Isolation high and Low Level Trigger Relay will click and not start on 16.0.0 #5571

Closed

Description

@ChrisSimmons2025

What happened?

Had an issue where one of our ESP32's on a longer run (498 WS2811 LED's) was clicking once updated to 0.16. I have reverted this unit back to 15.4 and its all good again. I use this relay on 2 other units and had to change the LED driver to I2C on one of the units or had sever flashing. The other run is a lot smaller. Seems to be an issue only on a longer run.

To Reproduce Bug

Relay GPIO 17, inverted. Clicking, causing instability on ESP32 to not allow it to boot properly.

Expected Behavior

Relay to click on and off only when asked

Install Method

Binary from WLED.me

What version of WLED?

WLED 16.0.0 (2605030)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

ESP32 Development Board TYPE-C USB CH340C WiFi Bluetooth UltraLow Power Consumption Dual Core ESP32-DevKitC-32 ESP32

Anything else?

20 amp power supply, 4 injection points

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. DedeHai commented on May 5, 2026

    @DedeHai
    Collaborator

    this sounds like a hardware deficiency rather than a software issue. https://kno.wled.ge/basics/wiring-guides/ capacitors in place?

  2. ChrisSimmons2025 commented on May 5, 2026

    @ChrisSimmons2025
    Author
  3. DedeHai commented on May 5, 2026

    @DedeHai
    Collaborator

    did you measre that with a scope? Also what counts is the 3.3V rail.
    What has changed is the timing / sequence of the init code and also the core library may do things differently. If a wifi power spike occurs at the wrong time and hardware is insufficient it can brown-out. This has always been the case so with insufficient capacitance its a bit of a game of luck.

  4. ChrisSimmons2025 commented on May 5, 2026

    @ChrisSimmons2025
    Author

    Yeah, measured it with a volt meter. I meant the GPIO on a standard ESP32 being 3.3v out, got bidirectional logic level converter to shift it to 5v.
    I added a 16v 470uf capacitors to the voltage in on the ESP32. It has made it more stable and stopped the clicking of the relay. However it will only fire it on a reboot, not on/off through software now. Did a test on 0.16.0.

  5. changed the title [-]DC 5V 11 Channel Relay Module 30A with optocoupler Isolation high and Low Level Trigger Relay will click and not start on 0.16[/-] [+]DC 5V 11 Channel Relay Module 30A with optocoupler Isolation high and Low Level Trigger Relay will click and not start on 16.0.0[/+] on May 5, 2026
  6. DedeHai commented on May 5, 2026

    @DedeHai
    Collaborator

    you can not measure such short voltage fluctuations with a voltmeter, you need a scope if you want to do that.
    As to whether the relay pin fires or not you can see in the new pin info page. if that shows green when on and gray when off, the software does its job and you need to find the bug in your hardware.

  7. ChrisSimmons2025 commented on May 5, 2026

    @ChrisSimmons2025
    Author

    Fair enough. I suppose it is hard to see issues in so many custom setups, and I am very much just a hobbyist. Does seem that the new build is considerably less forgiving with power than the previous builds looking at the issues list.
    I have added 2 capacitors to the setup, one for the constant voltage on the relay and the input voltage on the ESP32. I can swap between 0.16.0 and not have it work and 0.15 and have it work. And have now done it a few times.
    If my report issue is not helpful, feel free to delete.

  8. ChrisSimmons2025 commented on May 5, 2026

    @ChrisSimmons2025
    Author

    I love what you guys have done. Thank you

  9. DedeHai commented on May 5, 2026

    @DedeHai
    Collaborator

    With thousands of code lines changed it is highly likely that there are still some bugs we missed in testing. Does the pin info page show the relay state correctly? If it does I can't think of a reason why it would not switch the relay.
    I do dimly remember that there was a way to make the relay not switch properly in some combination of bootup preset. In order to fix that I would need to be able to reproduce it. So can you post your config here that causes the issue?

  10. ChrisSimmons2025 commented on May 5, 2026

    @ChrisSimmons2025
    Author

    I don't know why, but it is now working correctly. It is the 8th odd time I have loaded the update.
    I am really sorry for wasting your time. I have attached the configs just in case it is useful.

    {"rev":[1,0],"vid":2508020,"id":{"mdns":"wled-519234","name":"Back yard Shed","inv":"Light","sui":false},"nw":{"espnow":false,"linked_remote":"","ins":[{"ssid":"SSID","pskl":15,"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":0,"behav":0,"ip":[4,3,2,1]},"wifi":{"sleep":false,"phy":false,"txpwr":78},"hw":{"led":{"total":498,"maxpwr":20000,"ledma":0,"cct":false,"cr":false,"ic":false,"cb":0,"fps":42,"rgbwm":255,"ld":true,"prl":false,"ins":[{"start":0,"len":498,"pin":[16],"order":0,"rev":true,"skip":0,"type":22,"ref":false,"rgbwm":0,"freq":0,"maxpwr":20000,"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":17,"rev":true,"odrain":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":false,"rpc":5,"hrp":true},"nl":{"mode":1,"dur":60,"tbri":0,"macro":0}},"def":{"ps":2,"on":true,"bri":128},"if":{"sync":{"port0":21324,"port1":65506,"espnow":false,"recv":{"bri":true,"col":true,"fx":true,"pal":true,"grp":128,"seg":false,"sb":false},"send":{"en":false,"dir":false,"btn":false,"va":false,"hue":true,"grp":128,"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-519234","rtn":false,"topics":{"device":"wled/519234","group":"wled/all"}},"hue":{"en":false,"id":1,"iv":25,"recv":{"on":true,"bri":true,"col":true},"ip":[0.0.0.0]},"ntp":{"en":false,"host":"0.wled.pool.ntp.org","tz":0,"offset":0,"ampm":false,"ln":0,"lt":0}},"ol":{"clock":0,"cntdwn":false,"min":0,"max":29,"o12pix":0,"o5m":false,"osec":false,"osb":false},"timers":{"cntdwn":{"goal":[20,1,1,0,0,0],"macro":0},"ins":[]},"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}}}}

  11. changed the title [-]DC 5V 11 Channel Relay Module 30A with optocoupler Isolation high and Low Level Trigger Relay will click and not start on 16.0.0[/-] [+]DC 5V 1 Channel Relay Module 30A with optocoupler Isolation high and Low Level Trigger Relay will click and not start on 16.0.0[/+] on May 5, 2026
  12. added
    hardware
    workaround
    and removed on May 5, 2026
  13. added this to the 16.0.0 beta milestone on May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    hardwarequestionworkaround

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions