IRF540 will suitable for switching positive supply..?
"will It work under 5voltage to gate"?*
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
This question have been asked too many times , i will try to guide you to on what to search for :
It poses a challenge since you need to create 5v or 12v on Vgs not with respect to ground which can means the gate to ground voltagge is higher than supply voltage .
Solutions for this problem
a-you either use a P-channel mosfet
b-use some kind of high side driver ( isolated /floating supply , transformer coupled drive, bootstrap , charge pump ) , there is literally thousands of articles on the internet regarding this subject and too many ICs and solutions.
IRF540 will suitable for switching positive supply
Not effectively unless you use a much larger gate voltage or a P channel device such as the IRF9540. If you can switch the negative end of the load then it's much easier. Read on. If you look in the IRF540 data sheet you will find this graph: -
I've highlighted in red the characteristic of drain current versus DS voltage when the gate voltage is 5 volts. In blue I've chosen a drain current of 10 amps (approximately) and, as you can see, the resulting DS volt drop could be around 1 volt. This will dissipate 10 watts.
We don't know, from your question, what load you are considering but, when you do decide, the graph above will tell you how much wasted power you will get.
Make sure you don't exceed the voltage ratings for the device too and if you are switching an inductive load, you will likely need a flyback diode.
Here's the general idea when using a P channel MOSFET but be aware you can ONLY use this when the supply voltage (12 volt in the below example) does not get above 19 volts because the gate voltage specification could be exceeded: -