In this tutorial I’m going to go over the
basics of a popular transistor and show you how you can use it to control different gadgets. What is a transistor? A transistor is a device that allows you to
use small changes in voltage to switch things on and off. They are kind of like a valve in your plumbing
system but instead of controlling the flow of water, you’re controlling the flow of electric current. To make things as simple as possible I’m only
going to talk about the easiest type of transistor to work with: The N-channel MOSFET. Basically they work like this: When the transistor is off, no current can flow.
So it’s as if one of the power wires on your gadget has been disconnected so obviously the gadget will stay off. When the transistor is on current can flow
and it’s like both of the power wires on your gadget are connected now so the gadget
will activate. So where can you get an N-channel MOSFET? Well there are many different types of N-channel
MOSFETs but they all work in pretty much the same way. You can get an N-channel FET from Radio Shack or you can scavenge them from from old computer hardware. They usually look like this. Google the part number on the transistor to
double check exactly what you’re working with. Here I have an IRFZ44. Anything else you need? Well in addition to the transistor, you’re going
to need a couple of other things. You’re going to need the gadget that you want to switch on and off.
And I’m going to use a car’s headlight as an example here. You’re going to need an external voltage supply that
your gadget would normally require. And in this case it would be the car’s twelve volt
battery. And finally you will need some sort of signal
that is either 0 volts or 5 volts. Basically a digital logic signal… and I’ll give you a few examples later. Okay so you’ve got all that? Let’s talk about
how you connect the transistor. N-channel MOSFETs always have 3 pins
called Gate, Drain, and Source. I know the names are kind of funny sounding
but you will have to memorize them. Gate Drain, and Source. Drain is the pin that current will drain into.
Source is the pin that current will flow out of. And Gate is the pin that will turn the transistor
on and off, kind of like how a water gate valve will control the flow of water. Connect up the transistor like this: The source is connected to your circuit ground. Connect the negative side of your load to the
drain of your transistor. Connect the positive side of your load to
the positive terminal of your external power supply. Now whether the transistor is off or on will
depend on whether the gate is at 0 volts or 5 volts. Here is the equivalent circuit when the gate is at 0V. The transistor stays off, so no current can
flow, so the headlights stays off. Here is the equivalent circuit when the gate
is at 5V. The transistor turns on and starts acting like a very low resistance current
path so current can flow. Current will flow from the power supply through
to your load, into the drain of the transistor, and then out from the source of your transistor into
ground. So when the transistor is on, your gadget will turn on too. Now let’s talk a little more about the signaling
voltages that are going to the gate. There are a lot of different ways to do it and
that’s why transistors are so much fun. Here is an example with a little mercury vibration
switch to turn on the transistor. When you hit the switch, the gates receives five
volts so the transistor turns on. Here’s an example with a computer’s parallel
port pins. When the parallel port outputs a 1 (which would
be five volts) The transistor turns on. And here’s another example with a 6 volt
solar cell. When the light shines on solar cell, the gate receives at least five volts, so the
transistor turns on. And there are hundreds of other ways you could
switch the transistor on so basically you can control anything with anything. Now I would like to clarify something for safety’s
sake. Over here on the gate side, you want
to keep the signaling voltages less than fifteen volts. 0-5V is fine, 0-12V is fine but if you try to signal things with a 0 to 30V signal
you will blow something up. However on the Drain side of things you have
a lot more freedom in the voltages you can use. The only limitation is what the transistor can
handle. This IRFZ44 is rated for up to 60V so it can switch 12V
loads, 50V loads, whatever I want all the way up to 60V DC. So I could switch LEDs on and off. I could
switch a string of low voltage christmas lights on or off. If you add a diode over here you can switch a motor
on and off, or switch a solenoid on and off, or switch a relay on and off. And once you have a relay being switched you can switch light bulbs on and off, you can switch toaster
ovens on and off and you can switch your refrigerator on and off. Basically if you can get a system that puts out a 0 to 5V signal, you can
attach a transistor to it and you’ll be able to switch any gadget on and off. Now remember, I just showed you the basics of
one type of transistor. There are many kinds of transistors out there with many different
operating modes. If you are interested in learning about other kinds of transistors, google “NPN transistor tutorial” “PNP transistor
tutorial” “P channel MOSFET tutorial” and “JFET tutorial.” That should be enough to give you a headache. But for now, you know how to use an N-channel
MOSFET and that is all you need to turn any DC powered device on or off.
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!
…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).
does the transistor add more power if your power source has a low current output???
DUDE best tutorial ever … learned alot from this video THANKS
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!
Thank you, I finally get it
This is the most neurotransmitter efficient tutorial I've seen for a long time. Straight to the point, clear and precise. Thanks!
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!!
your channel is funny , I love it
I don't understand. My 5V and 12V have the same ground?
Can I turn my girlfriend on/off?
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?
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! 🙂
It's PTC
great video!. just wonder… is there a difference in switching the hot wire vs the ground?
Long lost brother
thx a lot
Wow nice thanks 🙂
very good
on and off!
Best video for noobs like me trying to learn all these weird things. Thank you!
yorumlama çok güzel
Nice tutorial for beginners just what I needed to get a bit of reassurance and a confident start. Thanks and keep it up.
A good introduction to transistor switching.
great tutorial. tnx a lot
Can you create a video how to check D882P npn transistor
insted of k2313 which transister can I use boss
Please help me!, How to dirve n channel mosfet on high side
what is the difference between a transistor and a mosfet? thanks
Perfect. Thank You!
ONANDOFF
Does there need to be some resistance between ground and the gate if connecting them directly?
Can I add some capacitors to fade a led strip with just a reed switch without an mcu?
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???
So essentially it's a solid state relay……..
10 years later….
I am keep watching this guide.
And i can confirm that i am a changed man now.
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.
Is it required for the source to be connected to the ground? Or could you have the mosfet between the load and positive rail?
Quite interesting
You are making electronics way easier and much fun. Thank you very much Sir.
what song is it now?
first a 0V or 5V logic signal. Then…the world.
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
Use Minecraft
So it's a small solenoid ?
how would I code to get the MOSFET attached to a load to turn on or off?
very useful….
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?
here we are use Relay also so why are use MOSFET?
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.
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?
Thank you! This is exactly the introductory tutorial I was looking for.
Just wondering, shouldn’t I add the mosfet before the load instead of negative path or it doesnt matter?
Greatscott may be the buzz now but Afrotechmods will always be the OG
You are excellent Electronic Engineer 🛠⚒⚒🔩⚒🔧 Good explanation keep it up 👏👏👏👏
Best tutorial of all time. Afrotechmods is a gifted teacher.
can any one tell me
transistor P105n3LL can be replaced with any other transistor.
So this is for a low side driver then?
Hello, sir how to test the Mosfet conditions, it's good or bad? Using digital multi meter,
I don't know if you can help me or not. I am trying to find a N-MOSFET IRF1342 but I cannot seem to find it. I am trying to make a MOSFET Trigger for a airsoft minigun that allow's it to fire continuously with out it over heating. Is there a substitution? How do I know what to look for?
If you can help me I would greatly appreciate it.
This is the most direct video ive seen so far.. very easy to understand!
Wow! This is how you are supposed to do a youtube tutorial!
I always thought drain and source was the wrong way around.
I had so much trouble getting these to work, but I made a simple motor controller. it was running below 1amp. I need to make a board which can handle 40 amp 48v …
1:46 oh wow finally I understand why the drain and source were reverse than the mental model I was using 😀
Thanks, was very useful.
👍👍👍
4:23 oh god…
So…what makes it different from a relay?u can control the current pass through it ?
Sir how about igbt ? Tutorial pls 🙂
Hopefully someone can answer this: why can't a potentiometer be used with a resistor to vary the resistance of a load like an LED or fan as opposed to using a potentiometer with a mosfet? Assume the load is around 5A at 12VDC and uses a 100K pot and 3ohm resistor.
Short and straightforward. I've seen many student of technical schools who doesn't get it. Nice video.
This man's voice.
thanks for the help!
MOSFET
Mosfet
Mossfet
Mossfret
Mossfrit
Mossfruit :O
M o s s f r u i t
Ok, but why would I use a transistor to turn something on and off if I can do it with a simple switch? What is the advantage of using a transistor? I am new to this, sorry for such a basic question.
Can you do a video on the z44n with a variable switch I'm having a hard time
You know the video is old when he mentions the parralel port
Crocus or really use full to our life 😊😊😊😊😊😊
sir can you give link for ' need of number which is printed on mosfet'
goddamn it! 11 years later, it still hold it's worth!
Why is there only 14k likes, easiest tutorial to understand on yt ive seen.
4:05 made me to subscribe this channel.
This is what i was searching.
In a single video you had explained everything.
Please provide direction of diode to be used with solenoid.
L interruttore elettronico
many similar types of MOSFETs and their specs can be viewed at https://www.onsemi.com/PowerSolutions/parametrics/809/products
very well
but why is the diode so important to switch a dc motor on and of
can we switch the dc motor without a diode
Well done, thanks.
C3355 transistor can be equalent?
Great
Hi one question how to chose the right zener diode to protect the mosfet from voltage spike?
Radio Shack… I haven’t heard this name in a long time…
Is a transistor just like a mechanical relay or there is something more to it?
Nice try but fail! Your description has an error….if you apply 5v to gate to turn it on, then remove the 5v from the gate & leave it hanging in space the device will remain on between D-S…until…you apply 0v to the gate to discharge the gate which will turn it off…
Excellent ! Subscribed .
That was awesome. Very easy to follow and super cool information. Thanks a million. I'm going be using transistors in an upcoming project and wanted to understand them a little better. This was great!
oooh please give us more headaches.
👍👍👍👍👍🌹
Head ache…😆🤣