MOSFET IRF540 using as a switch

Status
Not open for further replies.

jay_3189

Banned
Joined
Sep 19, 2013
Messages
104
Helped
0
Reputation
0
Reaction score
0
Trophy points
16
Location
Ahmedabad
Visit site
Activity points
0
Hello Everyone


I have used above circuit to start solenoid valve(24V and 1A) ON and OFF but when I have done for 6 solenoid valve its not working as my controller's pin get ON and OFF as per delay. so, what could be the problem. is the above circuit right or below circuit?

 

you can use above topology. but for 1 amp load, you may change 1N4148 diode.
how much voltage given at controller pin.?
 

The diode may be OK but I would have used something like a 1N400x personally.
The most likely problem is that you are not fully driving the MOSFET. With some conduction it may be able to handle a single solenoid but with the extra current demanded by 6 of them it may not be coping. To allow it to pass enough current you need a voltage of at least 6.6V on the controller pin, somethng like 10V would be better.

Brian.
 

Something like 1N4001 prefer than 1N4148. set your mosfet driving at saturation region for this purpose.
 

you can use above topology. but for 1 amp load, you may change 1N4148 diode.
how much voltage given at controller pin.?

ok I am using 1N4007 and at controller pin output is 5V but I am not getting 5V exactly rather I am getting only 2V or 3V. again my solenoid valve not get ON that I don't know what's the problem. I am using above circuit.

- - - Updated - - -


how could I give more voltage at tht point with same controller(89C51). and again as per IRF540 Datasheet gate threshold voltage is only between 2V to 4V.

- - - Updated - - -

Something like 1N4001 prefer than 1N4148. set your mosfet driving at saturation region for this purpose.

will you please elaborate that "set your mosfet driving at saturation region for this purpose".
 

You didn't yet mention 8051. It has open drain outputs with weak pull-ups instead of regular push-pull outputs. As a simple solution, you can place strong (e.g. 1k) pull-ups. If you also want safe reset behaviour, an inverting driver (like 74HC04) between 8051 and MOSFET is suggested.
 

and again as per IRF540 Datasheet gate threshold voltage is only between 2V to 4V
This is not good enough. Threshold voltage means it just starts to conduct at that gate voltage. This MOSFET does not fully turn on until 10v. You need a "logic level FET", like the Fairchild FQP30N06L. Plus you still need to get the gate drive up to 5v as FvM said.
 
Reactions: FvM

    FvM

    Points: 2
    Helpful Answer Positive Rating

is 8051 not have internal pull ups in port - 2? I have read it in at89c51 datasheet.
 

is 8051 not have internal pull ups in port - 2? I have read it in at89c51 datasheet.
You are pulling down with 11k. That forms a voltage divider with any internal pullups. Why Is R1= 10k? Are you worried about slow turnoff?
 

You are pulling down with 11k. That forms a voltage divider with any internal pullups. Why Is R1= 10k? Are you worried about slow turnoff?

yes for fast response I have kept 10k. but now I am thinking to keep it as 100kOhms.
 
Last edited:

is 8051 not have internal pull ups in port - 2? I have read it in at89c51 datasheet.
You should read the datasheet completely. Not only about existence of pull-up resistors, also the expectable resistance value. Then calculate.

Internal pull-ups can turn the MOSFET on, but only quite slowly.

There's by the way no reasonable function of the pull-down resistor at the gate. Instead of changing it to 100k, you can just omit it. During power-up and processor reset, the internal pull-up resistor will override the pull-down resistor and turn the MOSFET on. Placing an inverter is the only way to avoid this probably unwanted behaviour.
 
Last edited:


ok can i use 10k as pullup resistor?
could there any problem or damage with MOSFET or controller's pin if i will remove both 1k and 10k resistors?
what is the need for inverter ic (74HC04)?
 


could there any problem or damage with MOSFET or controller's pin if i will remove both 1k and 10k resistors?
what is the need for inverter ic (74HC04)?
I would keep the series resistor.

If a short activation of solenoid valve during power-on isn't a problem you don't need an inverter.

if you are using atmel 8051 series microcontroller then you shuld isolate your microcontroller from solenoid using optocoupler.
Why particularly?
 

ok thank you all as I solved problem by connecting 5V supply externally to my circuit and its working fine now.

but now problem is microcontroller will give only 2 to 3V output at all pin of port 2. so, how could I increase it to 5V. is pullup is right solution or other thing?
 

ok thank you all as I solved problem by connecting 5V supply externally to my circuit and its working fine now.
It may be working with one IRF540, but if you are designing for mass production, the IRF540 is not guaranteed to switch fully on at 5 volts of gate drive. You need a logic level FET.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…