Controlling fan speed with mosfet and Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ม.ค. 2017
  • #MosFet #Arduino
    Ever want to electronically control a fan? Get to know the bases here. With a n - channel mosfet and an Arduino you can control the fan speed.
    Project page:
    rohling-de.blogspot.de/2017/1...
    amzn.to/2v7vDQm - Mosfet
    amzn.to/2uE982D - Arduino Uno
    amzn.to/2zEBdNe - PC fan
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 294

  • @jamestrujillo5195
    @jamestrujillo5195 5 ปีที่แล้ว +14

    Out of millions of TH-cam videos that ive seen, this is the only TH-cam video where it explains what a transistor really is with great explanation

  • @billb8744
    @billb8744 4 ปีที่แล้ว +13

    Brilliant!!! Einstein once said if you can't explain something simply then you don't understand it. Well sir, you definitely understand it and I appreciate you sharing your knowledge as well as your delightful ''style''. It's fun to learn with a smile.
    Thank you.

  • @ultrarageman2956
    @ultrarageman2956 5 ปีที่แล้ว +32

    When this dude explains it better than teacher in school👏👏

  • @ronremondini7045
    @ronremondini7045 6 ปีที่แล้ว +5

    Great job! you did a wonderful job explaining and demonstrating the use of a MOSFET and PWM.

  • @gregoryskoczek5357
    @gregoryskoczek5357 5 ปีที่แล้ว +3

    Your sense of humor is great. Continue making more movies please!

  • @RexxSchneider
    @RexxSchneider 2 ปีที่แล้ว +11

    At 5:26 you mistakenly state that "the MOSFET doesn't need 12V for the gate; it only needs 0.7V". You've unfortunately confused the MOSFET with a bipolar junction transistor (BJT). The BJT does indeed need only 0.7V at its base (but requires several mA of current), but the IRF530 needs between 2V and 4V on its gate to begin to conduct, and rather more than that to turn it on fully (although it needs almost no current into the gate). Some samples of IRF530 may not even turn on properly with the output of the Arduino, and you are much better off using an IRL530. The 'L' indicates a logic-level MOSFET which will turn on fully when supplied with 5V. A lot of logic circuits use 5V as their high level, and the Arduino is one of them.
    It's worth also noting that you should add a series resistor of about 270R between the Arduino output pin and the gate of the MOSFET to limit the transient current into the MOSFET's gate capacitance as the Arduino switches its output from low to high. That value will ensure that any momentary current drawn is no more than 20mA, which is the maximum allowed from the I/O pin.
    Finally, the fan is an inductive load and should be bypassed by a reversed diode (e.g. a 1N4001), which is needed to absorb the transient spike that is generated when current is abruptly cut off from an inductor. This will prevent the possibility of damage to the MOSFET and reduce the radio-frequency interference generated by the switching.

    • @LuxHack
      @LuxHack 5 หลายเดือนก่อน

      Thank you

  • @rootbeercouch
    @rootbeercouch 2 ปีที่แล้ว

    I have been trying to figure this out all day. This is the clearest most complete answer I have been able to find.

  • @Clavertus
    @Clavertus 4 ปีที่แล้ว +3

    Great video! Finally, I grasped this concept. Thank you!

  • @redlord5504
    @redlord5504 6 ปีที่แล้ว +3

    Keep making videos your very good at it. This video helped me with my project

  • @rgmtb
    @rgmtb 4 ปีที่แล้ว +11

    Great job on this! Well under 10mins and I learned exactly what I wanted. Thank you very much for this!

  • @fishraviolli4373
    @fishraviolli4373 4 ปีที่แล้ว +4

    Oh god, thank you. Spend 3 days on this trying different transistors and mosfets :P

  • @j2abramscav945
    @j2abramscav945 5 ปีที่แล้ว +1

    Thank you so damn much this was so helpful this is actually the first time I have ever posted a comment on youtube, actually anywhere a lot of information came out of this simple video

  • @adityaraj-mn8dt
    @adityaraj-mn8dt 6 ปีที่แล้ว +13

    Thank you so much, bro! You explained it so well, now I am able to control a motor with Arduino! All because of you. *brofists*

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      +aditya raj My pleasure. I'm glad to help!

  • @peterhuesmann3956
    @peterhuesmann3956 2 ปีที่แล้ว

    Very nice and enjoyable presentation. I'm going to save this for teaching my grandchildren!

  • @iajjsjjsjsjsjdjwuw
    @iajjsjjsjsjsjdjwuw 11 หลายเดือนก่อน

    Thank you. This is the most simple explanation i have watched

  • @alchemy1
    @alchemy1 4 ปีที่แล้ว

    I loved this guy in the first 45 seconds. Rare wonderful exceptional person. Thank you for who you are. Top number 1 subscription.

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว

      On ... Off... On... Off... OnOffOnOffOnOff

  • @paparpapar4489
    @paparpapar4489 ปีที่แล้ว

    Thank God you explain so good , you are a life saver, a subscriber from now on

  • @sbm168
    @sbm168 5 ปีที่แล้ว

    Listening to this as a mech e i appreciate the pipe analogy. Thanks!

  • @K34nuT
    @K34nuT 5 ปีที่แล้ว +2

    Super easy to understand, thank you. Subscribed!

  • @CarolinaCowboys
    @CarolinaCowboys 4 ปีที่แล้ว +1

    Good video, thank you! I don't have a mosfet but was able to do it with an NPN transistor

  • @afm4807
    @afm4807 4 ปีที่แล้ว

    There was no talk of the 10h resistor of the gate connected to the source. But it was one of the best videos I saw because it helped me in the resistor. Loved your video. Thank you very much.

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว +1

      The resistor was original for the purpose to automatically closing the gate. With an Arduino connected it becomes obsolete. But I forgot to remove it ;-)

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      @@nenioc187 It's not a bad idea to leave it in place as it provides a fail-safe if the connection from the Arduino to the gate is accidentally disconnected.

  • @MANGIACARRUBE
    @MANGIACARRUBE 5 ปีที่แล้ว +3

    finally a good tutorial for 3 pin fans, thank you!

    • @nenioc187
      @nenioc187  5 ปีที่แล้ว

      My pleasure!

  • @fernandomiranda8125
    @fernandomiranda8125 4 ปีที่แล้ว

    You are very good at teaching my friend. Keep going. Thanks for sharing this.

  • @oneiricj4877
    @oneiricj4877 6 ปีที่แล้ว +1

    this is really easy to understand. Thank you!

  • @RajarajanPanneerselvam
    @RajarajanPanneerselvam 3 ปีที่แล้ว

    Wish I had a teacher like you. It's never late anyway. You are my teacher now 😀

    • @nenioc187
      @nenioc187  3 ปีที่แล้ว +1

      It would be an honor!

  • @shefinmuhammed5289
    @shefinmuhammed5289 5 ปีที่แล้ว +1

    The example was quite good.thank you

  • @fixitmakeit72
    @fixitmakeit72 5 ปีที่แล้ว

    I have a 12v 0.18a 3wire blower dc blower fan, I want to slow the speed down for long periods but need the full speed for initial start up for a couple of minutes. Can you advise me on which type of small speed controller I should buy for the well being of my blower. Have seen vids on transistor/ potentiometer methods but would rather buy the right tool for the right job so to speak. Thankyou. Great video.

  • @yura979
    @yura979 3 ปีที่แล้ว +1

    You have very unique and calm approach. I like it.

  • @abelalonsoballonaguirre5191
    @abelalonsoballonaguirre5191 5 ปีที่แล้ว +1

    Nenioc! thank you very much for this interesting video, you did it very fun and good explained!

  • @momoster69
    @momoster69 3 ปีที่แล้ว +1

    love you bro, added this video to my favourites for later.

  • @warrior28099
    @warrior28099 2 ปีที่แล้ว

    i Love you so much i didnt understand the part of common ground in the third leg in other videos and you enlighted me

  • @justinfielding
    @justinfielding 6 ปีที่แล้ว

    Instead of a MOSFET I have an L298N H-Bridge module. When I try to control the speed of the fan with PWM I can seem to achieve some speed control, but the PWM causes a squealing noise. If I use a MOSFET instead will I avoid this problem or is the issue with the fan itself?

  • @AdipRai_43
    @AdipRai_43 8 หลายเดือนก่อน

    Great !
    I could relate the concept of the video to PWM chopper signal.

  • @notniko6914
    @notniko6914 ปีที่แล้ว

    "You don't know how it works? Well, I didn''t know it either so I had to look it up" this is the type of tutorial I like

  • @mehrannazari7454
    @mehrannazari7454 6 หลายเดือนก่อน

    Thx, could you please explain how to use third wire(yellow =hall sensor out put ) for feedback control

  • @daniesubsiak8031
    @daniesubsiak8031 6 ปีที่แล้ว

    how to control the speed of an electric fan based on the temperature of the room using a 3 relay for speed? thanks for project purpose

  • @skytecrobotics422
    @skytecrobotics422 6 ปีที่แล้ว

    And the motor drivers are too heavy...which mosfet would u recommend for a 3.7 v motor..
    Thanks for help..😊

  • @testslo-ej7bc
    @testslo-ej7bc 6 ปีที่แล้ว +4

    wow awsome tutorial and funny too! thanks!

  • @oes2546
    @oes2546 ปีที่แล้ว

    Silly question. Can i use this to PWM a DC fan then? Why can't any DC fan run PWM mode from a motherboard of fan controller then? They sell PWM fans and DC fans as separate models. Sorry, I'm quite new to this.

  • @jeanchrinot
    @jeanchrinot 6 ปีที่แล้ว

    Is the DC power supply necessary? Why? Could we use just the Vcc of Uno instead?

  • @ivankoal7228
    @ivankoal7228 3 ปีที่แล้ว +1

    Do you need a resistor for this, and how do you connect it?

  • @brettpillemer2141
    @brettpillemer2141 4 ปีที่แล้ว +1

    great tutorial but I think its a bit confusing as you used a 3 wired fan and I thought the yellow wire was for the PWM. I read more and see that the 3rd wire just reads the frequency of the fan. I also was wondering if the mosfet would overheat but I think in this example no as you not using too many W - But very nice tutorial

  • @disneyn
    @disneyn 2 ปีที่แล้ว

    First you have a resistor above the mosfet? then it has dissepear? did you not need it anymore?

  • @GeorgeJFW
    @GeorgeJFW 5 ปีที่แล้ว

    Dam this video is fantastic thanks for the help on a couple of points.

    • @nenioc187
      @nenioc187  5 ปีที่แล้ว

      Damn, I'm glad, it helped;-)

  • @lezzetlideneyimler2746
    @lezzetlideneyimler2746 5 ปีที่แล้ว

    What happen if we send signal by using yellow signal wire direcly to the fan from the arduino without using mosfet.

  • @GoodMods
    @GoodMods 3 ปีที่แล้ว

    Excuse me, I'm a beginner, what resistor is that when you connected the gate to the arduino, how is it connected and why is it there?

  • @lethaldriver
    @lethaldriver 3 ปีที่แล้ว

    for the analogWrite, he used the values 300 and 1000.
    How come in the Arduino website, it says that the values should range only from 0 to 255?
    It still worked though.....???
    for analogRead, he can get between 0 and 1023.

  • @josephkreifelsii6596
    @josephkreifelsii6596 6 ปีที่แล้ว +2

    I am having a hard time seeing where you placed the resistor. Can you give a more detailed diagram also with the resistor specs?

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว +2

      There is a corresponding project page to this video. rohling-de.blogspot.de/2017/10/controlling-fan-speed-with-your-arduino.html
      The resistor is a pull-down resistor for the PWM port of the Arduino. Although it is not really necessary because the Arduino should be capable to pull the pin internally to GND.

  • @S0K0N0MI
    @S0K0N0MI 3 ปีที่แล้ว

    I'm getting a lot of whine from the fan when its not going full speed, is there a way to silence that?

  • @pigua7705
    @pigua7705 5 ปีที่แล้ว +1

    I like this tutorial, I hope you can have more exciting videos.

    • @nenioc187
      @nenioc187  5 ปีที่แล้ว

      I'll do my best

  • @grahamcurran8744
    @grahamcurran8744 7 ปีที่แล้ว +10

    very well explained and easy to understand thank you

    • @nenioc187
      @nenioc187  7 ปีที่แล้ว

      You're welcome!

  • @kratostube1
    @kratostube1 3 ปีที่แล้ว

    Uiiiiiuuuiiiiiuuuuiiiiiuuuu! Explains better than any other video

  • @shibuma1064
    @shibuma1064 3 ปีที่แล้ว

    Should I use data pin instead of pwm signal.

  • @aurelioimprota482
    @aurelioimprota482 3 หลายเดือนก่อน

    spettacolare, volevo chiedere, si può controllare una ventola a 24v con lo stesso sistema???

  • @moon-of-uk
    @moon-of-uk 6 ปีที่แล้ว

    or we have to attach another Arduino with it to perform another function?

  • @robink.9459
    @robink.9459 5 ปีที่แล้ว

    very good, practical tutorial!

  • @martinwilligenburg3157
    @martinwilligenburg3157 3 ปีที่แล้ว

    compliments for the clear explanation!!!! thanks!!!!

  • @robertmarkham6558
    @robertmarkham6558 6 ปีที่แล้ว

    Could someone possibly right me a scriypt i'm wanting to use a arduino as a indicator relay on my old mans classic bike, so i would be using an arduino and 2 relays anyone able to help out? Thanks

  • @sharathchandra6166
    @sharathchandra6166 5 ปีที่แล้ว

    awesome tutorial. subscribed!

  • @albrightedet
    @albrightedet 5 ปีที่แล้ว

    very simplfied. great video!

  • @LuxHack
    @LuxHack 5 หลายเดือนก่อน

    Awesome demo

  • @zandr6718
    @zandr6718 3 ปีที่แล้ว

    Great Video. I made this exact circuit just as an experiment; however, my fans are turning very slow. Any suggestions - How could I draw more current into the fan? Or how could I decrease the overall resistance?

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      First of all, you need to discover why the fans are turning slowly. Try disconnecting the gate of the MOSFET from the Arduino and connecting it to a higher voltage, but no more than 10V. If that solves the problem, then it shows that your IRF530 isn't turning on fully with just 5V. It's not guaranteed to do so, and you are always better using an IRL530 when driving it from a microcontroller. The 'L' signifies a logic-level MOSFET and the IRL530 is guaranteed to turn on with a maximum resistance of 0.16 ohms and supply up to 15A when it has 5V on its gate.

  • @iskramalinovski7605
    @iskramalinovski7605 4 ปีที่แล้ว

    What is that resistor that you've placed on the breadboard, when you've hooked up the Arduino? And why is it there? You don't mention anything about it in the video, nor within the project page that you've linked.

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว +1

      It should unsure that the Gate is pulled to LOW. Without the Arduino the Gate would stay open. But if you connect it to the Arduino and pull the pin to LOW, you don't have to use the resistor.

  • @ahmedalotaibi4477
    @ahmedalotaibi4477 7 ปีที่แล้ว

    The best explanation yet thanks

    • @nenioc187
      @nenioc187  7 ปีที่แล้ว

      Thanks. The reason for this video was, that I trouble understanding the use of a mosfet. So I acquired everything I need to know and tried to make the video as clearly as possible.

  • @lifetech1989
    @lifetech1989 5 ปีที่แล้ว

    very very helpful video.. many thankssss

  • @SimmonS2679
    @SimmonS2679 6 ปีที่แล้ว

    Could I get the same result if I used the 12V power supply of the UNO (Vin) and connected it to the + terminal of the fan and GND to the source of the transistor?

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      Yes, assuming that the 12V supply you're using to power the UNO has enough current capacity to also power the fan.

  • @bdbasic7647
    @bdbasic7647 6 ปีที่แล้ว +2

    thanks a lot man .I understand all thinks ..many many thanks

  • @adeshkumar5534
    @adeshkumar5534 3 ปีที่แล้ว +1

    plz make a video which uses potentiometer to set duty cycle of the pwm signal

  • @Krzak97
    @Krzak97 6 ปีที่แล้ว +2

    thanks man this video helped me

  • @tyc00n
    @tyc00n 5 ปีที่แล้ว

    such a great video, I learn

  • @josemichaelsanjuan4424
    @josemichaelsanjuan4424 6 ปีที่แล้ว

    Sir how do i insert the buttons to increase or decrease the speed of the fan???
    Tnx...

  • @SkorpionZA
    @SkorpionZA 6 ปีที่แล้ว

    Very nicely explained! -I might have something for your bucket list though :) -How would you control a device (a peltier for instance) that does not stand the PWM ripple well, while also introducing a lot of noise in sensitive devices around?.. -Is there a way to 'smooth' that ripple or simply use/create a continuous/proportional signal for control?..

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      Usually you can use a capacitor to smooth the PWM signal a little. I haven't tried it yet to control a peltier element - although I've laying them around for quite a while.

    • @SkorpionZA
      @SkorpionZA 6 ปีที่แล้ว

      Yup, that could also work I guess... Thanx! -Since I see you've worked with several different temperature sensors, you might (also:)) want to try a peltier+fan based temperature control project; see how stable around the set point you can get ;) -Cheers!

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว +1

      Using peltier and fan to create a controlled environment? Hmm... sounds interesting. That will go to my bucket list. Damn, my bucket list is becoming huge.

    • @SkorpionZA
      @SkorpionZA 6 ปีที่แล้ว

      :D

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      @@nenioc187 If you use a capacitor on the MOSFET gate to smooth the PWM signal, then you must include a resistor between the I/O pin and the capacitor to prevent the initial charge current on switching from exceeding the rated 20mA for an Arduino pin. A minimum of 270R would be needed. However, once you've smoothed out the PWM signal, you're operating the MOSFET in its linear region, rather than switching it, so it will get hot and may need a heatsink. If you use a (much larger) capacitor across the load, you'll probably want to add some series resistance between the drain and load as well to limit current spikes as the MOSFET switches.

  • @jesanrahman3494
    @jesanrahman3494 6 หลายเดือนก่อน

    is it pwm controller or voltage reducing?

  • @joshuaneve9271
    @joshuaneve9271 3 ปีที่แล้ว

    Hi nenioc187, great video, thank you! Could I ask, what is the maximum voltage for a fan or any output for that matter that could be controlled using this sort of transistor? Could I use a fan that is 220-240V (100mA) to reduce its RPM? And if not, why not? :) Many thanks!

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      I assume that your fan is 220-240V AC, so this circuit is not suitable as it is intended for DC applications. Mixing mains voltage with microcontrollers is fraught with problems and usually requires the use of an opto-isolator and a triac to control AC mains devices along with many precautions in layout. That really isn't suitable for a beginner.
      For DC use, the IRL530 is rated at 100V and 15A (although not both at the same time), but again, high voltages are not suitable for beginners, and I'd strongly recommend investigating projects that require no more than 24V and a few amps while learning.

  • @wegro585
    @wegro585 3 ปีที่แล้ว

    how about 12v button with led ? connected to pc ?

  • @AFuller2020
    @AFuller2020 6 ปีที่แล้ว +6

    Danke fur the Hilfe, Vielen Dank!

  • @zymagoras
    @zymagoras 2 ปีที่แล้ว +1

    I think 0.7v is for most bipolar junction transistors, for irf530 gate threshold minimum is 2v.

  • @heemlo649
    @heemlo649 6 ปีที่แล้ว +2

    How are you using 300 and 1000 in analog write? I thought it had to be 0 to 255?

    • @KjartanAndersen
      @KjartanAndersen 5 ปีที่แล้ว +1

      @@theaurumtheory If you watched the video you would clearly see that he used analogWrite(Gate, 300) and analogWrite(Gate, 1000). My guess is that Arduino ignores the bits it cant use and reads them as 44 and 232 (300 mod 256 and 1000 mod 256 respectively).

    • @li-on1
      @li-on1 5 ปีที่แล้ว +1

      @@theaurumtheory Still think Kjartan is right.
      Have a look at the definition of Arduinos "analogWrite" function: www.arduino.cc/en/Tutorial/PWM
      Quotation: "A call to analogWrite() is on a scale of 0 - 255, such that analogWrite(255) requests a 100% duty cycle (always on) [...]"
      Also, having a look at the source code reveals that for values (other than 0 or 255), a function named "sbi" is called which is defined as:
      "#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))"
      Soo now I was wondering bc. just using bitwise OR operations would not stop the actual "number" from being more than one byte.
      Then I found this interesting blog post: www.txplore.com/blog/16248/10-min-pwm-overflow
      Long story short, he tells that the Atmega used by the Arduino Uno has an 8 bit register for PWM.
      Using 8 bits (1 byte) the maximum number possible in decimal is 255 (= binary: 11111111) and more bits will just "overflow" and wont be used.
      In this video, he uses 1000 which is 1111101000.
      Taking the first 8 bits only, we get 11101000 which is equal to using the value 232.

  • @mpampissougidis9880
    @mpampissougidis9880 6 ปีที่แล้ว

    Very good video! I dont understand the last thing you do. I understand that we use mosfet like a switch , so when we give +voltage to Gate the circuit is closed and when we connect Gate to Ground the circuit is open (and the fan stops). If we give analogWrite(Gate,300) and analogWrite (Gate, 1000) we give a voltage bigger than the Vthreshold to the Gate. In both ways we activate the circuit. But the Gate is like a switch so what exactly increases the fan speed?

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว +1

      Since we are not using a analog pin, but a digital PWM pin, we don't change the voltage on the gate. It's always 5V. PWM turns the 5V on and off again, very fast. If we using analogWrite(Gate,300), means that 300/1024 of the time of a duty circle the 5 V is applied. The rest of the time, it is set to GND.
      It works like the part, where I connect and disconnect the 12V of the battery to to fan manually very fast th-cam.com/video/Pw1kSS_FIKk/w-d-xo.html .

    • @mpampissougidis9880
      @mpampissougidis9880 6 ปีที่แล้ว +1

      I understand , thank you very much.

    • @fantominsider2860
      @fantominsider2860 5 ปีที่แล้ว

      @@nenioc187 Just to elaborate the my question.. in other videos the the code is explained as analogWrite(Pin, DutyCycle).. so Pin is the digital pin no. to which the Mosfet gate is connected(here, pin no 10).. and the dutyCycle should be max 255.. but in the code, it is written as 300 which you said 300/1024 of the time... now my question is if i write 255 instead of 300.. will it count as 255/1024 of the time or the highest dutyCycle value for the gate..? and why.. It will be a great help if you pls explain. Thanks.

  • @hidayahawalludin8855
    @hidayahawalludin8855 7 ปีที่แล้ว

    Understand clearly. Thanks.
    One question, in order to put temperature sensor (LM35DZ), just install its VCC to the 12V, GND to Ground and the Output to Arduino ANALOG IN.
    Is it correct?

    • @nenioc187
      @nenioc187  7 ปีที่แล้ว +1

      I've read the datasheet of the LM35. It's operating range is from 4-20V. So you can even connect it's VCC to the VCC of the Arduino. GND to GND of the Arduino - of course. And the Output to an analog input of an Arduino, that's correct.
      But without a library for it, you won't get Celcius or Fahrenheit, but Voltage. You have to calculate the temperature for yourself.
      I've made 3 Vids about temperature sensors. Maybe there is one you would prefer to use ;-)

    • @hidayahawalludin8855
      @hidayahawalludin8855 7 ปีที่แล้ว +1

      Thank you so much for the reply. Much appreciated. Will watch the videos later. Thanks.

  • @jumbo999614
    @jumbo999614 4 ปีที่แล้ว

    In my country i can only find IRF540N. Can i do the same as this video?
    Anyway 3rd wire (yellow) of the fan is not important right?

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว +1

      That depends on your needs. Check the datasheet. The IRF540N can handle a max. 100V @ 33A.

  • @MikeSmith-gy6sq
    @MikeSmith-gy6sq 4 ปีที่แล้ว

    Thank You very very much! You solve my problem!

  • @rapunzeleh546
    @rapunzeleh546 4 ปีที่แล้ว

    perhaps you can tell me because i can't seem to figure it out and can't find anything or google, and nobody has answered the question. if you used a 5v fan, how would you wire it?

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      Exactly the same, except you'd need a 5V supply for the positive wire of the fan.

  • @naveenrs8517
    @naveenrs8517 3 ปีที่แล้ว

    if am use use 2 temperature sensor and 5 pc fan for cooling purpose
    is it possible to run at separate and whole fan at same time..?
    am lot of double actually is possible if not
    how did i done this project..?

    • @nenioc187
      @nenioc187  3 ปีที่แล้ว

      Of course you can control multiple fans separately. You'll need a separate PWM pin and a mosfet for each fan.

  • @pqcamh228
    @pqcamh228 4 ปีที่แล้ว +1

    for someone that is trying to use it with 3.3v operating board(like esp32),this will not work cause irf530m need at least 4v to drive the gate,use other with lower max VGS(th) instead like irl3713 ,this one needs 2.5v

  • @emastino6152
    @emastino6152 4 ปีที่แล้ว

    Hey y’all
    Just started arduino and was curious as to how he input a value of 1000 in the analogWrite function. I thought this only took values from 0-255. Thank you!

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว +1

      You're right. It's 0-255. A glitch in making this video.

  • @MoschosKoupoukis
    @MoschosKoupoukis 4 ปีที่แล้ว

    Great video thank you so much! Only that I did exactly the same circuit and used the same Mosfet but the analogWrite(..) does not work. While digitalWrite works and turns on off the fan, when I try to use slower speed by using analogWrite the fan goes OFF completely :(
    My problem is that the fan is quite loud and i want it to operate at slower speed and that is perfect with analogWrite.... I used also the GATE 10. Any ideas?
    For the moment with this code is quite silent but i need analogwrite to work, don't know... will check it more....
    #define Gate 10
    void setup() {
    pinMode(Gate,OUTPUT);
    }
    void loop() {
    digitalWrite (Gate, HIGH);
    delay (200);
    digitalWrite (Gate, LOW);
    delay (1200);
    }

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว

      Have you tried using value range from 0-255?

  • @KenfieldZ3
    @KenfieldZ3 3 ปีที่แล้ว

    Can you use a bipolar juntion transistor instead of the mosfet? For example the PN2222 bjt to control a 12V pc fan

    • @RexxSchneider
      @RexxSchneider 2 ปีที่แล้ว

      It depends on how much current the fan takes. You need current to drive the base of the 2N2222 and the Arduino can only supply 20mA maximum, which limits the available collector current to about 200mA for driving the fan. MOSFETs are much better for this particular job as they draw almost no current into their gate.

  • @gamingnerd6749
    @gamingnerd6749 ปีที่แล้ว

    Very Helpful thank you so much!

  • @vladhristov2316
    @vladhristov2316 5 ปีที่แล้ว

    You have some resistor. What is the measure of it, and which pins is connected to do? Thx

  • @shvideo1
    @shvideo1 3 ปีที่แล้ว

    You seem to have a 3 wire fan. Isn’t the 3rd wire for speed control with a PWM? Or is it feedback?

    • @nenioc187
      @nenioc187  3 ปีที่แล้ว

      Not sure. I needed a fan for demonstration and that one was the only one laying around.

  • @FOATE
    @FOATE 4 ปีที่แล้ว

    I've seen some transistors have source, gate and drain and others have collector, base and emitter, is there a difference?

    • @nenioc187
      @nenioc187  4 ปีที่แล้ว

      Usually you're using collector, base and emitter when referring to transistors and source, gate, drain when you're talking about MOS-FETs

  • @skytecrobotics422
    @skytecrobotics422 6 ปีที่แล้ว +1

    Amazingly explained

  • @namename7235
    @namename7235 6 ปีที่แล้ว

    Besides in programming, does the Arduino need to be plugged in for everything to function

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      The Arduino needs to be plugged in for:
      - Programming
      - Output to the serial monitor on your PC
      - Or just for powering the µC (you could also power the Arduino differently)

  • @gangger89
    @gangger89 3 ปีที่แล้ว

    thx, good explanation of the mosfet.

    • @nenioc187
      @nenioc187  3 ปีที่แล้ว

      My pleasure!

  • @brettgralinski5824
    @brettgralinski5824 6 ปีที่แล้ว

    can you tell me please what transistor is needed and if it can be used with a 4 pin pwm 12 fan? What is the amps about in a transistor? I notiice mosfet transistors with wide range of amperage and the same volts. Thanks

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      4 pin fans work a little different. I'll put this topic on my video-bucket list. The amps on the transistor indicates the maximum current that the transistor can handle before blowing up ;-)

    • @brettgralinski5824
      @brettgralinski5824 6 ปีที่แล้ว +1

      thanks man

  • @softa74
    @softa74 6 ปีที่แล้ว

    Hi, nice explanation. I'm on a project and I use the IRF540N over which I shoot 12v, but the problem is that when the gate is open at the exit of the drain at 11.45v and the transistor heats up when it drops the voltage on the gate. How do I get rid of it?

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      You'll always get a voltage drop with a MOSFET. They have a inner resistance value. There are MOSFETs with lower resistance, but you won't get the exact same voltage you'll put in. That's also the reason the MOSFETs are heating up. You should use them with a heat sink.
      When the output voltage is essential, you should use a relay, if possible.

    • @softa74
      @softa74 6 ปีที่แล้ว

      Thanks for the reply, I will definitely put a cooler, I need to adjust the fan speed and adjust the voltage on the gate using the arduino PMW.

    • @nenioc187
      @nenioc187  6 ปีที่แล้ว

      Usually a fan doesn't mind if it's 12V or 11.45V. Alternatively you could provide a little more than 12V on source.

  • @vishnuvardhanaleti7846
    @vishnuvardhanaleti7846 5 ปีที่แล้ว +1

    Thanks bro you are awesome

  • @vaidmostafa8297
    @vaidmostafa8297 2 ปีที่แล้ว

    it was best explain about transistor

  • @TheOmega1102
    @TheOmega1102 4 ปีที่แล้ว +1

    Thank you that helped very much ;)