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

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • 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 CZcams library.
  • Věda a technologie

Komentáře • 156

  • @Wandering_Horse
    @Wandering_Horse Před rokem +7

    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
    @dogeeatsveggies Před 3 lety +15

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

  • @HeiderSati
    @HeiderSati Před 3 lety +2

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

  • @markschuurman4000
    @markschuurman4000 Před 3 lety +1

    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!

  • @mikewalton7615
    @mikewalton7615 Před 4 lety +3

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

  • @Creative_Electronics
    @Creative_Electronics Před 4 lety +5

    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  Před 4 lety +1

      Thanks a lot for the feedback!

  • @user-ez1nf8sl9l
    @user-ez1nf8sl9l Před rokem

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

  • @snillddy7907
    @snillddy7907 Před 4 lety +4

    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 👍

  • @propro123_cz9
    @propro123_cz9 Před 6 měsíci

    best video explaining mosfets! thanks!

  • @juliusferrer2071
    @juliusferrer2071 Před 7 měsíci

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

  • @asdfgasasdfasdf7498
    @asdfgasasdfasdf7498 Před rokem

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

  • @Creative_Electronics
    @Creative_Electronics Před 4 lety +7

    You should have 1 million subscribers

  • @OGmolton1
    @OGmolton1 Před 3 lety +1

    thanks, needed this, works like magic.

  • @XxPPslayer69
    @XxPPslayer69 Před 3 lety +1

    best explanation on youtube

  • @Creative_Electronics
    @Creative_Electronics Před 4 lety +8

    It's a really good explaining!! :)

    • @sarthakchaudhary8027
      @sarthakchaudhary8027 Před 4 lety

      Hey creatice electronics, please watch this video call...
      czcams.com/video/Y9sNFx7enFQ/video.html
      I explained how mosfet work as switch

  • @MagivaIT
    @MagivaIT Před 10 měsíci

    great tutorial, many thanks for this

  • @hollymedici2936
    @hollymedici2936 Před 2 lety

    thanks got what i needed you er better than most

  • @user-zw6om3sr8d
    @user-zw6om3sr8d Před rokem

    Huge help, thank you so much!!

  • @Becoming_the_best
    @Becoming_the_best Před rokem

    perfect explanation thank you

  • @Misc_useful
    @Misc_useful Před 3 lety +1

    Crisp and clear explanation

  • @happycrayon7621
    @happycrayon7621 Před 4 lety

    Loved it. You got urself a subscriber.

  • @puzzlefactorysoundstudios

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

  • @sameerk12982
    @sameerk12982 Před 4 lety

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

    • @IndrekL
      @IndrekL  Před 4 lety +1

      Hey! Thank you for the feedback!

  • @gholiamirza7102
    @gholiamirza7102 Před 4 lety +1

    Very easy explained. Thanks.

    • @IndrekL
      @IndrekL  Před 4 lety

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

  • @duncansmith8992
    @duncansmith8992 Před 3 lety

    Excellent. Thank you.

  • @xandersafrunek2151
    @xandersafrunek2151 Před 3 lety

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

  • @sungurtigin7258
    @sungurtigin7258 Před 3 měsíci

    good video

  • @laurentiujinga5558
    @laurentiujinga5558 Před 2 lety +1

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

  • @shreyaumesh3978
    @shreyaumesh3978 Před rokem

    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??

  • @sleephourofmotivatwakeupas6512

    The best possible way to explain

  • @mymyka1122
    @mymyka1122 Před 8 měsíci

    i owe you my life

  • @gdlignos
    @gdlignos Před 2 lety

    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?

  • @mcbbcn
    @mcbbcn Před 2 lety +1

    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 Před 2 lety

      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.

  • @laurarosu4379
    @laurarosu4379 Před 3 měsíci

    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?

  • @adrianantoci1187
    @adrianantoci1187 Před 3 lety

    Thanks!

  • @georgealbo
    @georgealbo Před 2 lety

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

  • @haddouchizakariae7713
    @haddouchizakariae7713 Před 4 lety +1

    merci, danke sehr

  • @rochdimaria
    @rochdimaria Před 2 lety +1

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

  • @danielsorby8478
    @danielsorby8478 Před 8 měsíci

    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?

  • @JonCo
    @JonCo Před rokem +1

    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 Před 6 měsíci +1

      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.

  • @Micington
    @Micington Před 3 lety +2

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

    • @IndrekL
      @IndrekL  Před 3 lety +2

      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.

  • @broncootaku
    @broncootaku Před 2 lety

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

  • @keshavanandbhagat1247
    @keshavanandbhagat1247 Před 3 lety

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

  • @kiranshashiny
    @kiranshashiny Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety

      Hey! Yes, you can use the PWM output.

  • @lezzetlideneyimler2746

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

    • @billydonahue4039
      @billydonahue4039 Před 3 lety

      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.

  • @charleyandsarah
    @charleyandsarah Před 3 lety

    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  Před 3 lety +1

      Do you mean like this with a P-Channel mosfet:
      czcams.com/video/ek8HBjonXdA/video.html

  • @blmagic2563
    @blmagic2563 Před 2 lety

    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#

  • @ThangNguyen-ek3xn
    @ThangNguyen-ek3xn Před 2 lety

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

  • @suhas608
    @suhas608 Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety +1

      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.

  • @gedtoon6451
    @gedtoon6451 Před 10 měsíci

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

  • @Marcuss925
    @Marcuss925 Před měsícem

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

  • @vaishnavihvvaishnavihv7305

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

  • @AskQuestions-w4y
    @AskQuestions-w4y Před 4 dny

    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?

  • @adreaskats
    @adreaskats Před 3 lety +1

    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  Před 3 lety +1

      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 Před 11 měsíci

      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.

  • @sotomayornaceljohn9578

    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

  • @roboarjun
    @roboarjun Před 2 lety

    Can we use IRF3205?

  • @kafimollik3047
    @kafimollik3047 Před 3 lety

    Can I use bt136 instaed of 30N0CL

  • @Autotrope
    @Autotrope Před 3 lety

    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?

  • @AriesBreath
    @AriesBreath Před 3 lety

    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  Před 3 lety +1

      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 Před 3 lety

      @@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  Před 3 lety +2

      @@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 Před 3 lety

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

  • @agdaaloha5306
    @agdaaloha5306 Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety +1

      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 Před 3 lety

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

  • @alimochtaar
    @alimochtaar Před 11 měsíci

    why must we add 10k resistances there?

  • @arnauabfabf7400
    @arnauabfabf7400 Před 3 lety

    anazing video

  • @orlando8193
    @orlando8193 Před 3 lety

    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  Před 3 lety

      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.

  • @FreddieMare
    @FreddieMare Před rokem

    How to use MOSFET as a normaly close Switch?

  • @endtimerevealed137
    @endtimerevealed137 Před 4 lety +1

    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  Před 4 lety

      Glad I could help!

    • @MJ-em2ix
      @MJ-em2ix Před rokem

      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 Před 11 měsíci

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

  • @Rodj12341
    @Rodj12341 Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety

      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.

  • @ShadabKhan-lu6kr
    @ShadabKhan-lu6kr Před 4 lety

    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  Před 4 lety

      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?

  • @kristjansemmel5233
    @kristjansemmel5233 Před 3 lety

    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  Před 3 lety

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

  • @candrasniper3404
    @candrasniper3404 Před 3 lety

    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  Před 3 lety

      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 Před 3 lety

      @@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  Před 3 lety

      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.

  • @billygutierez9936
    @billygutierez9936 Před 2 dny

    Anyone knows the diode size?

  • @ArcanePath360
    @ArcanePath360 Před 4 měsíci

    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.

  • @HanspeterAdam-hm4zi
    @HanspeterAdam-hm4zi Před 2 měsíci

    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 Před 2 měsíci

      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.

  • @hrithikjain1806
    @hrithikjain1806 Před 3 lety +1

    0:16 enchantment type mosfet lol..im dead

  • @mehulbhole4323
    @mehulbhole4323 Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety

      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_ Před 3 lety

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

    • @IndrekL
      @IndrekL  Před 3 lety

      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.

  • @givenfirstnamefamilyfirstn3935

    ‘Lossy clever’ = logic level

  • @giannispap3860
    @giannispap3860 Před 3 lety

    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  Před 3 lety

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

    • @NoSpeechForTheDumb
      @NoSpeechForTheDumb Před 9 měsíci

      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.

  • @TBL_stevennelson
    @TBL_stevennelson Před 4 lety +2

    I just wish I could see more clearly.

  • @leonardoliberati549
    @leonardoliberati549 Před 4 lety

    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  Před 4 lety

      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 Před 4 lety

      @@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  Před 4 lety

      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 Před 4 lety

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

    • @IndrekL
      @IndrekL  Před 4 lety

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

  • @edwinarcenal5770
    @edwinarcenal5770 Před 3 lety

    make a video ixtn660n04t4 test

  • @ArcanePath360
    @ArcanePath360 Před 4 měsíci

    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 Před 4 měsíci

      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 Před 4 měsíci

      @@etherealrose2139 Yeah I figured it out, thanks.

  • @ion-electrics6858
    @ion-electrics6858 Před 4 lety

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

    • @IndrekL
      @IndrekL  Před 4 lety

      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 Před 4 lety

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

  • @nickvanwhatt
    @nickvanwhatt Před 3 lety

    How did you determine your resistor size

    • @IndrekL
      @IndrekL  Před 3 lety

      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 Před 3 lety

      @@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

  • @TheSamwongms
    @TheSamwongms Před 4 lety +1

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

    • @IndrekL
      @IndrekL  Před 4 lety

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

  • @tansen4029
    @tansen4029 Před 3 lety

    Can i use 1K resistor ?

    • @IndrekL
      @IndrekL  Před 3 lety +1

      Hey! Yes, it should work.

  • @flake8382
    @flake8382 Před 7 měsíci

    Enchantment type MOSFET 😁

  • @Ahmadnaweed786
    @Ahmadnaweed786 Před 3 lety

    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  Před 3 lety

      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  Před 3 lety

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

    • @Ahmadnaweed786
      @Ahmadnaweed786 Před 3 lety

      @@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 Před 3 lety

      @@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  Před 3 lety +1

      ​@@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
    @nelxonmiranda Před 3 lety +2

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

  • @mezzofresh3521
    @mezzofresh3521 Před 3 lety

    Your hard to understand and don't explain enough

  • @hansparam
    @hansparam Před 2 lety

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