# PWM range

**URL:** <https://wled.discourse.group/t/pwm-range/6266>\
**Category:** Hardware\
**Created:** [November 5, 2022, 1:51am UTC](https://wled.discourse.group/t/pwm-range/6266 "2022-11-05T01:51:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![SachaBellier](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@SachaBellier](https://wled.discourse.group/u/SachaBellier)\
**Post date:** [November 5, 2022, 1:51am UTC](https://wled.discourse.group/t/pwm-range/6266/1 "2022-11-05T01:51:11Z")

</div>

Hello, I’m trying to connect 24V led to my esp32 but can’t make it work properly.  
I’ve try different system, with optocoupler, IRFZ44n and TIP120. But the best result I got is that led turn on only at half the slider and are completely turn on way before the end, so I have almost no ability to dim the strip. (This was thanks to a optocoupler but I had to change the PWM frequency to 150 Hz because the default 19KHz was to much for it).  
All other circuit was flickering, especially when using breath mode, or was just not able to turn leds completely on or off.

Can anyone share a scheme for a 24V strip circuit ? if it can use IRFZ44n or TIP120 it could be great.

By the way, my esp is also connected to ws2812b led and they work perfectly fine. Also I’ve already use IRF’s with arduino so I don’t understand why it’s not working here, maybe the problem come from somewhere else.

Thanks

---

<div class="post-metadata">

**Author:** ![tea](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tea](https://wled.discourse.group/u/tea)\
**Post date:** [November 5, 2022, 12:37pm UTC](https://wled.discourse.group/t/pwm-range/6266/2 "2022-11-05T12:37:57Z")

</div>

Hello there,  
analog LEDs with WLED really just need a N-Mosfet + (usually) a gate resistor. I don’t know about circuits with optocouplers.  
It’s crucial that you match the attributes of the Mosfet to your application. Especially make sure Vgs(th) is under 3,3V as that’s the maximum digital output of ESP32, Vdss is over 24V when using 24V LEDs and that Rds(On) is low enough for your total load.

Here’s the circuit that I use on my custom PCB:

 ![Analog-LED_Driver-Circuit](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/e/e96bb9bd468ae3c745728e27f20b45cf200e7d39.png)

I additionally use a mosfet driver IC, but one could also just short the IO-Pin to the gate resistor. I use these parts:

- SIRA26DP-T1-RE3 ([https://www.digikey.de/de/products/detail/vishay-siliconix/SIRA26DP-T1-RE3/7566708](https://www.digikey.de/de/products/detail/vishay-siliconix/SIRA26DP-T1-RE3/7566708))
- IX4340UE ([https://www.digikey.de/de/products/detail/ixys-integrated-circuits-division/IX4340UE/10477914](https://www.digikey.de/de/products/detail/ixys-integrated-circuits-division/IX4340UE/10477914))
- generic 1R 0805 1% resistor

The circuit works perfectly fine, driving (at the moment) ~7A of 24V CCT High Power LEDs at 78125 hz PWM frequency. Due to the mosfet driver IC even higher PWM frequencies would be possible but I haven’t tested more than 100khz (which worked).  
I guess those aren’t Aliexpress-available parts and they are no replacement for you TO-220 parts, but maybe the schematics or the attributes of the parts may help you.

---

<div class="post-metadata">

**Author:** ![SachaBellier](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@SachaBellier](https://wled.discourse.group/u/SachaBellier)\
**Post date:** [November 5, 2022, 1:33pm UTC](https://wled.discourse.group/t/pwm-range/6266/3 "2022-11-05T13:33:45Z")

</div>

Okay, thanks, I’ll check to use a mosfet driver, but I can’t weld SMD parts, so I’ll try to find a different one.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [November 5, 2022, 3:49pm UTC](https://wled.discourse.group/t/pwm-range/6266/4 "2022-11-05T15:49:13Z")

</div>

You are using MOSFET that requires quite high gate voltage to fully open. Use one of the recommended MOSFETS from KB. What you want is MOSFET that opens with 3V at gate.

[https://kno.wled.ge/basics/getting-started/](https://kno.wled.ge/basics/getting-started/)

---

<div class="post-metadata">

**Author:** ![SachaBellier](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@SachaBellier](https://wled.discourse.group/u/SachaBellier)\
**Post date:** [November 5, 2022, 4:12pm UTC](https://wled.discourse.group/t/pwm-range/6266/5 "2022-11-05T16:12:51Z")

</div>

Yes I have IRLZ44N on the way but I don’t have them now. But thanks for this link, I was looking for something like this.

---

<div class="post-metadata">

**Author:** ![tea](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tea](https://wled.discourse.group/u/tea)\
**Post date:** [November 5, 2022, 5:43pm UTC](https://wled.discourse.group/t/pwm-range/6266/6 "2022-11-05T17:43:51Z")

</div>

I just remembered that you will also need a second resistor, a pull-down resistor for the mosfet gate to discharge, when you don’t use a mosfet driver like in my schematics above.

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [November 6, 2022, 6:09am UTC](https://wled.discourse.group/t/pwm-range/6266/7 "2022-11-06T06:09:30Z")

</div>

That is included in the KB link above.

---

<div class="post-metadata">

**Author:** ![harueg](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@harueg](https://wled.discourse.group/u/harueg)\
**Post date:** [November 6, 2022, 11:28pm UTC](https://wled.discourse.group/t/pwm-range/6266/8 "2022-11-06T23:28:44Z")

</div>

I am using this one successfully, directly on esp32 output.

> **[PENGLIN 5PCS DC 5V-36V 15A (Max 30A) 400W Dual High-Power MOSFET Trigger Switch...](https://www.amazon.de/PENGLIN-5V-36V-MOSFET-Trigger-0-20KHz/dp/B09Z63BM4M)**
>
> PENGLIN 5PCS DC 5V-36V 15A (Max 30A) 400W Dual High-Power MOSFET Trigger Switch Drive Modul 0-20KHz PWM Einstellung Elektronische Schalter Control Board Motor Speed Control Lampe Helligkeitskontrolle : Amazon.de: Gewerbe, Industrie & Wissenschaft

[http://www.aosmd.com/pdfs/datasheet/AOD4184A.pdf](http://www.aosmd.com/pdfs/datasheet/AOD4184A.pdf)

---

<div class="post-metadata">

**Author:** ![omid3126](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/omid3126/32/8700_2.png) [@omid3126](https://wled.discourse.group/u/omid3126)\
**Post date:** [December 4, 2024, 8:25am UTC](https://wled.discourse.group/t/pwm-range/6266/9 "2024-12-04T08:25:34Z")

</div>

this one is very interesting solution why nobody talk about this module?

---

<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:** [December 4, 2024, 1:16pm UTC](https://wled.discourse.group/t/pwm-range/6266/10 "2024-12-04T13:16:01Z")

</div>

> [@harueg](#):
>
> [PENGLIN 10 STÜCKE DC 5 V-36 V 15 A (max. 30 A) 400 W Dual-Hochleistungs-MOSFET-Triggerschalter-Antriebsmodul 0-20 kHz PWM-Anpassung Elektronische Schaltersteuerplatine : Amazon.de: Gewerbe, Industrie & Wissenschaft](https://www.amazon.de/PENGLIN-5V-36V-MOSFET-Trigger-0-20KHz/dp/B09Z63BM4M)

Specs for that MOSFET look OK (not spectacular) for a direct 3.3V drive.  
If you include a levelshifter in your setup (to bring the drive voltage up to 5V). those devices become a better choice.

The maximum current ratings need to taken with a grain of salt.  
The spec sheet for that MOSFET say you’re realistically limited to something like 10A of current and depending on the LED voltage it can be much less to stay in the Safe Operating Area (at 100% brightness).

Overall they may work reasonably well depending on your setup.

---

<div class="post-metadata">

**Author:** ![omid3126](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/omid3126/32/8700_2.png) [@omid3126](https://wled.discourse.group/u/omid3126)\
**Post date:** [December 5, 2024, 7:14pm UTC](https://wled.discourse.group/t/pwm-range/6266/11 "2024-12-05T19:14:26Z")

</div>

The module I bought claim that the tigger voltage is from 3.3 -20V

[https://a.aliexpress.com/\_mtxswXV](https://a.aliexpress.com/_mtxswXV)

I tested it works without logic shifter

---

<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:** [December 6, 2024, 1:17am UTC](https://wled.discourse.group/t/pwm-range/6266/12 "2024-12-06T01:17:05Z")

</div>

As I mentioned, they may work depending on how much current you need them to provide in worst case.

In general raising the gate trigger voltage (which the levelshifter will do), improves the current the devices can carry (within limits).

---

<div class="post-metadata">

**Author:** ![harueg](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@harueg](https://wled.discourse.group/u/harueg)\
**Post date:** [March 3, 2025, 4:24pm UTC](https://wled.discourse.group/t/pwm-range/6266/13 "2025-03-03T16:24:18Z")

</div>

For finished products, we always use ADUMs as level shifter.  
the mosfet then has a lower internal resistance.
