HomeНаука и техникаRelated VideosMore From: Afrotechmods

Transistor / MOSFET tutorial

13633 ratings | 3085947 views
How to use an N channel MOSFET (a type of transistor) to turn anything on and off! Also, remember to put a 100k resistor between gate and ground if you want your FET to stay off by default. IRFZ44 MOSFETs on Amazon: http://www.amazon.com/exec/obidos/ASIN/B00CFEVJ7M/afromods-20 Main tutorial webpage: http://www.afrotechmods.com
Html code for embedding videos on your blog
Text Comments (1012)
kamran afridi (5 days ago)
can any one tell me transistor P105n3LL can be replaced with any other transistor.
kieferonline (14 days ago)
Best tutorial of all time. Afrotechmods is a gifted teacher.
Prince fernandes (14 days ago)
You are excellent Electronic Engineer 🛠⚒⚒🔩⚒🔧 Good explanation keep it up 👏👏👏👏
Jerry Christensen (14 days ago)
Greatscott may be the buzz now but Afrotechmods will always be the OG
Petr Sourek (20 days ago)
Just wondering, shouldn’t I add the mosfet before the load instead of negative path or it doesnt matter?
Mike Collins (27 days ago)
Thank you! This is _exactly_ the introductory tutorial I was looking for.
Emmett Turner (27 days ago)
What does the diode do for a DC motor or any of the other things that require it? Shouldn’t they turn on and off without it, just like a light?
Bartosz Olszewski (1 month ago)
Is resistance of the Drain lower on the pin or the heatplate? I can't find that information in the datasheet, as the heatplate probably wasn't designed for it, but I thought maybe it had more direct connection to the die. Very good video.
shrikant koli (2 months ago)
here we are use Relay also so why are use MOSFET?
spelunkerd (2 months ago)
I'm a little confused as to why the solid arrow inside the transistor points toward the +12V drain, yet the hollow arrow inside an LED points in the direction of conventional (+) current. It would have been so much easier to remember one convention for arrow notation.... Can anybody think of why they chose that more confusing notation?
Kiran's Tech Hobbies (2 months ago)
very useful....
Taran Agnew (2 months ago)
how would I code to get the MOSFET attached to a load to turn on or off?
brainbah (3 months ago)
So it's a small solenoid ?
Alan Dong (3 months ago)
Use Minecraft
kim kang (4 months ago)
question. at minute 1.55 . Drain is input , Source is output. But why at 2.59 minture. when it has current 5v go to mosfet at gate. then the source has arrow go up to drain and light OPEN. am i understand correct. that 5v input go to gate . then the power wil go to Source and Output at drain. and ligth turn on. another question. why it has 12 v at drain
FirstInstruMentalist (4 months ago)
first a 0V or 5V logic signal. Then...the world.
Mainkordor Mawblei (4 months ago)
what song is it now?
michael kayeka (5 months ago)
You are making electronics way easier and much fun. Thank you very much Sir.
Mandela Nelson (5 months ago)
Quite interesting
keco185 (5 months ago)
Is it required for the source to be connected to the ground? Or could you have the mosfet between the load and positive rail?
Not Legato (5 months ago)
why is the diode inside the schematic drawn backwards w.r.t. to the current? is it some electron vs. conventional current? seems hugely impractical, as normal diodes are drawn with conventional current in mind. don't see why this would be.
Tukang Foto (5 months ago)
10 years later.... I am keep watching this guide. And i can confirm that i am a changed man now.
Aaron West (5 months ago)
So essentially it's a solid state relay........
Achyut Bhattacharya (5 months ago)
This is to inform you that my IRFZ44 MOSFET is not working as you mentioned over here once I am giving it the +5v signal to its gate and the -5v signal to the circuit groung then it becomes on but after that when I am giving 0v to the gate then also it is not getting off it stays on until or unless I reverse the polarity of my 5v signaling source I mean -5v on the gate and +5v on the circuit ground so can you help me regarding this problem???
Kool Zombie (7 months ago)
Can I add some capacitors to fade a led strip with just a reed switch without an mcu?
pleasecho2 (7 months ago)
Does there need to be some resistance between ground and the gate if connecting them directly?
Matthew Hunkins (7 months ago)
Canal AssisTec (7 months ago)
Perfect. Thank You!
Ed KE6BNL (8 months ago)
what is the difference between a transistor and a mosfet? thanks
Reza Fauzi (8 months ago)
Please help me!, How to dirve n channel mosfet on high side
Kishoreyenishetty Kumar (8 months ago)
insted of k2313 which transister can I use boss
Arunkumar U.k (8 months ago)
Can you create a video how to check D882P npn transistor
amir (8 months ago)
great tutorial. tnx a lot
A good introduction to transistor switching.
James Stork (9 months ago)
Nice tutorial for beginners just what I needed to get a bit of reassurance and a confident start. Thanks and keep it up.
akif apaydın (9 months ago)
yorumlama çok güzel
Paul Shorey (9 months ago)
Best video for noobs like me trying to learn all these weird things. Thank you!
ENTONG LU (9 months ago)
on and off!
MKF Mahmoud (10 months ago)
...____|____ .../ \ now we have a beautiful transistor symbol 😆
mark ben (10 months ago)
very good
Peter ppeetteerr (10 months ago)
Wow nice thanks :)
Sound (11 months ago)
after turning the mosfet on by giving 5v at gate....... if we give 0v at gate,will it become off again?
Lei SONG (11 months ago)
thx a lot
Afro Fantom (11 months ago)
Long lost brother
gerardopenya (11 months ago)
great video!. just wonder... is there a difference in switching the hot wire vs the ground?
Margrista Sandwi S. (11 months ago)
It's PTC
Barry Kent (11 months ago)
Yes, but can you swich the motor faster or slower, depending on the gates voltage??? Is there any type of transistor which can do it? This is all I need to be happy! :)
Barry Kent (11 months ago)
Please, help me! :(
Barry Kent (11 months ago)
Hi, I'm complete green idiotwith electronics.... I have one question, if you could help me. I know there are adjustable potentiometers, howether, I need potentiometer you can adjust not by hand, but but voltage. Hmmm, probably I'm writing tyrange things, so in short: I need to change voltage, similarly as adjustable potentiometers do, bu not by hand, byt by other potentiometers... For example: Potentiometer is set to 1 to 1 (just letting everything go as it is - (5V). But there is other potentiometer which is sending 0.5V to the "main potentiometer" and - yes, it's easy for now, but, I want to change potentiometer value to 0.5V, not by hand, but by voltage.... I'm sorry if you do not understand anything - I have no idea how electronics, even analog works. I prefer analog in this case. Instead of using my scewdriver, is it possible to set the potentiometer just by voltage sent to it? Is this possible?
Aman Kidane (11 months ago)
Can I turn my girlfriend on/off?
MrGeekGamer (1 year ago)
I don't understand. My 5V and 12V have the same ground?
Dave Weston (18 days ago)
MrGeekGamer the sharks & the jets had that issue.
pockeybear milk (1 year ago)
your channel is funny , I love it
Rogelio Tamala (1 year ago)
Hi! ca u show how to connect diode from drain flange to the positive line of the load using an airsoft motor? tnx. and Godbless!!
idlando (1 year ago)
This is the most neurotransmitter efficient tutorial I've seen for a long time. Straight to the point, clear and precise. Thanks!
Rafael Roman (1 year ago)
Thank you, I finally get it
Midnight Mechanic (1 year ago)
Most fun to be had out of these is when building a 12~14.6VDC car amplifier or radio head unit, coupled with a few high power capacitors to really crank out the sound. What I'm confused about is when a radio head unit is supposedly rated at 50 watts MOSFET for 4 channels each, yet expects to pull all that power (at least 200 watts) through the little tiny gauge ACC power wire. The memory wire has to be attached to for the radio to work correctly, but there is no way in hell that radio is pulling anywhere near 200 watts RMS without frying wires! The Pioneer amp I'm using outputs 300 watts max, and it uses pretty fat power input and ground wires!
sidowsidow (1 year ago)
DUDE best tutorial ever ... learned alot from this video THANKS
Mr Jn (1 year ago)
does the transistor add more power if your power source has a low current output???
Bodragon (1 year ago)
...But why would you want the bulb on when the sun is shining? Surely you would want the other way round? (PS Yes, I am your designated niggle).
MyBigThing2010 (1 year ago)
wow DUDE! ...this is like the 6th time I've watched this video and I just FINALLY had that "AHA Moment" where everything just aligned in my thick skull and I actually realized WTF is going on in circuits with transistors in them and how to go backwards through them in a LOGICAL way and KNOW what I'm looking at and looking for....I wish this channel had like 3 million subs and you were a full time YouTuber! your videos have spawned a few of those "oooh! that's how it works" moments for me while learning this stuff....I thought it was all alien tech that I'd never be able to learn/understand and your channel has been instrumental in helping me over hurdles...even if I don't know it while watching or feel stupid for not getting what the video was about...down the line I'll look at something and instantly revert back to the info in the video I inadvertently retained and I'll get a better grip of what I'm looking at because if that info...Afrotech University, electronics engineering school. hmmm, I wonder if that would fly if I put it on my resume? haha...nevertheless, I'll say it again. THANK YOU!
Coletrain cole (1 year ago)
Would I connect the gate of the transistor to a switch?
Mihovil Šubaša (1 year ago)
Thank god for one normal tutorial on mosfets. And thank you.
andrewintw (1 year ago)
the tutorial is very clear, thank you.
SubigirlAWD _ (1 year ago)
so it has to be 5v? can it be 2.5 or 3.0 volt on the gate? and can i use an isolated source?
challa mohan (1 year ago)
it is very good but how transistor is going to turn on & off by any other elements r connect to transistor or by direct giving connection to the transistor,can "please send me transistor on and off switch circuit diagram". thank you.
PcProz (1 year ago)
I really love your teaching style. You eliminate the "mystery" from the circuits. Have you ever thought of doing a "full blown" electronics tutorial? I would definitely buy it if you did. Thank you for taking the time to do these vids.
Mix Bag (1 year ago)
what value resistor from arduino pin to Gate pin on IRLR2905 please ?
Tanvir Ahmed (1 year ago)
thanks for explaining things this simply. I have been having difficulty getting to know transistors. But I can head fwd now.
Tridib Bose (1 year ago)
please mention the series of tranistors that needs heat sink
Wuety06 (1 year ago)
Fridge is gonna need 2 assuming ac. I'd also argue that pchannel is best for noobs cause u can simply tie it to ground to turn on
Such a nice presentation. I learn quickly from here!
ronken14 (1 year ago)
Finally, a video about electronic components that even me can understand :D
ege621 (1 year ago)
Hey guys, I need a mosfet that turns on when the gate voltage with respect to ground is 3.5 volts or above. It should stay off below that value. Can I do this with IRFZ44N ?
akshay Kadam (1 year ago)
best tutorial
NoVaKane (1 year ago)
so its a resitor and switch? right? the switch part needs power to allow power to run though. naturally the power will be lower then what is going in because the mossfet has resistance?
NoVaKane (1 year ago)
so its just a switch? the 5 volts is what powers the mossfet switch part right?
trickybilly (1 year ago)
Thank you
Serious Sam (1 year ago)
nice video
Yantosservis Motor (1 year ago)
gak ngrti coy
Ted D (1 year ago)
How can I use this to switch on at 0v and off at 5v? Basically inverse?
James Johnson (8 months ago)
Ted D use a NOT gate
Meme Machine (1 year ago)
Or just use a switch.....
Deldarel (1 year ago)
To people thinking it's a relay. The general purpose is the same, but there are important differences 1. a relay is isolated from the circuit, but a mosfet is not. Drain and Gate share both the Source, meaning that the current of source is gate + drain. Usually this isn't too important, but be sure not to connect a fusion reactor to the gate. 2. Mosfets are much quicker. You really only want a relay at the very end of your circuit, and only use mosfets for this function within the circuit because it doesn't have a built in coil and the moving parts are much much smaller.
El Mahdi Ettaleb (3 days ago)
+Andrzej N yep, always use mosfets at those frequencies
Andrzej N (1 year ago)
Can you use these to make a PWM control for a cooling fan for a car radiator ?
Tom Backhus (1 year ago)
So is it safe to say that, a transistor is like a low voltage(-5v) version of a relay?
Tim Rodriguez (1 year ago)
Is this the same as a relay switch on car/motorcycle?...but of course for a circuit board.
weylin6 (1 year ago)
But what happens if you reverse the order of the Source and Drain? Structurally, what is the difference? There are many diagrams out there showing these to be symmetrical in design, but that is usually false. In PNP/NPN transistors I know it's something to do with doping concentration and thus lower beta when connected wrong.
Fernando Zigunov (1 year ago)
When you realize this video is 8 years old and is still useful... Not many youtubers reach that level!
anonimuso (1 month ago)
But lol at "You can get a transistor from Radio Shack"...
WOFGH (1 month ago)
Nah, I think electronics have updated there terms of service, this doesn't work anymore.
Khalid Anis (1 year ago)
Respectable Author Abdul Samad Gul, Your Lecture on Transistor/MOSFET is excellent. You have excellent power of explanation. I highly appreciate your great effort that you are doing for it's Lerner. God bless you. Yours Lecture Listener: Associate Electrical Engineer Khalid Anis, Y.M.C.A Polytechnic Institute,Karachi, Pakistan.
ATT T (1 year ago)
does it matter to switch the connection of drain and source pin? Why? Thanks
Daren Hua (1 year ago)
so i'm sort of confused, where does the gate connect to? What does the "logic signal" mean? is it like a switch or something
Deldarel (1 year ago)
Logic = 'true or false'. In electronics it's 'high or low' or 'on or off'. You can also use 'boolian' or 'binary' in this case. Logic gates are in simplest term an 'all or nothing' switch. So yeah, they are indeed a switch. These are a lot of words for the same thing that you'll all find a lot in electronics (binary and especially bool are more part of coding, though, but codes are just virtual circuits).
Jonty K. (1 year ago)
great tutorial.....I learned every bit of it....love your work bro.... carry on....
John Michael Stock (1 year ago)
I always thought the drain and source labels were completely back to front to what they actually do. The whole naming convention is old fashioned and obsolete. It should be something like input, output and switch.
Joseph Nicholas (1 year ago)
Yes, I agree totally fucking confusing. Why not just use the same conventions used for a transistor, base, collector, emitter. Even that is ambiguious.
Alphonse Précis (1 year ago)
+anguissette you mean the angry pixies ;-)
John Michael Stock (1 year ago)
Do you know any good "cheat sheets" for PNP/NPN MOSFET and TRANSISTORS? I always keep re-inventing the wheel when I need to get the pin outs.
Golden Grenadier (1 year ago)
Do these work with Pulse width modulation like on an Arduino/Teensy Board?
Afrotechmods (1 year ago)
The gate might not get enough voltage to turn the mosfet on.
Golden Grenadier (1 year ago)
How would a normal MOSFET behave if it were connected to an electric motor and an arduino using PWM to control motor speed?
Afrotechmods (1 year ago)
If you get a logic level MOSFET then sure
Nigel Cooper (1 year ago)
Can you use a battery for the gate signal?
cwk18 (1 year ago)
excellent explanation and analogy, thumb up!
Jon Simanu (1 year ago)
cwk18 just 1 thumb up?
robviolin1 (1 year ago)
very helpful, thanks.
TimeHopeFaith (1 year ago)
Also, what's the difference between putting the mosfet on the positive side of the circuit (where the positive goes to the light bulb) versus the negative side (where the negative side goes to the lightbulb).
TimeHopeFaith (1 year ago)
How do I choose a Mosfet that is reliable for my application? For example, running something that has a high amperage draw. Thank you.
Mohamad Hajj Hassan (1 year ago)
Thank you very much
Mindthegap1110 (1 year ago)
This video explains quite a lot better than my professor at university. I thank you *Afrotechmods*
Mike Pitagan (1 year ago)
great video! noob question: what other alternatives for IRLB3034? having difficulty to acquire that kind of transistor here at our place.
Mitgardxxl (1 year ago)
Very cool video. Thanks for teaching us !!

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.