EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: made2hack on June 09, 2015, 07:31:06 pm

Title: mosfet pwm
Post by: made2hack on June 09, 2015, 07:31:06 pm
Hello,

So I want to use a mosfet to run a high power / high voltage led 31-36V @ 350mA - 1100mA.

I've chosen a KSP13 NPN transistor, a IRF830 Mosfet, a Nichia LED and some resistors. The power supply is 36VDC.

Here's the schematic.
(http://i.imgur.com/Tzmtw6L.png)

Here are the datasheets:
Fairchild KSP13 (https://www.fairchildsemi.com/datasheets/KS/KSP13.pdf)
IRF830 (http://www.vishay.com/docs/91063/91063.pdf)

Some questions:
1 - Am I keeping the Vgs < 20 V by using the top 10K resistor and the bottom 10k + npn as voltage divider?
2 - The max Vce for the NPN is 30V, is this being exceeded?
3 - Will this work?

Title: Re: mosfet pwm
Post by: TimFox on June 09, 2015, 07:36:47 pm
1.  When the transistor is ON, the two resistors should give about 18 V at the MOSFET gate.  However, this requires a drive voltage to the bipolar of at least 20 V, since the emitter would be at 18 V.  Probably better to ground the emitter and put R2 from the collector to ground.
2.  Yes, when the transistor is OFF, there would be 36 V from collector to emitter.  If you ground the emitter and put R2 from collector to ground, then the maximum voltage would be only 18 V.
3.  With these two suggestions, it might work.  It depends on the switching frequency and the device capacitances.
Title: Re: mosfet pwm
Post by: PSR B1257 on June 09, 2015, 07:37:47 pm
That will not work.
With the 63 Ohm resistor at the source of the MOSFET the voltage drop even at 350mA is too high.

You don't need the BJT to drive the gate. All you need is a series resistor to the gate and a 15V Zener diode from gate to GND (with no source resistor). This will work for frequencies <10kHz or so.

Quote
IRF830
Oh dear... This sucker won't stay cold even at a lousy 1.1A.
Title: Re: mosfet pwm
Post by: TimFox on June 09, 2015, 07:40:16 pm
My bad:  I didn't notice the 63 ohm value on R4.
If this is PWM, what peak current for what duty factor do you want?
Title: Re: mosfet pwm
Post by: Simon on June 09, 2015, 09:04:41 pm
R4 should be the other side of the resistors whatever it's value. You would be best to use a zener in parallel with the mosfet gate and pull that high with a resistor, then ground the gate with the BJT or use a high side switch to the gate with a resistor devider so that when not powered it pulls low else it pulls high based on the resistor ratio, what you have will put 36V into the mosfet.
Title: Re: mosfet pwm
Post by: alsetalokin4017 on June 09, 2015, 11:30:52 pm
That will not work.
With the 63 Ohm resistor at the source of the MOSFET the voltage drop even at 350mA is too high.

You don't need the BJT to drive the gate. All you need is a series resistor to the gate and a 15V Zener diode from gate to GND (with no source resistor). This will work for frequencies <10kHz or so.

Quote
IRF830
Oh dear... This sucker won't stay cold even at a lousy 1.1A.

Yep. I'd use this method, and IRF3205.
Title: Re: mosfet pwm
Post by: made2hack on June 10, 2015, 11:36:38 am
Ok,

so did I get this right?

(http://i.imgur.com/nbYhLRA.png)

Or do I still need to pull down the Gate separately?
Title: Re: mosfet pwm
Post by: Simon on June 10, 2015, 11:37:44 am
put a 100K resistor across the gate to ground
Title: Re: mosfet pwm
Post by: Andy Watson on June 10, 2015, 11:42:50 am
Put a resistor between the fet and the led.
Title: Re: mosfet pwm
Post by: made2hack on June 10, 2015, 12:57:26 pm
@andy - does it matter if I put the resistor from source to gnd? or does it hve to be on cathode of led to drain?
Title: Re: mosfet pwm
Post by: Andy Watson on June 10, 2015, 01:08:54 pm
If you put  the resistor in the source it will work against the control voltage on the gate - I think this is not what you desire in this case - i.e. you want the fet to operate as a switch - keep it out of its linear region to reduce its power dissipation.  Put the resistor in the drain circuit to limit the maximum current through the LED - in the anode or cathode, either will do.
Title: Re: mosfet pwm
Post by: PSR B1257 on June 10, 2015, 02:55:48 pm
Quote
so did I get this right?
Yes. But if you really have a PWM with an amplitude of 36V you have to choose a higher value resistor, 10k for instance.
What frequency are you applying?
Title: Re: mosfet pwm
Post by: made2hack on June 10, 2015, 03:48:19 pm
Quote
so did I get this right?
Yes. But if you really have a PWM with an amplitude of 36V you have to choose a higher value resistor, 10k for instance.
What frequency are you applying?

Amplitude will not be 36V. I did not bother drawing the PWM schematic. It will either be around 12V if I use a 555 or 3.3V if I use an MSP430.

Frequency? I don't really know. Whatever a 555 chip will do in terms of PWM in the range of duty cycle from 0% - 100% ?
As for using the MSP430, don't know what duty cycle. Whichever dims the LED properly  :-\


Title: Re: mosfet pwm
Post by: PSR B1257 on June 10, 2015, 04:26:50 pm
Quote
Amplitude will not be 36V.
O.k. Misunderstanding...

Quote
It will either be around 12V if I use a 555 or 3.3V if I use an MSP430.
In this case you don't even need the Zener. You can drive the MOSFET directly (100..1k gate resistor to prevent too high surge currents to/from the gate) from 12V. 3.3V however is a bit of a challenge.
If you gor for a IRLZ44N you're fine. This MOSFET can be driven from VGS=2.5 to 15V

Quote
Frequency? I don't really know. Whatever a 555 chip will do in terms of PWM in the range of duty cycle from 0% - 100% ?
Since you tell the 555 at frequency it has to work, you should know  ;)
1kHz will do the trick.