The Rgs was used to turn off the mosfet when the input is low, sometimes it was used to turn off the mosfet quickly.If anyone has an idea of what is going on without that gate resistor to ground - im intrigued to find out.
The Rgs was used to turn off the mosfet when the input is low, sometimes it was used to turn off the mosfet quickly.If anyone has an idea of what is going on without that gate resistor to ground - im intrigued to find out.
I appreciate the responses!If you like then you can still using the resistor.
I just drawn the normal driver circuit, If you want then you could take the bjt away, and using the port of uC to drive the LED.
The circuit I drawn was the normal application, if input is low then the mosfet will be turn off, if the input is high then the mosfet will be turn on.One issue sorted - the optocoupler does not vary from zero to full.
When the PWM output is at 100% (shorting the gate to ground, therefore should be zero V) i can see that it is only managing to drop to half its max before rising again.
This has to do with the PWM frequency and the optocoupler maybe.
You can also change the mosfet to using the logical level 4.5V for Vgs of mosfet.i just went with the method used in the datasheet as it worked for a high voltage configuration doing the same job but with a 240V bulb and with an IGBT not a mosfet.
Also, why 5V? the mosfet requires 10 to be on fully.
haha that makes way more sense!You can also change the mosfet to using the logical level 4.5V for Vgs of mosfet.
This post just made me realise my stupidity .... i am well aware my pic can only sink/source 25mA but for the duration of this project - my brain forgot to pass that on haha! thanksHere are a few possibilities:
Your FET has a pretty high Rds on of .134 ohms. So at 7 amps it will dissipate 6.5 watts. So even if things are working well it will need a pretty good heat sink.
The 4N24 has a minimum transfer ratio of 20%. Meaning if you need to sink the 7 ma thru the 4.7k you might need to drive the LED in the opto with 35 ma. I doubt your micro can do that.
You really should use a current limiting resistor in series with the opto diode. It will make both the micro and perhaps the opto happier.
Great help with the info! thanks alot!The escape answer is it depends.... If the spec. is 25 ma I would limit it to 25 ma. then your safe.
http://www.ruggedcircuits.com/10-ways-to-destroy-an-arduino/The 4N25 typically has a transfer ratio of 50% but worst is 20. So if you add a 150 ohm in series with the diode you should be ok.
This would let it sink 12.5 ma. or maybe as low as 5ma. You could make your dividers a little bigger and this would also worst case. But my bet is you just need a FET with better Rds on. Usually the lower voltage ones have lower Rds on values.
http://www.mouser.com/ds/2/389/DM00095160-490569.pdf
No gate voltage (unconnected) is not zero gate voltage.................................
EDIT: fixed an issue - with no gate voltage - the mosfet smoked and the bulb was very dim.
I added a 700K resistor from the gate to ground and now it works as expected when applying the gate voltage and removing it!
..............................................
If anyone has an idea of what is going on without that gate resistor to ground - im intrigued to find out.
agreed!No gate voltage (unconnected) is not zero gate voltage.
A MOSFET gate looks like a capacitor and has a very high impedance thus, if left open, the gate can be at any voltage (floating) which can turn on the transistor partially and cause the high power dissipation you noted.
Never leave a MOSFET gate floating.
by Jake Hertz
by Duane Benson
by Jake Hertz
by Aaron Carman