# MOSFET Instead of Relay shutoff?

**URL:** <https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995>\
**Category:** Hardware\
**Created:** [October 1, 2020, 1:05pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995 "2020-10-01T13:05:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 1, 2020, 1:05pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/1 "2020-10-01T13:05:11Z")

</div>

I have an existing WLED pcb I made, but want to make it lower power so shutting off the led strip when not in use and adding a switching reg. I want to keep the board size small so was wondering if anyone had tried putting a N-channel Mosfet to switch the GND on leds to shut them off. (rather than using relay on 12v)

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/1X/f869244c2abe3dfec0a6b9a7b3b4d14b5ff4f8b7.png)

has anyone tried this? I could use P-chan on the 12V side but that needs a few more components so would prefer n-channel option.

---

<div class="post-metadata">

**Author:** ![Aircoookie](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aircoookie/32/2_2.png) [@Aircoookie](https://wled.discourse.group/u/Aircoookie)\
**Post date:** [October 2, 2020, 11:35am UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/2 "2020-10-02T11:35:09Z")

</div>

Hi!  
I also have an N-channel mosfet board but opted for a standard relay for one of my lights once I learned the mosfet would interrupt the ground. In that case space was not a concern, but I would have liked to get rid of the clicking noise of operating the relay. Oh well…

Generally with addressable LEDs it is the consensus that when handling you should first disconnect data, then VCC and lastly GND (as reference, the Adafruit Uberguide emphasizes this). Disconnecting only GND can allegedly damage the LEDs. I once had a ground cable solder joint come loose and in that case the affected LED strip (SK6812) did not break. It did however appear to draw some power from the data in line, lighing up in a faint red. So you can give it a try, but I would definitely not incorporate it into the PCB design. P channel might be your best bet, although i’ve heard they have slightly worse efficiency than N channel.

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 2, 2020, 12:33pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/3 "2020-10-02T12:33:13Z")

</div>

Thanks,

Don’t want to damage the LEDS 😬  
Will look at what i can find as a cheap Solid state relay or MOFET for turning 12V.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 3, 2020, 3:09am UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/4 "2020-10-03T03:09:55Z")

</div>

There is no such a thing as cheap solid state relay 😉

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 5, 2020, 10:39pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/5 "2020-10-05T22:39:32Z")

</div>

Gone for a P-Channel Mosfet.

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/1X/c598c7fa9b25b7ebffcad6bf79e270551cd5e4d2.png)

Have to wait for slow postage, but should be able test/use before end of month.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 7, 2020, 12:29am UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/6 "2020-10-07T00:29:38Z")

</div>

Like to hear from you after testing.

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 23, 2020, 4:03pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/7 "2020-10-23T16:03:02Z")

</div>

PCB’s arrived today 🙂

Build one up, should hopefully get time to test it over the weekend if it rains.

 ![WhatsApp Image 2020-10-23 at 17.01.26](https://global.discourse-cdn.com/free1/uploads/wled/original/1X/dbd70520418a4864f3007e398cb03be003fb29c0.jpeg)

---

<div class="post-metadata">

**Author:** ![huggy-d1](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/huggy-d1/32/51_2.png) [@huggy-d1](https://wled.discourse.group/u/huggy-d1)\
**Post date:** [October 23, 2020, 11:48pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/8 "2020-10-23T23:48:36Z")

</div>

Is that a wago box?

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 24, 2020, 9:46am UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/9 "2020-10-24T09:46:43Z")

</div>

Yeah 😅 , Cheap and keep the cables all lined up.

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [October 24, 2020, 1:13pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/10 "2020-10-24T13:13:12Z")

</div>

Hmm. Gelbox?

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 24, 2020, 4:03pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/11 "2020-10-24T16:03:07Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/wled/original/1X/1a5bc5f0a6bd79cb070e52ea0417e3a54ac649e8.jpeg)

Running at full power where the mosfet is going to generate the most heat full white, the mosfet after 1h was 38 degrees which is a good sign.

Id be interested to know what other peoples standby power of there wled boards for comparison.

The mosfet I used was 33p P-chan mosfet getting Rdson ~3mΩ

This is the main source of heat (current^2\*Rdson) so you could spend more getting a lower Rdson depending on the current draw of the project.

These leds surround me bed so I wanted to make it efficient and didnt want a clicky relay.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 24, 2020, 6:49pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/12 "2020-10-24T18:49:57Z")

</div>

I’m just a little frustrated. You have only 21mA consuming by your board. How it’s possible? Are you able to connect to your WLED instance while you in standby mode?

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 24, 2020, 9:57pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/13 "2020-10-24T21:57:29Z")

</div>

yeah still responds to alexa/app. That’s just the switching 3v3 reg running, I could measure what I’m actually using at 3v3.

I have a 5V ldo for the signal out but that gets turned off with the 12V feed which will be saving some extra.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 24, 2020, 11:00pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/14 "2020-10-24T23:00:28Z")

</div>

Nice. I just wonder cause usually it’s a 55-65mA min in idle.

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 25, 2020, 9:31am UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/15 "2020-10-25T09:31:23Z")

</div>

The 21mA is @12V which would be around those values @3.3V I don’t want to desolder this one so ill do some extra reading when i build up another.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 25, 2020, 2:49pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/16 "2020-10-25T14:49:11Z")

</div>

Oh now it’s make sense 🙂

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [October 25, 2020, 8:04pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/17 "2020-10-25T20:04:14Z")

</div>

Just did a measurement on 3v3 rail, current 64mA

Do you have a measurement of your boards at 12V? would be interesting to see difference.

---

<div class="post-metadata">

**Author:** ![srg74](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/srg74/32/3018_2.png) [@srg74](https://wled.discourse.group/u/srg74)\
**Post date:** [October 25, 2020, 9:10pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/18 "2020-10-25T21:10:22Z")

</div>

I feed my board from 5V so now I see your measurements is almost as mine, within few mA

---

<div class="post-metadata">

**Author:** ![dylan\_09](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dylan\_09](https://wled.discourse.group/u/dylan_09)\
**Post date:** [May 26, 2021, 3:21pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/19 "2021-05-26T15:21:14Z")

</div>

> [@cohesus](#):
>
> The mosfet I used was 33p P-chan mosfet getting Rdson ~3mΩ

Hello,

maybe could you say which P-chan Mosfet you used?  
Regards  
Ulrich

---

<div class="post-metadata">

**Author:** ![cohesus](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cohesus](https://wled.discourse.group/u/cohesus)\
**Post date:** [May 26, 2021, 3:45pm UTC](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995/20 "2021-05-26T15:45:09Z")

</div>

Sorry I think I used one that I found in the office and looked up spec after. So not 100% sure on on

If you look for pchan MOSFETs on farnell/rs you should get lots of results that you can filter by Rds resistance.

I’ll have a look through my history when I’m home and see if I can find the exact one.

On another note if I am considering designing a triac based solution to achieve a lower standby consumption when I get some free time.

[Next page](https://wled.discourse.group/t/mosfet-instead-of-relay-shutoff/995.md?page=2)
