# Relay woe

**URL:** <https://wled.discourse.group/t/relay-woe/9950>\
**Category:** Hardware\
**Created:** [November 19, 2023, 2:30pm UTC](https://wled.discourse.group/t/relay-woe/9950 "2023-11-19T14:30:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [November 19, 2023, 2:30pm UTC](https://wled.discourse.group/t/relay-woe/9950/1 "2023-11-19T14:30:18Z")

</div>

Good morning,

I have been using my DigUno with a relay on GPIO 19 (Q3) for the past few seasons. I updated WLED to the latest (14) and now the relay does not receive a signal to go high. Both the relay, and the power supply work independently, and the PS is powered if I connect the NC side of the relay, but not if connected NO. Before I rip the setup apart, has anyone any ideas?

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [November 19, 2023, 4:30pm UTC](https://wled.discourse.group/t/relay-woe/9950/2 "2023-11-19T16:30:03Z")

</div>

Have you tried to go back to the previous version to see if the relay works?

You should be to see the GPIO pin change voltage from Low to High with a voltmeter.  
You could try a different GPIO.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [November 19, 2023, 7:32pm UTC](https://wled.discourse.group/t/relay-woe/9950/3 "2023-11-19T19:32:07Z")

</div>

All good suggestions. I tested the voltage change on the Q3 & Q4 - no change. Q1 & Q2 are pulled low, and there is no change there either. I am going to roll back to 13.0 “Toki” and see what happens.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [November 19, 2023, 10:07pm UTC](https://wled.discourse.group/t/relay-woe/9950/4 "2023-11-19T22:07:52Z")

</div>

Not sure if you tried or not, but may want to install from here: [https://install.quinled.info/](https://install.quinled.info/)

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [November 19, 2023, 10:51pm UTC](https://wled.discourse.group/t/relay-woe/9950/5 "2023-11-19T22:51:16Z")

</div>

Thanks for the suggestion. For the life of me, I cannot figure out what happened.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 22, 2024, 5:57pm UTC](https://wled.discourse.group/t/relay-woe/9950/6 "2024-09-22T17:57:46Z")

</div>

I came back to this relay problem, after about a year with some new understanding. I found, by experimentation, that the GPIO pin (19) on the ESP32 I was using still produces a logic signal, by oscilloscope, and that the relay’s I had been using to isolate the power supply’s (coil 5VDC@8A 120VAC) were failing due to the contacts burning out. After the second attempt, I cut the failed relay apart and verified that the contacts had failed - burnt black. Now, why a 10 amp relay would fail, is beyond me; the power supply was barely loaded when the relays failed. These are the inexpensive ubiquitous ‘blue sealed box’ dry contact relays. Has anyone been able to source a better quality relay to idle the power suppl?

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [September 22, 2024, 8:56pm UTC](https://wled.discourse.group/t/relay-woe/9950/7 "2024-09-22T20:56:25Z")

</div>

So far I have only had 1 lil blue box fail and it got stuck latched where it would not cut the power. I was switching the AC side of psu. I think you are switching the DC side? You could try a DC/DC SSR. I am using a couple DC/AC SSR’s for a couple control boxes that sit right out in the snow/ice in winter.

I have not used a DC/DC one but I saw this on Amazon: [https://www.amazon.com/SSR-60DD-3-32VDC-Output-5-240VDC-Plastic/dp/B09T92L2YJ](https://www.amazon.com/SSR-60DD-3-32VDC-Output-5-240VDC-Plastic/dp/B09T92L2YJ)

Edit: I just saw these, they may be a bit more beefy than the regular blue box: [https://www.amazon.com/HiLetgo-Channel-Optocoupler-Isolation-Trigger/dp/B0CHFJSNP6](https://www.amazon.com/HiLetgo-Channel-Optocoupler-Isolation-Trigger/dp/B0CHFJSNP6)

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 22, 2024, 9:52pm UTC](https://wled.discourse.group/t/relay-woe/9950/8 "2024-09-22T21:52:09Z")

</div>

Thank you. I’m trying to latch the AC so the PS does not idle when the Xmas displays are off.  
Like this:

Line → 5VDC 0.5A PS (from wall wart) → 5VDC relay. The 5VDC relay switches the 120VAC line to the main power supply.

The little guys just burn out. I will try the 5VDC coil 30A relay you suggested and post the results here.

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 25, 2024, 5:06pm UTC](https://wled.discourse.group/t/relay-woe/9950/9 "2024-09-25T17:06:39Z")

</div>

What you may have to watch out for is the surge current when you power up the supply from “dead” (and down). The initial (very short) surge to charge the supply capacitors can often be 10x (or more) than the normal run current.

The disconnect current can cause a spark across the relay contacts when you shut things down if you’re under load. It doesn’t take many of those to wipe out relay contacts.

SSR’s can be a reasonable solution, but be forewarned that you need to rate them at well byeond what your “normal” current reqt’s will be due to surge.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 25, 2024, 5:28pm UTC](https://wled.discourse.group/t/relay-woe/9950/10 "2024-09-25T17:28:45Z")

</div>

Thanks for the tip. Will a 3.3VDC logic pulse be enough to trigger a SSR?

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 25, 2024, 5:42pm UTC](https://wled.discourse.group/t/relay-woe/9950/11 "2024-09-25T17:42:21Z")

</div>

Really depends on the SSR you pick and what the mfg specs say.  
For power supply/lines control, it much less of an issue than when you’re trying to do PWM dimming.

In the worst case, you could always use a levelshifter to get the signal up to 5V (yes I know, that’s more complexity).  
BTW, that’s **one** application where I2C type shifters may be appropriate - relay/SSR drive.  
Little to no speed requirement.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [September 25, 2024, 5:43pm UTC](https://wled.discourse.group/t/relay-woe/9950/12 "2024-09-25T17:43:18Z")

</div>

I have used these and they work with 3.3v

> **[Diitao 1Set SSR 10DA Solid State Relay Module 250V 3 32V DC Input 24 380VAC...](https://www.amazon.com/Diitao-Solid-State-Single-Semi-Conductor/dp/B0BB7B29LK)**
>
> 1Set SSR 10DA Solid State Relay Module 250V 3 32V DC Input 24 380VAC Output Single Phase Solid State Relay Resistance Voltage Regulator SSR 10DA Heat Sink Specifications:Model: SSR-10DA Solid State RelayControl Mode: DC to ACControl Voltage: 3 -...

> **[2 Pcs Solid State Relay SSR-25DA with 2 Pcs Heat Sink, DC to AC Relay Input...](https://www.amazon.com/State-Thermostat-Temperature-Controller-Industrial/dp/B0BD55LGX7)**
>
> Features: Small size: The solid state relay module measures 6.2 x 4.5 x 2.4 cm/ 2.44 x 1.77 x 0.94 inches and the heat sink is 8 x 5 x 5 cm/ 3.15 x 1.97 x 1.97 inches. Both of them have an appropriate size, which is portable and lightweight. Wide...

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 25, 2024, 5:59pm UTC](https://wled.discourse.group/t/relay-woe/9950/13 "2024-09-25T17:59:56Z")

</div>

Thank you. I will investigate.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 25, 2024, 6:04pm UTC](https://wled.discourse.group/t/relay-woe/9950/14 "2024-09-25T18:04:46Z")

</div>

I received a couple of 20A relays today. I will test the cap. surge theory, but I suspect you are correct. The SSR’s might be a good fit if I can trigger them with logic level voltage. I have some cheapo level-shifters laying around.

---

<div class="post-metadata">

**Author:** ![divsys](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@divsys](https://wled.discourse.group/u/divsys)\
**Post date:** [September 25, 2024, 6:08pm UTC](https://wled.discourse.group/t/relay-woe/9950/15 "2024-09-25T18:08:05Z")

</div>

For relay/SSR Power Supply drives from a GPIO, a simple 2N3904 and 2 resistors + blocking diode will work as a simple levelshifter (that also Logic inverts).

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [September 25, 2024, 6:20pm UTC](https://wled.discourse.group/t/relay-woe/9950/16 "2024-09-25T18:20:17Z")

</div>

Note if using these type of relay shields, do not level shift them. They do not like that. [https://www.amazon.com/gp/product/B01NACU547](https://www.amazon.com/gp/product/B01NACU547)

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 25, 2024, 6:30pm UTC](https://wled.discourse.group/t/relay-woe/9950/17 "2024-09-25T18:30:54Z")

</div>

No, I went straight to the relay from the GPIO, but those are the kinds of relays that are burning out.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 25, 2024, 11:47pm UTC](https://wled.discourse.group/t/relay-woe/9950/18 "2024-09-25T23:47:57Z")

</div>

I received and installed the 20A relay this afternoon. So far so good. I am also going to experiment with the SSR. I have never used one before and I am curious.

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [September 27, 2024, 1:55pm UTC](https://wled.discourse.group/t/relay-woe/9950/19 "2024-09-27T13:55:31Z")

</div>

I received the SSR yesterday. Having never used one before, I am impressed. It triggered easily with the logic level signal from the ESP32, but I think I will add a simple level shifter as divsys suggested. This UNO is remote from the router, and I am hedging all of my bets.

The beefier relay also worked well, but, oddly, was the same price.

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [September 28, 2024, 1:03am UTC](https://wled.discourse.group/t/relay-woe/9950/20 "2024-09-28T01:03:27Z")

</div>

I have 2 controllers using the SSR’s and have not had any problems with them switching @ 3.3v from the gpio. But I guess it can’t hurt to add a shifter.  
Check the specs of the UNO to be sure the relay pin on it is not already shifted. I don’t use any Dig controllers and I know @Quindor has some of the pins on it shifted but am unsure of what ones.
