Incredible. Finally someone who's building their code around their layout and not copying the code and pasting it .... hats off brother. So informative.
@دعلاءجاويش2 жыл бұрын
Where ?
@zaynefontes46934 жыл бұрын
Bro this worked like a charm. Using this to pull in cool air into my electrical enclosure for my mobile solar panel kit to prevent a greenhouse affect. This is super useful because it will only use power when necessary to cool the enclosure what with the PWM and being able to set the desired temp. Thanks so much for this great video. This was basically the first time I was able to successfully make something work with the Arduino other than turn on an LED lol.
@carlch8907 Жыл бұрын
There's an observation about that gate drive... Whenever you are PWM switching an inductive load (i.e. like that fan), without a gate resistor, there's a good chance that gate is going to ring (oscillate), that might cause electrical noise issues that could interfere with other circuits, including parts of the microprocessor, especially if you are making that microprocessor to multitask. It happened to me with some serial data I was using, it looked all erratic and did not know where it came from until I hooked up a scope to the power supply line, you could see all kind of noise along... At first I thought the freewheel diode alone and the decoupling capacitor would eliminate good part of the noise, but it did not. The gate resistor was the saver here...
@treebeard22203 жыл бұрын
Thank you for showing the wiring of the mosfet clearly on the breadboard, and the details of the shared grounding. I wasn't sharing the ground properly, but now I have got the temperature control working, thanks to this video (and it is the fourth that I have watched looking for enlightenment). I am using a k-thermocouple and an LCD display but the mosfet circuit is the same.
@BOBANDERSON51507 жыл бұрын
I REALLY enjoy your videos. You really explain everything in great details. Keep up with the awesome tutorials!! Subscribed for life!
@emmanuellatag54827 жыл бұрын
BOB ANDERSON up hnhAaw s d
@olvano3 жыл бұрын
thank u very much ,i looked all over KZbin for help ,to under limiting system your circuit is the only one that made sense .now im finish. my on or off grid ,anti-back-feed , chinese solar grid tie inverter diy ( simple energy limiter ) with arduino. Thanks again :)
@chanphongnguyen91725 жыл бұрын
I borrowed your idea for our final project, thank you a lot. What an amazing video.
@cr1zmo8565 жыл бұрын
Hey i was wondering what did you use to provide the 12 voltage for the fan?
@michaelkenney81847 жыл бұрын
Greatly appreciated the extent in which you explained your code. Wonderful job!
@jeffschlund86225 жыл бұрын
"what the heck is up guys" -subscribed
@stubbornshark54753 жыл бұрын
Thank you, exactly what I needed. Also interesting you used a voltage divider on the A0 pin, that is a nice touch with the R1, cheaper than the TMPs used in many other applications. Additionally, 12V is probably better than Mains, so this is a relatively safe project.
@Dally_Sparkles5 жыл бұрын
You legend, exactly what i was looking for... I'm making solar powered cooling fans for beehives. using a Arduno Nano.. charge controller, lithium battery and some solar panels.
@vaizluca5 жыл бұрын
why were you making cooling fans for beehives?
@Kntryhart6 жыл бұрын
I just replicated this setup...works as advertised. I opted to use a IRF540 MOSFET. Thank you for posting!!
@survivor3515 жыл бұрын
I did this circuit with another transistor but when the fan work witout %100 power, fan works with a like beep sound, ur circuit a problem like this
@robmormile39113 жыл бұрын
@@survivor351 bit late this response but use a 470uf 50V cap in parallel with your fan output wires. this will completely suppress the pwm noise.
@NimishSomani Жыл бұрын
00:01 Creating a temperature-controlled fan controller using an Arduino and a thermistor. 01:57 Arduino allows for flexible control of fan speeds based on temperature. 05:28 Explaining the circuit setup for controlling fan speed using MOSFET 07:10 Arduino Temperature Controlled Fan Speed Wiring 10:51 Setting up the sensor pin and voltage divider network. 12:44 Understanding the temperature sensor readings. 16:22 Pulse Width Modulation (PWM) controls fan speed based on sensor values. 17:57 Explaining the fan's power startup and operation with PWM. 21:17 PWM control allows fan speed adjustment based on temperature. 23:08 Using fan speed control based on temperature sensor readings. Crafted by Merlin AI.
@vidabuena1013 жыл бұрын
Have been watching this video repeatedly for my project, and it helps a lot! Sad that Jacob is not uploading new videos...
@borsi993 жыл бұрын
Thank you so much for this very interesting video! You explained everything so well as a beginner in arduino I will try to rebuild this circuit. Wish you all the best and I hope you‘re going on with such interesting projects. Boris. 🇨🇭
@borsi993 жыл бұрын
Hi, I wanted to tell you that your project is very fine to me as an arduino beginner! One question: is it normal to hear the ringing sound of the fan maybe coming from pwm? Is there a solution against this ugly sound? Thanks! Boris, Swiss
@hippoeug7 жыл бұрын
"WHAT THE HECK IS GOING ON GUYS"
@romanandmel69062 жыл бұрын
i would like to be good at this stuff but I suck, I have been looking around for a simple fan controller and this one Rocks, Simple and it works great, GOOD JOB
@antoniomusico7 жыл бұрын
Thanks guy for your explanation! Eventually I used a MCP9700-E/TO temp sensor, instead of the thermoresistor and the resistance, and it worked perfect! :)
@alkhashtee6 жыл бұрын
You are the beast of ARDUINO . Thank you very much
@StanSorochan4 жыл бұрын
Sweet, thank you! Just need to wait for the parts to arrive and I'll have a controlled active cooler.
@jopplehead5 жыл бұрын
Thank you much. Great video, clear and clean. Much simpler than I expected. I need to choose a mosfet that will handle a 2 amp 200cfm 12vdc fan. My only trick now is how to mount the thermistor to my RF amp heatsink. I think I will give this a try. I was just going to switch the fan on using a relay and some op amp temp circuit, but the pwm capability of the Arduino is just too cool not to try. Take care :)
@megabithero7 жыл бұрын
Now if only this guy taught my circuit analysis classes
@TonyRios7 жыл бұрын
*_Basic Engineering Circuits_* BOOK
@paulchan67206 жыл бұрын
well explained, i have learnt a lot from your videos !!
@agstechnicalsupport7 жыл бұрын
Thank you for the instructive video on temperature controlled fan.
@angelugalilea51695 жыл бұрын
Hi Good day .
@wowzande2 жыл бұрын
Trying my hardest to follow lol i have fans and a arduino im trying to cool down a car amplifer on its heatsink when the temperature goes up. I will study this video as reference. Thank you for this awesome information
@Hardeepsingh-re8xn Жыл бұрын
well done sir...very informative video.....thanks for making
@danielorellana86074 жыл бұрын
Good video my guy, question though: what pencil is that because that looks really cool
@cleoagash3 жыл бұрын
steadler may be
@sebastiangeppert75067 жыл бұрын
Awesome video. Thanks for the detailed explanations
@celtichongy5 жыл бұрын
Excellent project Jacob.
@UlysseLouigene3 жыл бұрын
Very nice, I was going to work on a similar project using a relay to turn on the fan. I like your idea better. Thanks
@Alpejohn5 жыл бұрын
What the heck is up dude! (I laughed alot of your intro! Lol) Would it be possible to replace the temp sensor with a potentiometer? So i can control the speed up and down how i want? And i guess its possible to read the RPM, and "print" it to a display or something? Im figuring out how i can make a fan controller that shows fan rpm and can control pwm fans (for testing only, not to use in a computer or such things) I just want to be able to turn it up to full blast etc.
@PiefacePete464 жыл бұрын
That's a useful video thanks Jacob. Perhaps adding a piezo buzzer that sounds when sensorVal is greater than 800? I realise there is no end to the list of "enhancements" that could be added.
@markconger80495 жыл бұрын
I’ll check the channel for follow up videos but a great next step would be to show an application of this with a much smaller Arduino (or clone) and a smaller fan in a project such as a Raspberry Pi enclosure.
@MrBobWareham6 жыл бұрын
Loved the video with a good explanation of the circuit thanks so much but a quick question where did you get the pencil? would love to buy one thanks Bob - UK
@DeezyDev5 жыл бұрын
silver promecha pencil, 3:54 you can kinda see the name. i thought it was cool too so i was trying to find it
@VIRVL Жыл бұрын
Very Nice Jacob.. very good explained. THank you.. i am working on a Irrigation PRoject.. i will share it with you if you want.. i m. in to the nodemcu. and oled..
@RD-ni7qe4 жыл бұрын
Genuine question: would it not be easier to simply use a 4-wire PWM fan and control it directly via your PWM output pin, rather than driving a Non-PWM fan via a MOSFET? Would love to hear your thoughts on this, if you think there are Pro's and Con's, etc?
@l5-cs.4 жыл бұрын
I clicked on this without knowing that it was temperature controlled and I thought “Hm CoUldNt yOu jUst UsE a pOtEnTiOmetEr”
@mattheweurich334 жыл бұрын
I thought the same thing.. however, with the temp sensor, the Arduino can be programmed to control the fan for specific temperatures.
@l5-cs.4 жыл бұрын
@@mattheweurich33 I just didn’t notice it was temperature controlled
@SC-kd5ln2 жыл бұрын
Perfect video for me, but instead I am doing this with the radiator of my car, so the fan of the radiator turns on when the coolant temperature reaches higher than normal temperature
@johnheather2037 жыл бұрын
One more question. Do you think it is possible to display the temperature change from the circuit on a display? If possible, let me know how i can integrate in the circuit. Thank you very much
@grinerpolevault5 жыл бұрын
This was an very helpful video, thanks so much! Question that you or perhaps another viewer could answer - Can I control the fan speed using a PWM signal sent to a MOSFET (such as a IRFLZ44n) or does the MOSFET only act as an "On/Off" switch that is controled by the PWM? Thanks.
@lamjeri5 жыл бұрын
In short, yes, you can use the IRFLZ44n to PWM controll a fan. Both of your questions together are a bit puzzling though. You can control the fan speed by using the MOSFET you said and the MOSFET does only act as an On/Off switch. PWM signal has a duty cycle and a frequency. Frequency of 1Hz (unreal, only for demonstration purposes) says that the signal repeats every second ( Time period = 1/frequency ). And duty cycle of 75% says that during this 1s time interval, the device will be on for 0,75s and off for 0,25s. You can make a PWM signal by simply switching power on and off by hand (nice way to test it). It works ok for a fan, but light sources, need much greater frequency.
@andreswanepoel48265 жыл бұрын
Great & simple solution. Well done
@ReflectingMe20247 жыл бұрын
Jacob - I am totally new to Arduino but something struck me and I am curious to ask you. Why do you use the PWM output of the Arduino rather than an analogue out to provide you with the 0-5v into the MOSFET? Would the fan be better controlled with an analogue 0-5v signal to control the 0-12v supply circuit?
@jacobdykstra84997 жыл бұрын
John Burns analog out on arduino is not true analog, it is pwm. It can be filtered into analog voltages but mosfets are really good with all the way on or off states and not in between. most likely the mosfet will latch into the full on state once the threshold voltage is reached.
@ReflectingMe20247 жыл бұрын
Thanks for the reply Jacob. I'm new to Arduino and when I wrote the initial reply I thought the Uno had analogue outputs - when really they're simply the digitised PWM outs as you say. I am thoroughly enjoying coding and learning - just managed an LM35 temp sensor thing, and am going to work on a huge (for me) project which will utilise some of what I learned watching your vid, so thanks for that.
@zakielharbour91372 жыл бұрын
Hi I only have a 2k thermistor which resistance would you recommend to put on the second resistance. Also, im using a NPN transistor so what resistance would you put before the gate
@oOcitizenOo6 жыл бұрын
Awesome tutorial! Thanks!
@ryandyc3 жыл бұрын
If you are running a program on your computer that gives CPU temps, could you use those values to communicate with the Arduino and drive the fan based on those values?
@nateplotnikoff11977 жыл бұрын
Could you not have your thermistor wired as a switch? Negative to negative post on which ever system is is your wanting to keep cool, say it was a heat sync. Mount the thermistor to the heat sync and run your + wire threw the thermistor to the fan.....? Just a question, lots of good info in your vid.
@JohnSmith-td6dn7 жыл бұрын
Whew guy take a breath...
@Inertia8885 жыл бұрын
Intel's PWM fan startup limit was, I think ~30%
@rodneygian127 жыл бұрын
Great video. Very insightful. I have a few questions though. Can the 2N7000 handle a 3.3V PWM? and Does it heat up significantly when load is connected? How much is V across collector and emitter? Thanks in advance
@jacobdykstra84997 жыл бұрын
Rodney Yrureta according to the datasheet the maximum gate threshold voltage for a 2n7000 is 3v so yes 3.3 should trigger the gate but it is pretty close, however, 3v is the max so it should be fine. The transistor does not heat up much under normal operation. It is a switching transistor so the voltage drop across it is pretty low. It should remain cool switching any current less than its 500mA pulsed rating.
@rodneygian127 жыл бұрын
Ow. great videos and fast response too. You are the man!! LOL maybe I can add a resistor before the transistor to lower it down or is it more advisable to find another trans? I'm trying to control with pwm a 12V at about 400mA.
@emiliodubois14337 жыл бұрын
Great video!!! I know this vid is almost a year old, but anyway, here is the question: If I want to control the fan with a potentiometer, the "output" part of the system, is it just the mosfet and the fan? Thanks in advance!
@jacobdykstra84997 жыл бұрын
Emilio Dubois that is correct
@brtszczesny6 жыл бұрын
Do you have some plans to create video with DS18b20 ? And maybe how to control PWM fan (4 pins)
@schogaia7 жыл бұрын
This is just the perfect video for my upcoming arduino project. I'm planning to build a fan that keeps my smoker at a constant heat for various longjobs like pulled pork. You mentioned that the mosfet isn't powerful enough for a project like this. Could you be so kind and recommend a mosfet that will do the trick for sure? Thank you very much!
@TwoGunz20086 жыл бұрын
schogaia No he says the ardiuno is not powerfull enough to drive the fan, the mosfet is fine.
@elecnut82117 жыл бұрын
Good job. Thank you for making this. More videos ?
@Pedozzi5 жыл бұрын
fantastic video, what kind of fan are you using?
@artursspiridonovs47716 жыл бұрын
Very solid video. Any chance you know, how to set up a circuit, where a heater is turned on once temperature falls below a certain point and a cooler is turned on once it is over a certain threshold by using a thermistor?
@lennartweber150211 ай бұрын
I am a genuine rookie. That being said: Wouldn't u just need to replace the temperature resistor that lowers it's resistance the higher the temperature gets with one that increases its voltage the higher the temperature gets and otherwise use the same circuit?
@AdnanSharifTripleFluffyOG3 жыл бұрын
what are you using for your external powersupply to the DC fan?
@emiliodubois14337 жыл бұрын
Do you get sound from the transistor? Tried with a mosfet and the 2n2222 and both are doing a whistle when not at full speed.
@isaacr11666 жыл бұрын
Hey @Jacob Dykstra, what resister are you using?
@Kntryhart6 жыл бұрын
Process needed to replace thermistor with MAX6675 thermocouple.
@nitishjha77095 жыл бұрын
if you did this same project with max6675 help me please. thank you
@lukasmunster89083 жыл бұрын
Hi, can I use the same 5V pin from Arduino (the one that goes to MOSFETs gate) for fan powering (instead +12V in diagram, see scheme at 0:44 in video)? In other words, the 5V Arduino pin will be connected to MOSFET gate, MOSFET drain will be connected to negative fan wire, positive fan wire will be connected to 5V Arduino pin. Could this work or (i) should I include 10k resistor between 5V pin and MOSFET or (ii) should I use lower voltage 3.3V pin of Arduino to connect positive fan wire and sacrifice a bit of small 5V fan speed..?? Thanks for advise.
@muhammadsufyan52307 жыл бұрын
bro i need list of things which are you use in this project :
@timmundt52365 жыл бұрын
1x 10k Resistor 1x 10k Thermoresistor 1 Mosfet or 1 Transistor (but draws more current) 1x Arduino Uno 12V (or 5V) DC Fan Wires
@jsgoh56944 жыл бұрын
@@timmundt5236 are the wires used connecting to the fan different from other wires? They don't look the same
@StanSorochan4 жыл бұрын
@@timmundt5236 Thank you!
@MexiMaker7 жыл бұрын
is there any risk of having the motor emf Fry your board? I think heard that diodes are recommended for motors for that reason, but I don't know much about it.
@zyphit7 жыл бұрын
Would this setup benefit from a flyback diode? Something to limit risk to either your 12V power source or the mosfet?
@jacobdykstra84997 жыл бұрын
It's good practice yes but the benefit in this particular case would not be there because brushless dc fans already have them built in their driver circuitry. Also it is very common for mosfets to have some sort of reversed biased diode there for back emf. If the fan was not a brushless fan with its own driver circuitry then yes a diode should be used. It won't hurt to add the diode but with these fans there is no benefit.
@bitsurfer01015 жыл бұрын
What happens if you have an internal short on the MOSFET? Is that going to fry the Arduino?
@tomhoekstra10882 жыл бұрын
Dear Jacob, I want to set this up in my livingroom so noise should be -0-. I was warned that the use of pwm makes noise and only didappears at full speed. Is this true? Rgds Tom Hoekstra
@peterlorne70777 жыл бұрын
Nice video! What Mosfet did you use? / Peter
@yvesboivin87023 жыл бұрын
2N7000
@peterlorne70773 жыл бұрын
@@yvesboivin8702 Thank you. !! Have a nice sommer. / Peter
@chenegarnxt5 жыл бұрын
Great tutorial, thanks for sharing!
@Cornflakes6915 жыл бұрын
Amazing tutorial thank you! When would you use a PID controller for the PWM?
@justinfielding6 жыл бұрын
You don't have any issues with noise from the fan while under PWM? I'm driving a L298N with my arduino but at 50% duty cycle I get a really annoying noise from the fan.
@jacobdykstra84996 жыл бұрын
Justin Fielding that is dependent on the fan used. You can change the PWM frequency but it is a bit more involved. I believe libraries have been created to change the PWM frequency for arduino. You can also program it using AVR C if you have the experience with it. You could also just try different fans and see how they sound.
@justinfielding6 жыл бұрын
Hey Jacob. I had done some research, I tried changing the PWM frequency but that didn't really help - even with the frequency at 31.5Khz which should be inaudible. Testing the fan with a 4.8v battery it runs at reduced speed without the noise so it's 100% the PWM. I have read about using a basic RC low pass filter to smooth the PWM output in to an analog voltage - I tried experimenting with a few randomly selected components without joy - needs more work. Seems much simpler in your example so I'm thinking I'll try with a MOSFET rahter than the L298N (H-bridge) before getting in too deep!
@RubberDingBat4 жыл бұрын
My serial monitor is only showing a reading of 85, I had it varying before but now its fixed at 85. Does that indicate that the Thermistor is faulty?
@snnwstt7 жыл бұрын
The Arduino Uno specs are 40 mA per pin other than 5V and GND, 200 mA total (other than 5V and DNG), 1 A max through 5V and GND. So if the motor draw more than 1A, the ground, of the Arduino, may be unable to sink that current?
@andersb72165 жыл бұрын
Amazing detail!
@Chikiwikie4 жыл бұрын
Exactly what I need Thanks.
@jeepcommando2 жыл бұрын
Would the temperature sensor drain a 12 volt battery?
@rapunzeleh5465 жыл бұрын
what am i missing here... i can get the thing to work with a transistor and 12v fan and a separate power supply for the fan. but i want to run the entire thing from a bank of 12v batteries that run my beehouse/hives etc. this is to turn on small fans to extract humidity from each hive in the winter when they're all insulated up. obviously i already have the stepdowns to go from 12 to 5vdc, but i just can't noodle the wiring for the 5vdc fan... it should be easier right? just set the value of the fan speed based on the output of the sensor pin, and.... and... that's the part i don't seem to get. if i just make two spliced wires so the 5vdc goes to the sensor and the fan, clearly it will run forever without the logic. so it has to go in and out of either the nano (want to keep everything small and cheap - multiple hives)
@jeffbanfieldsflwr35372 жыл бұрын
If I wanted to get into this stuff, what classes should I take?
@19999lmnjn Жыл бұрын
would it be possible to control a fan like this with a sound sensor? and additionally have the sounds sensor interprut live music and have the fan respond to the music?
@schnasndasn1504 Жыл бұрын
Yes it would. A sensor is basically nothing else than an input like a button, but the button can only send 1/0 (on/off) signals, whereas a sensor can usually send a range of signals (depending on the type of sensor). In your arduino code you read the value of the sensor and react to it, like turning on a fan if the sound level reaches 100db for instance.
@JasonCarmichael4 жыл бұрын
Great video. Only one A+ not A++. Tabs are better than spaces! 😆👌
@xerejuneseve63337 жыл бұрын
You can do it simple with one mosfet,two resistors and thermistor.
@scottcowen40715 жыл бұрын
Can you run a 120v fan on this setup with a relay or does it take more hardware then that?
@jamesharvey36186 жыл бұрын
I'm having some issues with the fan not turning off,... Would you be able to help me out with this issue?
@nadiashifudin38214 жыл бұрын
Hi, I'm doing a floor brush that will move circular, and the speed can be adjusted. Do u think this motor suit the model?
@Kntryhart6 жыл бұрын
I tried to reverse the code to have fan slow as temperature increased (as in a heater). But, the fan got into a loop where it would stop, run at full speed, stop, run at full sped, and so on. Any suggestions?
@sombdywakehicks4 жыл бұрын
Why don't you use a IFRZ44N?
@evertonbarnes37808 жыл бұрын
yes I have a little idea about pwm from 555 timer however my issue is that I had some Servo motor that has in iGBT from Mitsubishi pm20cee060-5 i need to ues 555 to run the motor for control of it THank you everton
@jacobdykstra84998 жыл бұрын
Hmm yes servos typically use a 50Hz PWM wave with ~0.5 to 2.5mS high pulses to control the position. What you need to is set up the chip to run at 50hz and set the on time to that range of values to control the servo. I have done this with a microcontroller before. I'm almost certain there is a video explaining how to operate servos with a 555 if so I will send the link. If not I will consider this project and perhaps do a video on it as it could be quite useful. Also if there isn't a video already there is probably a reason. Perhaps the 555 is difficult to operate in this very fine range of duty cycles. I will look into it and let you know what I find out.
@jacobdykstra84998 жыл бұрын
Looks as if you may have hit gold. I did a search and well this is the best I could find kzbin.info/www/bejne/qqqph4OBf5KXg7s It does the job I guess but there is zero explanation, the guy doesn't explain the circuit at all. I will look more into this over the week and see if I can create a video better explaining a 555 servo control circuit.
@thryambakganapathy10865 жыл бұрын
what is the other side of the alligator clips connected to
@turgor586 жыл бұрын
Should be in the Frysk(north of the Netherlands) language too! Thats where the Dykstras come from isn't it?
@bestgoprovideo6 жыл бұрын
Can you give me a list of the pieces that I need to build this setup?
@NurulIzzati-gh8sy2 жыл бұрын
will it still function if I replace the sensor with another temperature sensor such as DHT11 temperature sensor?
@DJJOAOMARTINS6 жыл бұрын
The noise with low voltage are OK for you? It seems it makes to many noise
@ROMMERBATISTA4 жыл бұрын
How to fix the fan noise caused by the pwm Arduino control?.
@shykitten556 жыл бұрын
Nice, but I would like to say that you "map" needs a bit of work. Rather than how you did it by increasing the lower threshold AND start value for PWM, set a lowest PWM value - as you did - but keep the original range. Ok, confusing: Let's try this: (simple version) PWMvalue = analogRead(); if (PWMvalue < value) PWMvalue = 0; That way if the PWMvalue < value the fan won't start. Then when above it starts at that higher value. So the working range for the PWM is easier identified and understood. You will need to also keep the maxvalue line of the code. Just a suggestion on how to simplify it.
@kikihun97262 жыл бұрын
I tried controlling an N channel mosfet but it always give the source to drain even if the gate pwm is 1 or 255. Can't gat variabled voltage.
@grovuflorian7 жыл бұрын
Hi there I would interested in buying a project like this! It's possible to buy from where? I have a garage and I will use a car battery ans 2 computer fans and I woudl like to connect with this board because I have a damp effect inside 😦 Thank you
@fischer16724 жыл бұрын
how can I do this with a water thermostat that has VCC (red), Ground (black), and Data (yellow)
@edlavertv23464 жыл бұрын
What is your description about this output
@pranavsinha74887 жыл бұрын
instead of a thermistor can we use LM35. if so what changes need to be applied?.
@Ahmedmyehia-iq5ul5 жыл бұрын
+1
@ahmedemad74847 жыл бұрын
hi another question can i apply this test with 3 phase ac compressor connected with inverter , and which type of transistor has been used in this test....thank you very much
@miketony20694 жыл бұрын
Very thorough thank you
@alexisentonfire7 жыл бұрын
I understand that in this case your switching the circuit on and off from positive to ground as a percentage of being fully on But what about a 3 pinout fan, Im trying to control a fan that has 3 pins, ones vcc ones signal and the others ground, I tried proving the 12v and the ground but when I use the analogWrite to control pwm signal it doesnot work, can you explain this??
@brzydka_i_bestia7 жыл бұрын
Usually 3-pin fans have VCC, Ground and a speed output so the motherboard can determine how fast the fan spins. To do what you want you need a 4-pin fan. These have VCC, GND, speed out and pwm in. You can also just PWM the VCC coming into the fan.
@dmiha04077 жыл бұрын
the 4 pin fans wont work with arduino because they need at least 5MHz PWM
@Rasmus09097 жыл бұрын
No they dont. It's a 25 KHz PWM for a normal PC 4 pin fan. Intel has a document on this.
@mitchibbitson80406 жыл бұрын
well i plugged a fan into my arduino mate pos and neg 2 holes spare
@mohammedomer71555 жыл бұрын
the one that he has is also a 3 pin fan if u would look closely.