Hey there, I am struggling to control this mosfet with PWM on different settings. The mosfet I am using is an IRLZ44Z, and the range I'll be using is between 0-100V and 0-20A.
It is to put a load on a PSU but it's difficult to be accurate with different voltage values. Does anyone have an idea to solve this problem?
I thought it might be possible to calculate the values but I am not sure if it will be too much for Arduino
From the datasheet of the MOSFET:
VDSS = 55V
ID = 51A
So that's the wrong type of MOSFET for the voltage you're trying to switch.
I'm not sure what you mean by this. You'd have to explain in a bit more detail what you're actually trying to achieve.
In your schematic I see a 100uH inductor whose top connection is not clear (where does the righ-hand node go to?), and also something that looks like a fairly large (given the current levels you mention) shunt resistor with no clear purpose.
Btw, do you realize that 20A through 1 Ohm means a voltage drop of 20V, which will create massive problems in how you're trying to drive that MOSFET?
I'd also reconsider the 15k gate resistor; it'll dramatically reduce fast switching performance. What kind of PWM frequencies do you have in mind?
please put a free-wheeling diode across your inductor, with the anode next to the MOSFET, cathode towards LOAD terminal top right (diode "arrow" pointing UP).
If you leave it the way it is, the inductor's back EMF spike when the PWM switches the MOSFET "off" will fry the MOSFET really fast.
I am trying to create a simulation for power supplies. So they will be in a constant load and monitored at the same time. But because there is a variety of units the voltage and amps will be changing before the simulations start.
because I am running the PWM around 21kHz-36kHz. And the coil is there so that the load will be constant. My bad the resistance what is there isn't 15k anymore it's 12k now.
This is for both that the Arduino won't get fried and it is for the mosfet to close completely. because if you want the mosfet to close completely you need to have less voltage on the gate side with the source side. on the n channel mosfets
I can try that because this setup was recommended to my mentor, but I can try this!
we tried to max the voltage to 3.7v so there was a 12k to the gate and 15k to the ground. But it might've not been needed. but now that you ask I am not sure why it is there besides the possible Arduino frying.
I am using an Arduinomega2560. And I am directly controlling the PWM with a screen.(4D systems to be exact gen4-uLCD-50D) so it's from 0 to 255 PWM by hand for now because I need to figure out the amp difference in voltages.
because it is PWM with a high frequency the mosfet will be turned of and off real quick. so it doesn't get that hot. but I have a heatsink on it for now. because I am still in a "test phase" you can say.
That circuit is the basic way you control a MOSFET with PWM and low side switching.
R1 == 470R will current limit the gate current under high frequency PWM signals.
R2 == 10K will ensure while the 2560 is offline or booting that the MOSFET is OFF.
The load has to be in the Drain circuit because the MOSFET is controlled by a positive voltage on the gate with respect to the Source.
The source has to be at gnd, because your PWM signal from the 2560 is a voltage signal with respect to its gnd.