N-Channel MOSFET as a Switch. Turn ON a 12V Motor with Arduino. (Step-By-Step Guide)

Ғылым және технология

This is a tutorial about using an N-Channel Enchantment Type MOSFET as a switch to turn ON and OFF a 12V Motor.
UPDATE:
You should also add a 100-ohm resistor between the Arduino pin and the Gate terminal of the MOSFET. The MOSFET has a small capacitance that starts to charge/discharge when you switch the Arduino pin. This creates a short current spike that can be bad for the Arduino pin. Especially if you plan to do high-frequency switching.
Full connection diagram: circuitjournal.com/img/diagra...
I am using a 30N06L, but you can use some other logic level N-Channel Enchantment Type MOSFET.
Buy from AliExpress.com:
30N06L: s.click.aliexpress.com/e/DdgS25tQ
Disclosure: Bear in mind that some of the links in this post are affiliate links and if you go through them to make a purchase I will earn a commission. Keep in mind that I link these companies and their products because of their quality and not because of the commission I receive from your purchases. The decision is yours, and whether or not you decide to buy something is completely up to you.
Music from KZread library.

Пікірлер: 156

  • @Wandering_Horse
    @Wandering_Horse Жыл бұрын

    3yrs later...Just wanted to say thanks for this. Very concise and to the point. I used a IRL Z44N mosfet and it worked just as you instructed. Using it to control a 12v relay. Thanks!

  • @dogeeatsveggies
    @dogeeatsveggies3 жыл бұрын

    ive been googling videos that will give me a simple ang clear explination about this.. until i found your video. im subbing. thanks man

  • @markschuurman4000
    @markschuurman40003 жыл бұрын

    Very , very clear and to-the-point explanation and demonstration of the issue. Chapeau, my friend! It's just what I needed, in my preffered style!

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    You are welcome!

  • @HeiderSati
    @HeiderSati3 жыл бұрын

    One of the best ones I've seen, thank you for your hard work, loved the graphics too

  • @Creative_Electronics
    @Creative_Electronics4 жыл бұрын

    I just saw you're video of the 3D Printed car and then I looked to you're other video's and you're channel is awesome!!! I like it really much!

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Thanks a lot for the feedback!

  • @mikewalton7615
    @mikewalton76154 жыл бұрын

    You are a excellent teacher! Thank you for the explanation.

  • @snillddy7907
    @snillddy79074 жыл бұрын

    Thank you sooo much for this huge help You don't know how much you helped me , it saved my project from ruining Thanks a lot 👍

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    You are most welcome

  • @user-ez1nf8sl9l
    @user-ez1nf8sl9l Жыл бұрын

    Thank you very much, for explaining things effectively but briefly.

  • @propro123_cz9
    @propro123_cz96 ай бұрын

    best video explaining mosfets! thanks!

  • @juliusferrer2071
    @juliusferrer20717 ай бұрын

    thank you so much you deserve million subscribers!!!!!!!

  • @Creative_Electronics
    @Creative_Electronics4 жыл бұрын

    You should have 1 million subscribers

  • @asdfgasasdfasdf7498
    @asdfgasasdfasdf7498 Жыл бұрын

    Thank you to help me with my problem. After hours of troubleshoting it finaly works

  • @OGmolton1
    @OGmolton13 жыл бұрын

    thanks, needed this, works like magic.

  • @XxPPslayer69
    @XxPPslayer693 жыл бұрын

    best explanation on youtube

  • @Creative_Electronics
    @Creative_Electronics4 жыл бұрын

    It's a really good explaining!! :)

  • @sarthakchaudhary8027

    @sarthakchaudhary8027

    4 жыл бұрын

    Hey creatice electronics, please watch this video call... kzread.info/dash/bejne/i22nsKixZ8jUdrQ.html I explained how mosfet work as switch

  • @Misc_useful
    @Misc_useful3 жыл бұрын

    Crisp and clear explanation

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Thanks!

  • @MagivaIT
    @MagivaIT10 ай бұрын

    great tutorial, many thanks for this

  • @happycrayon7621
    @happycrayon76214 жыл бұрын

    Loved it. You got urself a subscriber.

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Thanks!

  • @hollymedici2936
    @hollymedici29362 жыл бұрын

    thanks got what i needed you er better than most

  • @user-zw6om3sr8d
    @user-zw6om3sr8d Жыл бұрын

    Huge help, thank you so much!!

  • @Becoming_the_best
    @Becoming_the_best Жыл бұрын

    perfect explanation thank you

  • @sameerk12982
    @sameerk129824 жыл бұрын

    Thank you very much for this informative tutorial....appreciated.

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Hey! Thank you for the feedback!

  • @duncansmith8992
    @duncansmith89923 жыл бұрын

    Excellent. Thank you.

  • @sleephourofmotivatwakeupas6512
    @sleephourofmotivatwakeupas65123 жыл бұрын

    The best possible way to explain

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Thanks!

  • @gholiamirza7102
    @gholiamirza71024 жыл бұрын

    Very easy explained. Thanks.

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    I am glad it was helpful. Thank you for the feedback!

  • @puzzlefactorysoundstudios
    @puzzlefactorysoundstudios Жыл бұрын

    Thank you for this great video! Do we need to use a series current-limiting resistor between the gate and the Arduino pin?

  • @sungurtigin7258
    @sungurtigin72583 ай бұрын

    good video

  • @xandersafrunek2151
    @xandersafrunek21513 жыл бұрын

    Yeah I wish they would have started with this application when I first learned about MOSFETs in circuits class.

  • @mymyka1122
    @mymyka11228 ай бұрын

    i owe you my life

  • @laurentiujinga5558
    @laurentiujinga55582 жыл бұрын

    10k label. that is the coolest thing I've seen :) I will use it...

  • @shreyaumesh3978
    @shreyaumesh3978 Жыл бұрын

    Hey, great explanation and very clear instructions! If I wanted to burn a nichrome wire as the ignition of a model rocket instead of the motor, would this work??

  • @adrianantoci1187
    @adrianantoci11873 жыл бұрын

    Thanks!

  • @gdlignos
    @gdlignos2 жыл бұрын

    Hello, this is the best MOSFET video I have seen so far. Could you help me a bit with its expansion? I am using this MOSFET: N-Channel 33A - IRF540N to control lights, but it gets way too hot, even with a heatsink and a fan. What is the proper way to connect multiple MOSFETs to reduce the load at each one, using the same port from Arduino? The guys selling them told me to use a 1k resistor from the digital pin of arduino to the Gate. Is this right? Should I use every time 1k resistor from Arduino to Gate and the 10k resistor G to S on each MOSFET?

  • @haddouchizakariae7713
    @haddouchizakariae77134 жыл бұрын

    merci, danke sehr

  • @Micington
    @Micington3 жыл бұрын

    Legend! Thank you! Can you do multiple motors simultaneously like this?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Yes, since Arduino only turns the motor on and off. The power for the motor comes directly from the power source and as long the power supply is strong enough you can run both.

  • @mcbbcn
    @mcbbcn2 жыл бұрын

    Hi Indrek, thank you for the amazing explanation. You are a great teacher. I have been looking for a way to control a 12V EL panel with an arduino, including dimming/intensity but I can’t find any tutorials. Do you know if it can be done? Thank you!

  • @Talha80777

    @Talha80777

    2 жыл бұрын

    Yes you can easily control a 12v EL panel and in order to control the light intensity you need to provide PWM signal to the gate.

  • @JonCo
    @JonCo Жыл бұрын

    Hi Inderek, Thanks for the very clear explanation on how mosfets work. I'm trying to use a Raspberry Pi Pico instead of Arduino, which has I/O pins at 3.3v. Would the 30N06L turn on with "only" 3.3v at the gate? (is this true for all logic level n channel mosfet?) Or is there a special case of 3.3v logic level mosfet that I need to look for?

  • @Patyx42

    @Patyx42

    6 ай бұрын

    I'm a bit late, but here's the answer: It will turn on, but not fully. Check the datasheet, specifically the Gate-Source Voltage vs Drain Current graph. Looking at it, 3.3V will allow to push around 5A through, where 5V would allow around 50A. I'd recommend the very common IRL540N if you want to drive it with Raspberry.

  • @georgealbo
    @georgealbo2 жыл бұрын

    thanks for this tutorial , i need to use this mosfet for switching load 12 V 1 A @ 5 MHZ is that possible

  • @rochdimaria
    @rochdimaria2 жыл бұрын

    Hi, Can i use this circuit to power on one arduino through the vin pin from another arduino gpio ?

  • @lezzetlideneyimler2746
    @lezzetlideneyimler27463 жыл бұрын

    Thanks, good video. Is Flyback diode necesserally for heater?

  • @billydonahue4039

    @billydonahue4039

    3 жыл бұрын

    Nah. A heater is a resistive load. You only need the flyback diode for inductive loads. The heater doesn't hold any magnetic energy so there's nothing to dissipate.

  • @suhas608
    @suhas6083 жыл бұрын

    Thank you for the video. Just wondering why you use conventional current in your explanation instead of electric current.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Do you mean that why I didn't do the illustration with the negative electron flow? The symbol for the diode is an arrow that points to the direction of positive current flow. If I had used electron flow then the schematic would have been confusing. Electrons will flow in the opposite direction of the diode arrow.

  • @kiranshashiny
    @kiranshashiny3 жыл бұрын

    Nice description and video. Now, I want to control the speed of the motor using the MOSFET - can I do it ?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! Yes, you can use the PWM output.

  • @broncootaku
    @broncootaku2 жыл бұрын

    So this can replace a relay if you a big enough heat sink for your project?

  • @keshavanandbhagat1247
    @keshavanandbhagat12473 жыл бұрын

    Thanks I want ask you can I use it as in bike to turn on and off bike

  • @gedtoon6451
    @gedtoon645110 ай бұрын

    I would use a 470R gate resistor to reduce the inrush current as the MOSFET gate capacitance is charge up.

  • @laurarosu4379
    @laurarosu43793 ай бұрын

    Hello! Thanks for your video. I am using a 3-6V water pump and a MOSFET IRFZ44E. Everything works as you said, until I connect the Gate to the D5 pin of my ESP32 dev Kit. I put the VDD source on 5V. Nothing happens. Any idea?

  • @adreaskats
    @adreaskats3 жыл бұрын

    hello ! really useful video . I have a question. My motor operates just like yours(12vdc with 0.5A) but i have a IRF830 mosfet and a IRF510 . Which one should i choose? and should i use the same ammount of resistor (10kΩ) or another?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! Both of those should work. Both of them seem to have the threshold voltage of 4V. It means that the 5V signal from Arduino will turn it fully on. Yes, you can use a 10k pull-down resistor.

  • @NoSpeechForTheDumb

    @NoSpeechForTheDumb

    11 ай бұрын

    You may have figured it out already but both MOSFETs you mentioned are not "logic level"-MOSFETs, i.e. 5V is presumably NOT enough to drive the transistors into saturation. They will conduct, but produce a significant amount of heat.

  • @danielsorby8478
    @danielsorby84788 ай бұрын

    Would this still work with a 220-ohm resistor between the Arduino pin and the Gate terminal of the MOSFET, instead of a 100-ohm resistor?

  • @charleyandsarah
    @charleyandsarah3 жыл бұрын

    Is there a way to switch the positive side with a mosfet or similar? I need to PWM a 12vdc signal, but I can't switch the GND

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Do you mean like this with a P-Channel mosfet: kzread.info/dash/bejne/l59sqqSjn9G-lKQ.html

  • @ThangNguyen-ek3xn
    @ThangNguyen-ek3xn2 жыл бұрын

    Hello, can I use IRF1404 40V 202A for Motor 24V 10A?

  • @arnauabfabf7400
    @arnauabfabf74003 жыл бұрын

    anazing video

  • @sotomayornaceljohn9578
    @sotomayornaceljohn95783 жыл бұрын

    Hi.. I plan to use this in out capstone project... Pls tell me specifically what diode did you use... I've been searching for a flyback diode on online shops but I haven't been so lucky.... Thanks in advance

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! I used a 1N4007

  • @vaishnavihvvaishnavihv7305
    @vaishnavihvvaishnavihv7305 Жыл бұрын

    If we use the aurdino then what is use 12v battery

  • @endtimerevealed137
    @endtimerevealed1374 жыл бұрын

    how can i thank you ? i have no word to thank you,you helped me a lot...... May Allah guide you to the right path

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Glad I could help!

  • @MJ-em2ix

    @MJ-em2ix

    Жыл бұрын

    End Time Revealed- There is no need to invoke supernatural nonsense, magic and/or bronze age deities into this video. Indrek is doing just fine on his own using his thinking brain. Keep banging your head against the ground.

  • @NoSpeechForTheDumb

    @NoSpeechForTheDumb

    11 ай бұрын

    ​@@MJ-em2ixI'm an atheist myself but being an arrogant insulting dorkhead may not be the best strategy to make people embrace your opinion.

  • @AriesBreath
    @AriesBreath3 жыл бұрын

    Hello, great work! I'm approaching the electronic hobby but I have many many questions. One is: I have a MOSFET with two thin wires that let the current flow through the MOSFET if connected togheter. I read from those wires the same voltage as the battery from which they draw power (from 7.4v to 11.1v, depending on the battery). In your video the voltage is 12v, so even higher. I am afraid tough that connecting those two wires to the Arduino will burn it as the voltage they operate is much higher than 5v. Can you please explain how this work?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Do I understand correctly that you wan to use the 7.4V..11.1V battery to power your Arduino. You can do it if you connect it to Arduino's VIN pin. VIN pin has a voltage regulator that can take 6V to 12V power input.

  • @AriesBreath

    @AriesBreath

    3 жыл бұрын

    @@IndrekL Thank you, but it wasn't the answer I was looking for, I'll try to explain better. I want to drive a MOSFET connected to a battery which voltage is greater than 5v (like the power supply (12v) you are using I think). For the little I know about, I know that connecting a voltage greater than 5v to a digital pin will burn it, but in your video this doesn't happen. So, can you explain to me why? Or what I'm getting wrong?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    @@AriesBreath The Arduino digital output pin is connected to the Gate terminal of the MOSFET. Gate is the input for the MOSFET that turns it ON or OFF, and there is no current flowing through it. With N-Channel MOSFETs, you can connect your Arduino GND to the Source pin of the MOSFET and an output pin to the Gate. The current that you are switching ON and OFF will flow through Drain and Source, but not through Gate.

  • @AriesBreath

    @AriesBreath

    3 жыл бұрын

    @@IndrekL oh, I got it, thank you very much

  • @Marcuss925
    @Marcuss925Ай бұрын

    12V won't fry my ESP32 controller if I connect it to the same ground?

  • @AskQuestions-w4y
    @AskQuestions-w4y6 күн бұрын

    So why don't we connect a 10k pull down resistor between gate and the arduino instead of two different resitors in two different spots?

  • @agdaaloha5306
    @agdaaloha53063 жыл бұрын

    Hello, Congratulations of the Project. What is the Power of the motor? Why did you choose this MOSFET?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! If I remember correctly the 12V motor consumed about 1Amp. It is a logic level MOSFET - the Gate-Source voltage is below 5V to fully turn it on/off. It is rated for 32A, 60V, which is enough for me since I only required 12V and 1A

  • @agdaaloha5306

    @agdaaloha5306

    3 жыл бұрын

    @@IndrekL Ok, Thank you very much for the answer. :)

  • @roboarjun
    @roboarjun2 жыл бұрын

    Can we use IRF3205?

  • @kafimollik3047
    @kafimollik30473 жыл бұрын

    Can I use bt136 instaed of 30N0CL

  • @blmagic2563
    @blmagic25632 жыл бұрын

    Any help appreciated please. Brain absolute in bits. mosfets, like reading alien. Total noob. just using a 9v battery. Switches on a solenoid (12v) that many mosfets out there. just needing to know what be suffice. using with arduino. Thanks#

  • @Rodj12341
    @Rodj123413 жыл бұрын

    How come in many other videos of N-Channel MOSFET's, they didn't use a resistor across the gate and source?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! This resistor is necessary to give the MOSFET a default state while your Arduino is OFF. Otherwise the state of the Gate would be floating while Arduino is not actively controlling it with HIHG and LOW value of the digital output.

  • @orlando8193
    @orlando81933 жыл бұрын

    Hi, it's possible use mosfet or igbt as a switch on/off with arduino? I want use Mos or igbt for cut 12v to coil spark motorcycle when I push the switch or when arduino work .... model mosfet I use P channel o another type? Thank you

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! If I understand you correctly that you want to switch on/off a 12V load then it should be exactly as I describe in this video. It is easier to do with N-Channel mosfet since then you can use shared ground.

  • @Autotrope
    @Autotrope3 жыл бұрын

    I notice other people put a resistor at gate of MOSFET (in addition to the pull down resistor between there are ground). You don't. If I understand right, MOSFETs are purely voltage controlled - so are people doing this purely to produce a certain voltage at the gate or something?

  • @kristjansemmel5233
    @kristjansemmel52333 жыл бұрын

    Ma olen Eestlane Australiaa's. Kui ma kuulsin sinu hääl ma teanud et sa oled estlane ka. Suur aitäh video eest

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Tere! Jah, Eesti aktsent on üsna ära tuntuav. Mulle on varem ka maintud, et on aru saada, et olen Eestlane. Tänud tagasiside eest!

  • @ShadabKhan-lu6kr
    @ShadabKhan-lu6kr4 жыл бұрын

    Hello I need your help I am making a coilgun I need something to switch 500v dc from the capacitors to the coil Please tell me what can I use to switch 500v dc

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Hey! I really don't know. I don't do stuff with that high voltages. Maybe you could use a relay instead of a mosfet?

  • @FreddieMare
    @FreddieMare Жыл бұрын

    How to use MOSFET as a normaly close Switch?

  • @mehulbhole4323
    @mehulbhole43233 жыл бұрын

    bro what will happen if I do same connections as you , only rather than connecting dc motor I would connect ac load?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    I am not sure. The datasheet for 30N06L says that it can be used for AC motor control. So it might work (You need to have a seprate DC power supply for your Arduino). The 30N06L is rated for 60V, so you can't use the 220 or 110V with it.

  • @Gereon_
    @Gereon_3 жыл бұрын

    How hot does the MOSFET get? Wouldnt it have to dissipate a lot of heat?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! With 12V and around 1A it didn't heat up. If you wan't to switch higher loads then you might need a heatsink.

  • @alimochtaar
    @alimochtaar11 ай бұрын

    why must we add 10k resistances there?

  • @HanspeterAdam-hm4zi
    @HanspeterAdam-hm4zi2 ай бұрын

    I'm not clear which pins the flyback diode is connected to. It's not possible to tell from the video. Please explain.

  • @michaelrtreat

    @michaelrtreat

    2 ай бұрын

    The diode is connected across the motor. The cathode end of the diode(the one with the white band) is connected to +12 V. Look at schematic around 2:15. Hope that helps.

  • @billygutierez9936
    @billygutierez99364 күн бұрын

    Anyone knows the diode size?

  • @ArcanePath360
    @ArcanePath3604 ай бұрын

    I cannot get my motor to work at all. I have a fairly strong, slow geared motor which I connect power to the direct, it spins. I have tried 2 different H bridge motor shields and now a IRL540N MOSFET and at most, I hear a PWM whining sound inside the motor, but the motor refuses to work. I am at the end of my tether. It's only a 3.7v 1.2amp motor which ran off A tiny board the size of a postage stamp when I bought it. No caps, no nothing. I'm seriously perturbed by the mystery of it not wanting to work no matter what voltage I through through the Fet.

  • @candrasniper3404
    @candrasniper34043 жыл бұрын

    Hey there, why don't you use op amp and mosfet driver? And no inductor on the circuit. Could you explain to me? Because it will appear shaking spike current on oscilator.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! You are right, that it is probably a good idea to add a 100 to 1k ohm resistor between the gate and the Arduino output PIN. Here I am doing very low frequency switching which makes it less of a problem. I wanted the schema to be as simple as possible.

  • @candrasniper3404

    @candrasniper3404

    3 жыл бұрын

    @@IndrekL I think the pull down resistor (10k) function is only to define the ultimately LOW which atmega store to it. As same as push on button. So there is no leakage current on it when it's defined as a LOW state. As same as using mosfet as switch without the micro controller. That's why on every mainstream product related power supply or something that need the switching by voltage, needs mosfet driver, op amp as logic reference, and inductor to reduce the rest of shaking spike. Correct me if I'm wrong, master.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    The pull-down resistor in the schematic is needed because otherwise, the MOSFET's gate would be floating in a random state while the Arduino is not powered ON. It makes sure that the MOSFET stays OFF while Arduino is OFF. After power-up, it takes a couple of seconds until the Arduino IO pin is defined as output and starts to actively drive the Gate pin of the MOSFET. It will still work if you remove the 10k pull-down resistor after Arduino has started to run. Arduino digital output LOW will be equal to GND. And GND is directly connected to the source pin of the MOSFET. This makes the Gate-Source voltage to be 0 and the MOSFET is "OFF" The Gate-Source voltage of the MOSFET 30N06L needs to be about 4 Volts to fully turn it "ON". Arduino's digital output is 5V compare to GND. So if Arduino Output is active there is 5V between the Gate and the Source pins of the MOSFET.

  • @giannispap3860
    @giannispap38603 жыл бұрын

    And what if i want the mosfet "normally on" and set it off when i want to?? Maybe pull up resistor??I want the voltage keeps flowing if something goes wrong with the rest of the circuit

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Enhancement-Type MOSFET is normally on. If you want normally off then you should use a Depletion-Type MOSFET.

  • @NoSpeechForTheDumb

    @NoSpeechForTheDumb

    9 ай бұрын

    Actually it's the other way around: enhancement-mode MOSFET is normally off and depletion-mode MOSFET is normally on. Like with other things regarding MOSFETs, the terminology is unfortunate.

  • @givenfirstnamefamilyfirstn3935
    @givenfirstnamefamilyfirstn39353 жыл бұрын

    ‘Lossy clever’ = logic level

  • @TheSamwongms
    @TheSamwongms4 жыл бұрын

    It would be easier to observe the rotational speed of the motor if a cello tape is stuck onto the its shaft.

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Hey! Good idea! I will try to keep it in mind in the future.

  • @hrithikjain1806
    @hrithikjain18063 жыл бұрын

    0:16 enchantment type mosfet lol..im dead

  • @TBL_stevennelson
    @TBL_stevennelson4 жыл бұрын

    I just wish I could see more clearly.

  • @ion-electrics6858
    @ion-electrics68584 жыл бұрын

    how would you do it if you would want the motor to spin in the other way?

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Hey! For that it would be easeier for you to just buy a motor controller board that has an H-bridge on it: www.banggood.com/custlink/mKDDTDhcM8 With that you can control your motor's diction with digital output pins.

  • @ion-electrics6858

    @ion-electrics6858

    4 жыл бұрын

    @@IndrekL thank so much for the reply, i really apreciate it, god bless

  • @leonardoliberati549
    @leonardoliberati5494 жыл бұрын

    Hi, I tried to run this tutorial with an IRL540N mosfet but the engine is always on and I can't turn it off and on according to what is written in the Arduino code. Why? Wrong MOSFET?

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Hey! I see now reason why it shouldn't work with IRL540N. Does it work if you try it without the Arduino by manually connecting the gate to the positive lead of the power source? Like i do at 2:18

  • @leonardoliberati549

    @leonardoliberati549

    4 жыл бұрын

    @@IndrekL It works but the mosfet heats up a lot. The moment I go to connect it to Arduino with the MOSFET ... it always stays on ... as if the mosfet remains in HIGH perpetually

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    It heats up if the Gate is not clearly above or below the threshold. For me, it started to heat up if the Gate was floating. How high is the voltage that you are switching? Can you take a picture of your connections?

  • @leonardoliberati549

    @leonardoliberati549

    4 жыл бұрын

    Indrek the pump is a 12V with 80mA of power.

  • @IndrekL

    @IndrekL

    4 жыл бұрын

    Re-check all the wiring. Maybe some wires do not have a good connection?

  • @nickvanwhatt
    @nickvanwhatt3 жыл бұрын

    How did you determine your resistor size

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! 10k is pretty much the default for pull-up or pull-down resistors. If there isn't a good reason to use anything else then I will use a 10k resistor.

  • @nickvanwhatt

    @nickvanwhatt

    3 жыл бұрын

    @@IndrekL thanks for the tip I'm basically going to be using that same setup but with a 300 amp mosfet to make a battery terminal spot welder

  • @ArcanePath360
    @ArcanePath3604 ай бұрын

    1:51 sudden jump with extra wires in the breadboard which aren't explained.... what does the diode attach to exactly? This is not clear at all

  • @etherealrose2139

    @etherealrose2139

    4 ай бұрын

    Cathode end (stripe) towards the positive voltage source, anode towards the drain (the wire he's adding) it's literally in the diagram next to it.

  • @ArcanePath360

    @ArcanePath360

    4 ай бұрын

    @@etherealrose2139 Yeah I figured it out, thanks.

  • @edwinarcenal5770
    @edwinarcenal57703 жыл бұрын

    make a video ixtn660n04t4 test

  • @tansen4029
    @tansen40293 жыл бұрын

    Can i use 1K resistor ?

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! Yes, it should work.

  • @flake8382
    @flake83827 ай бұрын

    Enchantment type MOSFET 😁

  • @Ahmadnaweed786
    @Ahmadnaweed7863 жыл бұрын

    never do this! a generic mosfet requires at least 10 volts for the gate, 5 volts is not enough it will overheat and wast a lot of power.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Hey! The 30N06L I am using in this video is a Logic Level MOSFET. It's Gate threshold voltage Vgs(th) is 4V.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    Datasheet: datasheetspdf.com/pdf-file/817129/UTC/30N06L/1

  • @Ahmadnaweed786

    @Ahmadnaweed786

    3 жыл бұрын

    @@IndrekL yes but that has it's conditions. the conditions are that Vds=Vgs and Id= 250uAmps and at room temperature of 25 C. which in your case is not true. just read the next row. Static Drain-Source On-State Resistance = 40 milliohms, Vgs=10 volts and Id = 15Amps, at this setup you will get the least internal resistance and the mosfet wont overheat or wast power.

  • @Ahmadnaweed786

    @Ahmadnaweed786

    3 жыл бұрын

    @@IndrekL this type of setup is only good for learning not for any practical application. you should have mentioned it in your video.

  • @IndrekL

    @IndrekL

    3 жыл бұрын

    ​@@Ahmadnaweed786 I really appreciate your feedback! I do the electronics stuff as a hobby (mainly I am a programmer) I understand that the optimal conditions are at Vgs=10V I found this other datasheet that specifically brings out Rds(on) for Vgs=5V cdn.sparkfun.com/datasheets/Components/General/FQP30N06L.pdf According to this spec, in the case of Vgs = 10V, the resistance is up to 35 milliOhm And if Vgs = 5V then it is a little higher up to 45 milliOhm. In practice, the MOSFET didn't get hot at all when I did my experiments. It didn't even get warm. It did get hot though if I accidentally let the gate floating - I assume that then the Vgs floated somewhere below 4V. I read that Logic-level MOSFETs are specifically designed to be usable at lower voltages.

  • @nelxonmiranda
    @nelxonmiranda3 жыл бұрын

    You’re not exposing anything and plugging in stuff to a breadboard doesn’t explain much.

  • @mezzofresh3521
    @mezzofresh35213 жыл бұрын

    Your hard to understand and don't explain enough

  • @hansparam
    @hansparam2 жыл бұрын

    Nice information. Will the mosfet drop some voltage at the motor? i.e instead of 12v it will be getting 10.5 or 11volts.

Келесі