Arduino Fan Control // 2-Wire, 3-Wire, and 4-Wire CPU Fan Speed Control and Measurement

  Рет қаралды 237,759

Science Fun

Science Fun

Күн бұрын

Find Science Fun Innovations, LLC on Facebook @sciencefun4u.
In this tutorial I will show you how to control 2-wire, 3-wire, and 4-wire CPU fans using an Arduino. With 2-wire fans and 3-wire fans, speed control is possible using an N-channel MOSFET and PWM. With 3-wire fans and 4-wire fans, it is possible to measure the fan speed using an Arduino input and a pull-up resistor. With 4-wire fans, speed control is possible directly with a PWM Arduino channel without the use of a transistor or MOSFET.
The Arduino source files are available here: sciencefuninnovation.gumroad.com . Your donations will help me to continue to produce educational and entertaining videos. Thanks for your support!
Look forward to a future video where I will use these fan control techniques to control the fan on a DIY hovercraft. Please subscribe to my channel and help me reach my goal of 1,000 subscribers by the end of 2020. Thanks for watching!

Пікірлер: 262
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
The Arduino source files are available here sciencefuninnovation.gumroad.com/l/ndbytc for a minimal donation. Your donations will help me to continue to produce educational and entertaining videos. Thanks for your support!
@teddyruxpin3811
@teddyruxpin3811 2 жыл бұрын
If it's mandatory then it's not a "donation". It's "for sale".
@TintiKili69
@TintiKili69 Жыл бұрын
2 wire code: float temperature; const int fan_control_pin = 3; void setup() { pinMode(fan_control_pin, OUTPUT); digitalWrite(fan_control_pin, LOW); } void loop() { temperature = float(analogRead(A0)) * 500.0 / 1024.0; if (temperature > 100.0) digitalWrite(fan_control_pin, HIGH); else digitalWrite(fan_control_pin, LOW); delay(1000); } 3 wire fan: int count = 0; unsigned long start_time; int rpm; void setup() { Serial.begin(9600); attachInterrupt(digitalPinToInterrupt(2), counter, RISING); } void loop() { start_time = millis(); count = 0; while((millis() - start_time) < 1000){ } rpm = count * 60 / 2; Serial.print(rpm); Serial.println(" rpm"); } void counter() { count++; } 4 wire fan: float temperature; const int fan_control_pin = 3; int count = 0; unsigned long start_time; int rpm; void setup() { pinMode(fan_control_pin, OUTPUT); analogWrite(fan_control_pin, 0); Serial.begin(9600); attachInterrupt(digitalPinToInterrupt(2), counter, RISING); } void loop() { temperature = float(analogRead(A0)) * 500.0 / 1024.0; if (temperature < 100.0) analogWrite(fan_control_pin, 0); if ((temperature >= 100.0) && (temperature < 120.0)) analogWrite(fan_control_pin, 126); if (temperature >= 120.0) analogWrite(fan_control_pin, 255); start_time = millis(); count = 0; while((millis() - start_time) < 1000){ } rpm = count * 60 / 2; Serial.print("The temperature is "); Serial.print(temperature); Serial.print((char)176); Serial.println("F"); Serial.print("The fan speed is "); Serial.print(rpm); Serial.println(" rpm"); } void counter() { count++; }
@robertthompson5908
@robertthompson5908 8 ай бұрын
Excellent how-to video. Gets right to the point with clear instructions. I will add that the wire colors on these fans are not standardized. I have a Delta brand 4 wire fan and black is ground, yellow is +12V, green is tachometer, and blue is PWM input.
@ScienceFunInnovations
@ScienceFunInnovations 8 ай бұрын
Yes. I wish everyone would standardize wire colors for fans, motors, stepper motors, etc!
@kduhtdkzrt
@kduhtdkzrt 3 жыл бұрын
After trying out 2 fan controllers from amazon, that both were rather dodgy tat, thanks to this tutorial I'm now turning two of my obsolete Arduinos into something actually useful. Thank you very much!
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Glad I could help! Thanks for watching.
@mrab4222
@mrab4222 2 ай бұрын
It's recommended to connect to the mosfet's gate through a current-limiting resistor because the current can be high briefly due to the gate's capacitance (charging when driven high and discharging when driven low). It's also recommended to connect the gate to ground through a pulldown resistor so that it can discharge and turn the mosfet, and thus the device, off when not driven or unpowered (a kind of fail-safe).
@ScienceFunInnovations
@ScienceFunInnovations 2 ай бұрын
That makes sense. Good tip!
@goblinking8510
@goblinking8510 6 ай бұрын
This video helps a lot! Starting my electronics journey, I have made a basic inverter circuit with two npn transistors and practiced soldering various thongs. Thought it was time to get an arduino and see how to control these computer fans that i got from a trashed computer, with just an arduino and not have to use a speed controller!
@ScienceFunInnovations
@ScienceFunInnovations 6 ай бұрын
Glad it helped. Good luck!
@lugaidster
@lugaidster 3 жыл бұрын
This is awesome. Just in time for my project. I want to control my radiator fans depending on the coolant temperature.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Good luck!
@petermuller608
@petermuller608 Жыл бұрын
Great Tutorial! Minor addition: your counter must be volatile, since it is written to by and interrupt and read from the main loop
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Great tip! I often forget to do that.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Many CPU fans require high frequency PWM (25kHz) to operate correctly. The Arduino by default delivers low frequency PWM, however, some extra lines of code can reconfigure the Arduino for high frequency PWM. If you have trouble running a CPU fan with an Arduino, you may want to try the technique shown in my latest video kzbin.info/www/bejne/j3OxdouNpZKanJI.
@danielchapman1930
@danielchapman1930 3 жыл бұрын
And just like that 4am on a Tuesday I found my next quarantine project.
@twitchmix9415
@twitchmix9415 2 жыл бұрын
the creativity behind this video is awesome! great video, subscribed!
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Thank you so much!
@AliAhmed-ez2zy
@AliAhmed-ez2zy 4 жыл бұрын
Hi! I have two questions about this project. Great vid btw! Firstly, why do you connect the ground of the Arduino to the 0V on the power supply? In addition, what Ohm value resistor are you using to connect the 5V to the yellow wire on the fan? I'm a bit of an intermediate but still a total noob sometimes lol, thanks for your help!
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Because the fan used 12V from the power supply and the Arduino was powered with a separate 9V battery it is necessary to connect the negatives together (common ground) for the MOSFET to work properly (since the MOSFET is connected to both). Otherwise, the fan might not have turned on/off when commanded. It may have turned on/off randomly, or not worked at all. For the yellow wire, I think I used a 10K ohm resisitor, but any value over about 5K should work fine. Hope this helps, and thanks for watching!
@jp040759
@jp040759 4 жыл бұрын
FYI It's Gate Drain and Source pins not sink
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Good catch, I always get those messed up.
@patrikjankovics2113
@patrikjankovics2113 4 жыл бұрын
I thought the same, but wasnt sure. But if you think about it a logical way, its wrong, because "drain" and "sink", you can't sink if you don't have a source, right? :D
@randomisem
@randomisem Жыл бұрын
For the 3 wire fan. Can i use 12v fan with the same instructions in the video?. For the red wire i connect to +12v and -12v from seperate power supply, and is it right to connect the -12v to the arduino's ground like in the video? im a beginner, thank you.
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Should be 12V (positive) and 0V (negative or ground). And yes I usually connect all my grounds together.
@jenshoumann5646
@jenshoumann5646 4 жыл бұрын
Thanks. I have been looking for this for quite some time. It works fine...
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Glad I could help! Thanks for watching!
@CollinBaillie
@CollinBaillie 3 жыл бұрын
Questions I'm left with after watching: 1. Does the yellow wire go to ground for each pulse? 2. (I rewatched the video, and this one was answered) is pin 2 capable of interrupts 3. What voltage does the PWM controller on the 4-wire fan work with? Min/max?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
1) The yellow wire shorts to ground twice per revolution. The pullup resistor allows the wire to go high again in between. 2) Pins 2 & 3 on Arduino Uno/Nano can do interrupts. 3) Not sure, probably different for each fan. 5V seems to always work.
@nisri1567
@nisri1567 3 жыл бұрын
good job! but i do have a question, would you mind telling me how to vary the voltage to be measured at the pin of the pull up resitor? ( 3 wire fan) thank you.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
You can use any pullup voltage that you need. Or you could use a voltage divider if needed to drop the voltage.
@squier5
@squier5 Жыл бұрын
That was very helpful video. I forgot to connect MCU's GND to power supply's GND. Everything is fine now :)
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Glad it's working.
@demirmahir
@demirmahir 2 жыл бұрын
Thanks for the video, I would like to implement fan control on a 3D printer enclosure and this is very helpful! At 3:58, what exactly do you mean by "use a 10KOhm resistor to pull the wire up to five volts"? There is no video of the wiring so I could not figure it out myself. Does these types of fan need a MOSFET as well?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
A 4 wire fan does not need a MOSFET. You connect the signal wire to 5V using a high ohm resistor (10-100K). When the hall sensors are triggered, they short the wire to ground. This creates a square wave that the Arduino can detect.
@jos4564
@jos4564 4 жыл бұрын
Great video. What is the function of the 10K resistor? Can I use a different resistor? What is the min/max I can use?
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
It holds the wire "HIGH" at 5V. Twice per revolution the fan shorts the wire to ground creating a "LOW". That way the Arduino can watch for the change in state. Any resistor between 1K and 100K should work, but 10k is pretty common.
@LakiuGamer
@LakiuGamer 3 жыл бұрын
Too high resistor would provide low current and arduino may not detect it, and a low resistor would provide higher current, more than arduino can handle
@CollinBaillie
@CollinBaillie 3 жыл бұрын
@@LakiuGamer But it's not used for current. It pulls the line 'up' (to 5v in this instance) so there's no ambiguity about the state of the line when the fan is not pulsing. When the fan pulses, the line connects to GND and the resistor holds the 5v back for the duration. When the fan disconnects GND, then voltage on that line goes back to 5v via the resistor. The resistor let's you hold the line high (5v) without getting a short circuit.
@_emanmodnar
@_emanmodnar Жыл бұрын
@@ScienceFunInnovationsI’m new to electronics and stumble upon this question too, and by going through the comment section of this video, I see that I’m not the only one who is a bit confused about how to properly make use of the tach-wire. All the videos I’ve found on the topic, all go briefly over the wiring and do not tell how the tachometer on the fan actually work, and how we can use this with our projects, and what to be aware of.. For instance: Does the tach-cable provide current or voltage itself, that I need to secure my device from? Can I use a 3V source with the tachometer as well? How do I hook up the multimeter to measure if the fan is pulsing per quarter or half turn? And so on.
@antonellacorcella9384
@antonellacorcella9384 2 жыл бұрын
Thank you for uploading this tutorial video! I have one question: why do you use the interrupt?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Interrupts are needed to get an accurate count of pulses. Without them, you might miss some.
@antonellacorcella9384
@antonellacorcella9384 2 жыл бұрын
@@ScienceFunInnovations Thanks. How does the interrupt work in this case ?
@grathado28
@grathado28 2 жыл бұрын
I found your video extremely useful because I was trying to send pulse wave modulation into day 3 pin without a mosfet lol I had no idea that that was a feedback wire
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Glad it helped
@ScienceFunInnovations
@ScienceFunInnovations Ай бұрын
Glad it was useful! Thanks for watching!
@ggsmith48906
@ggsmith48906 Жыл бұрын
Greetings Sir! Love your video! For the 4 wire fan it's not clear to me what you are doing with Pin 3 (blue wire). Is it simply outputting a voltage to the fan (0-5v)? Or does it have PWM signal on it? Edit: Disregard question. Just saw in your high frequency update video that Pin 3 is a PWM pin at 480hz. So that answers my question!
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Thanks for watching!
@TintiKili69
@TintiKili69 Жыл бұрын
2 wire code: float temperature; const int fan_control_pin = 3; void setup() { pinMode(fan_control_pin, OUTPUT); digitalWrite(fan_control_pin, LOW); } void loop() { temperature = float(analogRead(A0)) * 500.0 / 1024.0; if (temperature > 100.0) digitalWrite(fan_control_pin, HIGH); else digitalWrite(fan_control_pin, LOW); delay(1000); } 3 wire fan: int count = 0; unsigned long start_time; int rpm; void setup() { Serial.begin(9600); attachInterrupt(digitalPinToInterrupt(2), counter, RISING); } void loop() { start_time = millis(); count = 0; while((millis() - start_time) < 1000){ } rpm = count * 60 / 2; Serial.print(rpm); Serial.println(" rpm"); } void counter() { count++; } 4 wire fan: float temperature; const int fan_control_pin = 3; int count = 0; unsigned long start_time; int rpm; void setup() { pinMode(fan_control_pin, OUTPUT); analogWrite(fan_control_pin, 0); Serial.begin(9600); attachInterrupt(digitalPinToInterrupt(2), counter, RISING); } void loop() { temperature = float(analogRead(A0)) * 500.0 / 1024.0; if (temperature < 100.0) analogWrite(fan_control_pin, 0); if ((temperature >= 100.0) && (temperature < 120.0)) analogWrite(fan_control_pin, 126); if (temperature >= 120.0) analogWrite(fan_control_pin, 255); start_time = millis(); count = 0; while((millis() - start_time) < 1000){ } rpm = count * 60 / 2; Serial.print("The temperature is "); Serial.print(temperature); Serial.print((char)176); Serial.println("F"); Serial.print("The fan speed is "); Serial.print(rpm); Serial.println(" rpm"); } void counter() { count++; }
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
,
@extrememod_ahu
@extrememod_ahu 2 жыл бұрын
This is the video I was looking for! Just a question - I'm building a PCB for 4pin PWM Fan control dependant on temperature but struggling to understand what I could use to replace Arduino. I'd like to use the Arduino code for whatever microchip I can replace it with. Any advice? The fan is 12v 1A.
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Have you used an ATTINY before? I use those in some of my videos. They work with Arduino code.
@extrememod_ahu
@extrememod_ahu 2 жыл бұрын
@@ScienceFunInnovations I went with Atmel328P in the end and running N-channel Mosfet to regulate speed dpeneding on temeprature from NTC thermistor.
@robainscough
@robainscough 3 жыл бұрын
Excellent video!! I'm planning to use an SHT15 (temp/humidity) sensor with an Uno R3 as the "controller" for the fan ... my sketch will set output based on the temp/humidity values. Any hints on SHT15 are welcome?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Sounds great! I haven't used the SHT15 yet. Hope it goes well!
@parinya38888
@parinya38888 2 ай бұрын
I’m grateful it helpful for me.
@ScienceFunInnovations
@ScienceFunInnovations 2 ай бұрын
Glad it was helpful. Thanks for watching!
@einsteinx2
@einsteinx2 2 жыл бұрын
Thanks for doing this overview! I just bought a few 2-wire 12v computer fans that I’m going to use to cool some USB hard drives. I was originally planning to just hook them up to a 12v power supply and call it a day, but I thought maybe I could control them with an Arduino (or an ESP8266 to get network control) and did a quick search on KZbin. I’m glad I did because this is exactly he info I needed. I knew I would need some kind of transistor, and could probably PWM control a non-PWM fan, but having the circuit laid out and tested already is going to save me a bunch of research and testing time! Thanks again!
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Glad it was useful!
@gatzetech3079
@gatzetech3079 3 жыл бұрын
I read somewhere that 3-wire fans needs a stable DC voltage via for example a dc-dc converter and not controllable via (high current, in this case not very high current, but it is not a signal PWM just like the 4-wire fans) PWM.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Pure DC voltage (e.g. battery) is usually preferable than pulsed (PWM), especially with brushless motors.
@ABM261-zi2gl
@ABM261-zi2gl 4 жыл бұрын
I want to use the 4 wire fan for a project. But, will only be using the positive and negative wire. Do you know if the fan will run at the highest speed without connecting the blue wire?
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
It should run at 100% speed with just red and black.
@RixtronixLAB
@RixtronixLAB Ай бұрын
Nice video, keep it up, thanks :)
@ScienceFunInnovations
@ScienceFunInnovations Ай бұрын
Thanks for watching!
@binbin6525
@binbin6525 2 жыл бұрын
Thanks for your sharing. Your video is informative to me. It really helps me a lot. Again thank you.
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Glad to hear that!
@lukmannugraha9846
@lukmannugraha9846 3 жыл бұрын
Thank you for uploading this tutorial video, sir. This is very helpful for me. But I have a question, while I'm doing this project I made a code to decrease the speed of the fan every 10 seconds by adjusting the PWM cycle. It works perfectly. But while I look to the RPM value of the fan speed, It shows a random RPM value that is doesn't match or refer to my PWM value. The RPM value sometimes shows faster while my PWM value in low cycle. Thanks for reading this comment and hopefully you can help me for this case.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
It is likely that you are picking up noise from the fan. A low pass filter (resistor/ capacitor) should clean up the reading. Try adding a 0.15uF ceramic capacitor to the resistor. If that doesn't work, you may need to add a schmidt trigger.
@lukmannugraha9846
@lukmannugraha9846 3 жыл бұрын
@@ScienceFunInnovations I really appreciate for you're help sir, I will try with adding a filter to my circuit for filtering the signal from noise I think this will work. Adding some fact that when my pwm duty cycle 100% or 0%, it shows probably the nearly right RPM value but for the other duty cycle it shows random value as usual. Anyway, Thanks sir for you're answer, very glad to discuss
@jingq6877
@jingq6877 2 жыл бұрын
@@lukmannugraha9846Hello, I also encountered the same problem. The fan with 5500 rpm shows 9000 rpm, and then slowly decreases, but in 60~90% of cases, it may show 7000~8000 rpm, which is higher than 100% fan. In the end, I have solved this problem perfectly. tried to replace a reliable resistor with a brand source. I switched to Philips vishay precision resistor, which is very effective and stable plus signal. It may also be related to the resistance value. I replaced the 10k ohm inferior brand resistor with a 1Meg ohm philips vishay resistor, because I don’t have a 10k philips vishay resistor.
@adamwalter2573
@adamwalter2573 3 жыл бұрын
What about promised 230v AC fan control video ? :) Maybe through i2c bus ?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
I ended up using a 110V fan, but I'm sure they make a 220/240VAC version of the same relay. kzbin.info/www/bejne/g3eVfGt5i66goNE
@Sirokawa032
@Sirokawa032 5 ай бұрын
Hi! I use lots of Fans(over 10+) so I use independent 12v supply. In my case, I just connect yellow&blue line of fan to 2, 3 pin of Arduino and Fans +/- lines connecting to 12v supply? I can't English well so you might be hard to understand my sentence. I'm sorry but I hope you answer my question Thank you!
@ScienceFunInnovations
@ScienceFunInnovations 5 ай бұрын
If I understand correctly, I think you are on the right track. You may also need to connect the GND of the Arduino to the Negative on the 12V power supply. Good luck.
@khylematthewgopole2624
@khylematthewgopole2624 10 ай бұрын
Thanks for the video. We are planning to use 4-wire fan for our design but we can't find one online. Can you provide me the link of the 4-wire fan you've used in the video just so we can purchase it online? Thank you in advance.
@ScienceFunInnovations
@ScienceFunInnovations 9 ай бұрын
Sorry, I don't remember. Probably got one from eBay.
@MitsuZer0G
@MitsuZer0G 3 жыл бұрын
Where is the flyback diode parallel to the motor!? It is really important! How did your transistor not blow up? Apart from this: good video.
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
These fans have brushless motors with build in controllers. There shouldn't be any flyback voltage... at least I have never had a problem with them. Thanks for the comment.
@CarlosManuel-g4c
@CarlosManuel-g4c 4 ай бұрын
If I use a 2-wire fan, do I necessarily need to use the MOSFET or can I do without it? The MOSFET is only used to change the fan speed?
@ScienceFunInnovations
@ScienceFunInnovations 4 ай бұрын
Correct, it only changes the speed.
@akashgangurde1651
@akashgangurde1651 2 жыл бұрын
Love u sir amazing . Can u make it control with hc05 bluetooth and mobile .
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Yes. I have started making Bluetooth and mobile videos, like my doghouse video. I don't use HC05's anymore because now you can buy Arduino modules with built in Bluetooth, which means less wires. Check out some of my later videos.
@giostechnologygiovannyv.ri489
@giostechnologygiovannyv.ri489 2 жыл бұрын
Interesting video Science Fun ^^! Glad to see it, as I'm an Electronic Engineer :D :).... I got a question regarding the cooler itself, I read searching over the internet that this type of coolers work with more frequency, but yours is normally working, because I read that they are the ones used in PCs, and see some codes where they go into the TIMERs and other predefined variables from the uController of the Arduino, and they change them to be able to use higher frequencies. So, apart of having different frequencies, my question is: did you find any issue with that? I mean I don't see the problem, but I would like to know your opinion, ^^! As I was practical some years ago, too, but now I'm a little more theoretical and simulated guy XD hahaha I need to retake the ''hand to the circuit'' path, but I have a project to work with many coolers, so I want to make sure there is no problem (I didn't bring my Arduino with me and the University will provide me the materials but I need to do the list first, that's why I'm asking you this ;) ) thanks in advance!!! And keep growing in YT!
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Looks like you found my other video about high frequency. Hopefully that answered your questions.
@giostechnologygiovannyv.ri489
@giostechnologygiovannyv.ri489 2 жыл бұрын
@@ScienceFunInnovations Yeah I found it, thanks. Sorry for this delay I'm with other 4 projects and labs, a satellite comm system, 5G micro cells, 2 more one about CMOS design, the other is more choosing the project by ourselves but using the microcontroller in assembly, and well it's kinda challenging hehe.... Well the cooler will work at low frequency, too; that was my question, before getting it, because I'm planning to get one, but it seems that the stores here don't have available in stock the 4 wires coolers, so I'm searching something in internet, do you think that 9GA0405P6H001. FAN, AXIAL, 40MM X 40MM X 20MM, 5VDC, 350mA that cooler would fit well with the Arduino? and if I use something like the Adafruit board PCA9685 the same? I'm planning to control through PWM like 3x3 so 9 of these coolers. I don't want to use many current. And I found that cooler on Farnell, I'll check other websites ^^!... Those 2 more questions please :D
@masonrinker9903
@masonrinker9903 3 жыл бұрын
Is it possible to have a potentiometer control the fan speed in place of the temperature sensor for the 4-pin?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Yes. Hook the side pins to 5V and GND and the middle pin to the Analog input. The code should work just the same.
@donovanpl
@donovanpl 2 ай бұрын
Can I use a variable 0-5v dc voltange on the blue wire to manually control the speed? If yes, can I use a potentiometer connected across a 5v dc source to control the fan via the blue wire?
@ScienceFunInnovations
@ScienceFunInnovations 2 ай бұрын
I think it only works with PWM, but let me know if you figure something else out.
@Magne-ficent
@Magne-ficent 2 ай бұрын
I've been looking at the same thing the past few days. You can use analogWrite to the pwm wire to control the speed so I'd think a potentiometer would work the same way. My problem is reading the rpm it's showing more on the lower speed.
@DIYwithBatteries
@DIYwithBatteries 3 жыл бұрын
Nice video Dude 😊👍
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Glad you enjoyed it
@junaidusmanshah1501
@junaidusmanshah1501 2 жыл бұрын
hey ...!! the video is awsome please i have an issue everything seems to be working fine ...i didnt use any mosfet and im using 4 wire pc fan with esp32 board when the temprature is less than Min temp my fan always tends to spin and i want it to stop its spining before its Min temprature reached ..??? can you please help me how can i stop fan spining till its min temperature condition is met???
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
The only way is to put a MOSFET to interrupt the 12V supply (or the ground). It would take another digital output.
@NoName-tg1ur
@NoName-tg1ur 8 ай бұрын
S on a MOSFET is called the SOURCE, not the sink. Think about it: a basin with a drain and a sink would have two outflows but no inflow. You need an inflow of electrons into the transistor in order to have an outflow. Electrons flow from the negative to the positive pole, which is why the MOSFET pins are called SOURCE and drain. Other than that, nice video!
@ScienceFunInnovations
@ScienceFunInnovations 6 ай бұрын
Yeah, wish I could go back and fix that...
@taylorfackrell1547
@taylorfackrell1547 16 күн бұрын
If lets say that I have 2, 4 wire PWM fans, would both the yellow wires go into pin 2? if not, how could i control 2 fans with separate variable speeds?
@ScienceFunInnovations
@ScienceFunInnovations 14 күн бұрын
You would just need to use two different PWM pins. That way they could have their own speed.
@realdimasta7176
@realdimasta7176 4 жыл бұрын
Sir can i have the code and circuit diagram for each type of fan? Great video btw
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Yes. I have added the code in my Facebook post for this video. Check it out @ScienceFun4u.
@dogs-and-destruction-channel
@dogs-and-destruction-channel Жыл бұрын
Another way you can control a 2 wire fan is with a relay. There's a model of relay out there that's comes with some audrino kits and they can handle up to 10A at 240 volts which is more that enough to run any 12v fan, not just computer fans and only requires a 3 - 5V signal to trigger.
@ScienceFunInnovations
@ScienceFunInnovations 11 ай бұрын
Relays work, I would use solid state if you want to control speed.
@dogs-and-destruction-channel
@dogs-and-destruction-channel 11 ай бұрын
@ScienceFunInnovations Definitely solid states would be the way to go as they're less likely to get jammed or false trigger. You can PWM 2 wire fans too with a DC motor controller same as you would with an RC car motor (only minus reverse as PC fans can't run backwards)
@hikotee
@hikotee 2 жыл бұрын
Good video, well explained!
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Glad you liked it!
@DuroLabs85
@DuroLabs85 2 жыл бұрын
Hey bro, I have a those SanAce server fan's but they are three wire but I have no use of the tacho signal I just want to PWM control them I tried the normal PWM which is the basic PWM for the Arduino but the problem is the fan is making that humming sound b'coz of the PWM and I am gonna use them in an power amplifier so I want them quiet I am not gonna run them at 12V as they are so loud at full speeds. do you have any Idea how can I PWM control them but get rid of that humming. It would help me a lot
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Yes, check out my other video about high frequency PWM.
@DuroLabs85
@DuroLabs85 2 жыл бұрын
@@ScienceFunInnovations ok thank you :)
@ryu________
@ryu________ 2 жыл бұрын
would it be fine to power the fans with the arduino's 5v then passing it through an MT3608 to get 12v, then to the fan? pretty new to this stuff. Thanks
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Don't power the fan from the Arduino. It really can't output much power.
@nickswebtsv
@nickswebtsv 2 жыл бұрын
Would this circuit change much if I was to connect say three (3-Pin type) fans in parallel? I'm thinking Resistance would be the same?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
The fans should run fine, but the tach wires would need their own interrupt pins to calculate speed.
@nickswebtsv
@nickswebtsv 2 жыл бұрын
@@ScienceFunInnovations Thanks for the advice, I ordered the components yesterday thinking I might need to use separate pins for the interrupt. Cheers.
@thiagofarias7660
@thiagofarias7660 Жыл бұрын
Question: can i use 2 4 wire collers instead of just one, and what extra part i am going to have to use?
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Sorry, don't quite understand the question.
@bummers
@bummers 4 жыл бұрын
With adruino, you can actually control fan speed of 2-wire and 3-wire fans as well by generating a PWM voltage output to the fans. Any tutorial on that?
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
You can control the speed using a MOSFET like I did in my hovercraft video (except analogWrite instead of digitalWrite). Just be careful not to run at speeds below 25% as that can damage the brushless motors on the fans. You could also use an h-bridge driver like in this video kzbin.info/www/bejne/j5zJc6egqJ2ojck. Thanks for watching!
@bummers
@bummers 4 жыл бұрын
@@ScienceFunInnovations thanks for the tip! Let me go check it out. 👍😎
@bjorn980
@bjorn980 4 жыл бұрын
Awesome video, thanks!
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Glad you liked it!
@KiNg-xl8gd
@KiNg-xl8gd 4 жыл бұрын
Would you be so kind, list the Bill of Materials and the Sketch. Really like these Projects.
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
I have all three sketches posted on my Facebook page @ScienceFun4u. As for the fans, I just picked them up on eBay. Thanks for watching!
@csai5763
@csai5763 4 жыл бұрын
Can we use inbuilt pull-up resistor in (node mcu)instead of external one !!!!!!
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Haven't tried it but I am guessing that would work.
@cubeplay8163
@cubeplay8163 11 ай бұрын
Is this specific to 12V fans or does the same need to be done to 5V fans as well?
@ScienceFunInnovations
@ScienceFunInnovations 11 ай бұрын
No specific to 12V fans. Should be very similar with 5V.
@deathpunchrigby1664
@deathpunchrigby1664 Жыл бұрын
I hooked up my 3-wire fan exactly as you've drawn it, but the serial monitor is only reporting 0 RPM. How do I get it to read the correct RPM? The fan I'm using is the be quite! Pure Wings 2 140mm
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Not sure why it isn't working. Have you verified that the fan is giving a pulse?
@venkat897
@venkat897 3 жыл бұрын
Can we reverse the fan direction by using pwm signal only like in some esc in drones?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
These fans will only turn in one direction.
@S0K0N0MI
@S0K0N0MI 2 жыл бұрын
Im worried about motor whine; Does the 3 pin fan make more noise compared to just hooking it up to a PC?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Some of the fans do have a bit of noise. Other users have used filters or Schmidt triggers to clean up the signal.
@joep4847
@joep4847 Жыл бұрын
Great video! Quick question: I read that if the Arduino is powered with a power adapter (barrel connector), this voltage gets copied on the VIN pin. So if a 12V 1A adapter is used, the fans should be able to get power from the VIN pin. Is that right? Also, how should it be determined which MOSFET to use? For example, in another video they use an IRF530N. No clue how to figure this out haha. Thanks a lot!
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
You don't want to pull too much current throught the Arduino, so I would run a seperate wire to the fans for power. Just check the current rating on the mosfet, there are probably dozens that would work.
@joep4847
@joep4847 Жыл бұрын
@@ScienceFunInnovations Thank you! Apparently the VIN pin bypasses most of the Arduino's circuitry, but the max current is limited to 1A by a diode. At least, that's what Google says. I believe fans have a max current draw in the direction of 80mA, so I guess powering a couple of fans should work easily. I guess I'll just try it, if you have any comments on this please let me know. Thanks again! :)
@RD-ni7qe
@RD-ni7qe 3 жыл бұрын
@6:12 Hmmm... I thought that the PWM signal had to be the same voltage as the fan? (i.e. a 12VDC fan requires a PWM signal which is also at 12VDC, and a 24VDC fan requires a PWM signal which is also at 24VDC). Or do I have this all wrong... and the PWM signal can be at logic level voltage (5V) regardless of the fans rated voltage?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
I think it would work with a 12V or 24V PWM, but from what I understand, all the logic is usually at the low end. For example, a low when the voltage drops below about 0.5V and a high when it goes back above 1V. That way a 3.3V, 5V, or 12V PWM would still work.
@lucapesce3335
@lucapesce3335 3 жыл бұрын
@@ScienceFunInnovations I confirm that I have seen PWM signals with 0,55Vpp working
@okyaditya
@okyaditya 3 жыл бұрын
I got the 3-wire fan but the color is red-black-blue instead of red-black-yellow, are they the same?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Should still be the same. Good luck!
@Faysaliya
@Faysaliya 3 жыл бұрын
How can I wire a 5V 4-wire fan (brushless dc motor) so that I can attain the RPM but also control the speed using a potentiometer or custom input via my code? I want to be able to create graphs to compare motors apologies if you've already answered this, would love to touch base via email and perhaps discuss my project!
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
It should work the same with 5V motors. You can replace the temperature sensor with a potentiometer. Just connect 1 leg to 5V, one leg to 0V, and the middle leg to the analog input on the Arduino. Hope this helps.
@thomasandersen6572
@thomasandersen6572 Жыл бұрын
if using a DS18B20 digital temp sensor with the 4wire fan instead, how would the code need to be written.? Thanks
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
I have other videos that use the DS18B20. That device produces a string that you need to convert into a number.
@em9594
@em9594 2 жыл бұрын
I have the sparkfun red board with an ardumoto shield and I want to control 3 - 3 wire fans 2 are exactly the same and run best at 11.9 volts the 3rd needs 13 volts, I'd like them to just run full speed all the time, how do I do it?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Use a 13V power supply. Run the 13V fan at 255 PWM and the 11.9 fan at 233 PWM (255*11.9/13).
@dermeister314p
@dermeister314p Жыл бұрын
Would using a 9v battery for the fan be a mistake? and cause the fan to always be on ... ? (at first it did work correctly 🤔
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
A 9V battery would drain pretty quickly, but it shouldn't affect how the code works...
@emiliodubois1433
@emiliodubois1433 3 жыл бұрын
I succesfully read the interrupts from the yellow cable setting the pinMode to INPUT_PULLUP. No resistor needed.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Cool! Thanks for letting me know.
@fat_pigeon
@fat_pigeon 4 жыл бұрын
Apparently the PWM signal wire shouldn't be connected directly from the Arduino to the fan. Arduino `analogWrite` outputs a PWM signal with a frequency of at most 1000 Hz, whereas the fan has "acceptable operational range 21 kHz to 28 kHz" according to the Intel specification ("4-Wire Pulse Width Modulation (PWM) Controlled Fans: Specification" v1.3). It may work with some fans but there's certainly no guarantee that it will operate so far out of spec.
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
It seemed to work for me, but I'll do more in depth testing at various speeds. You can also configure your Arduino to have a 25kHz PWM on channels 9 & 10. Just takes a little more setup code, but that would take care of any issues. Perhaps another video is in order...
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
See updated video kzbin.info/www/bejne/j3OxdouNpZKanJI showing how to control the fan using 25kHz PWM from the Arduino.
@lucapesce3335
@lucapesce3335 3 жыл бұрын
Just read your fan datasheet, my Delta's accept PWM starting at 30Hz (www.mouser.it/datasheet/2/632/Delta_PWM-1003558.pdf)
@drtoxicity1015
@drtoxicity1015 3 жыл бұрын
Hello I have a question... Can 3 pin fan sense power by positive input 12v ?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Not exactly sure what you are asking. On a 3 wire there is just positive, negative, and rpm.
@freetherim4302
@freetherim4302 4 жыл бұрын
great channel, would you be willing to share the code for the 4 wire fan?
@ScienceFunInnovations
@ScienceFunInnovations 4 жыл бұрын
Yes. I have added it to the comments in my Facebook post for this video. Check it out @ScienceFun4u.
@freetherim4302
@freetherim4302 4 жыл бұрын
@@ScienceFunInnovations Thanks for the reply, I'm not a facebooker, but I've got it sorted.
@ClownWhisper
@ClownWhisper 2 жыл бұрын
I always see people saying we'll use such and such resistor to pull up etc etc etc but they don't really explain what that means I wish someone would make a video that shows the need for a pull-up resistor and how that functionality is achieved do you know what I mean?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Yes. It is an important topic. Perhaps I can do a video on that soon.
@ohm.3768
@ohm.3768 Жыл бұрын
Haahaah nice I loved it and ur modep was running in a cute manner.
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Glad you liked it.
@dmitriigilespi7452
@dmitriigilespi7452 Жыл бұрын
Hi, how can I change fan speed from humidity? My project is a smart fan that depends on humidity. Please help me
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Use the map() function to convert humidity into the desired PWM for speed.
@sanjaybhatikar
@sanjaybhatikar 3 жыл бұрын
Wonderful, love it.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Many thanks!
@awskamil6217
@awskamil6217 3 жыл бұрын
Hi, How would you turn the fan off without any power? when you use analogWrite(...., 0) it will still spins but there is a way to shut down the fan ?
@awskamil6217
@awskamil6217 3 жыл бұрын
I'm working with 4 wire fan
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
You would have to use a MOSFET or transistor or relay to totally cut power to the fan. You could control these devices with a digital output.
@MikeHammonds804
@MikeHammonds804 2 жыл бұрын
Could you show how to include the 25kHz code into the 4-wire temperature code, please?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Not sure what you are asking for, I did have the 25kHz code with the 4-wire fan... Let me know if I am missing something.
@shibuma1064
@shibuma1064 3 жыл бұрын
Does a MOSFET is required for 3 pin fan
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Only for speed control, but you could use a MOSFET, transistor, or motor speed controller.
@shibuma1064
@shibuma1064 3 жыл бұрын
@@ScienceFunInnovations I want maximum speed for a 3 pin fan connected to aurdino . I want that circuit diagram.
@TheOnlyBuddyLee
@TheOnlyBuddyLee 2 жыл бұрын
So if I'm just trying to splice a 4 pin to a 2 wire plug, just use red and black?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
That should work.
@danbrit9848
@danbrit9848 11 ай бұрын
i have a car tach and want to connect it to a 4 pin fan any ideas in what resistor to try as a pull up
@ScienceFunInnovations
@ScienceFunInnovations 11 ай бұрын
Generall 10k works for a pull up
@hannespeter1484
@hannespeter1484 3 жыл бұрын
Soooo I used the setup for a 2 pin fan and powered the fan over an USB charger. Arduino exploded and charger aswell. How could power pass through the mosfit onto the arduino? I dont get it.
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Sounds like the MOSFET was wired incorrectly...but I'm not sure.
@warrickramnand9437
@warrickramnand9437 3 жыл бұрын
What is the part number of the MOSFET you are using?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
I think it was a 2N7000.
@explodingmonkey44
@explodingmonkey44 2 жыл бұрын
Can you please include a parts list in the description?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
I will on future videos. I don't have those parts anymore. Sorry.
@explodingmonkey44
@explodingmonkey44 2 жыл бұрын
@@ScienceFunInnovations what kind of Arduino stuff was that? I'm looking to recreate this for a project in the future
@REVNUMANEWBERN
@REVNUMANEWBERN 9 ай бұрын
Got a 👍 from me 1:18 QUESTION about the 2 wire fan: Can each wire be directly connected to a 12v battery with a on / of toggle switch in either line? I live in HOT Florida and would like to add one in front of my air cooled Honda 300 ATV 4 wheeler, if this wouldn't work I'd appreciate your recommendation, I'm a electrical idiot LOL
@ScienceFunInnovations
@ScienceFunInnovations 8 ай бұрын
For a 4 wheeler I would just use a 2 wire 12V fan. Hook the black wire to negative and use a switch between the fan and the positive on the red wire. Good luck.
@suthiraheenetimulla8123
@suthiraheenetimulla8123 3 жыл бұрын
can i use LM35 temp sensor for this
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Yes. That should work fine. The hookup is the same.
@suthiraheenetimulla8123
@suthiraheenetimulla8123 3 жыл бұрын
@@ScienceFunInnovations so I've to convert F to °C in the conditional statements?
@Nebuchadnezzar_XXIV
@Nebuchadnezzar_XXIV Жыл бұрын
Can I use a 12v 1.5A brushless fan with Arduino Uno?
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
You would need a seperate power supply for the fan, but yes you could use the Arduino to control it.
@tashawrigley625
@tashawrigley625 3 жыл бұрын
Would this work with a K type thermocouple?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
You would have to get a thermocouple module. You can't plug a thermocouple directly into an Arduino.
@dooogfella
@dooogfella 3 жыл бұрын
Do you know if I can controla 4-wire fan only with a potentiometer or do I need more components to make it possible? I only need to adjust the speed and not reed the rpm so the tachometer pin is not needed. Thanks!
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
You could just use the positive and negative wires and put the potentiometer in series with the positive wire (as long as the potentiometer can handle the current). Otherwise a 4-wire would need a PWM signal instead of pure voltage.
@lelandclayton5462
@lelandclayton5462 2 жыл бұрын
Know of a way to take a high RPM signal and turn it to a lower value. For a example a controller wants a Fan to spin at 10,000 RPMs and the fan can only push 5,000 RPM? So the Controller will think the fan is spinning at 10,000?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
What type of controller are you using?
@lelandclayton5462
@lelandclayton5462 2 жыл бұрын
@@ScienceFunInnovations Really and truly it's a old Dell R410 server I modified. It's in a custom case I built and I have some noctua NF-12x25 PWM 4pin fans. When I boot the system it ramps the fans high as it can (2000RPM) but only sees the 2000RPMs when it's expecting 8000RPMs and I end up with a fan error. granted I can bypass it by pressing a key but it's annoying.
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
@@lelandclayton5462 Yeah, you would have to make a fake signal to trick it out. Maybe have an arduino read the frequency of the fan and then output a frequency 4x as fast.
@tursulusakz4943
@tursulusakz4943 10 ай бұрын
I have a 4 wire fan and I want to control direction and speed of the fan. How can I change the direction of this fan ? If I write a negative value to the code block for the speed, can I solve the problem ?
@ScienceFunInnovations
@ScienceFunInnovations 10 ай бұрын
These fans will only spin in one direction. You would have to get a different fan and use a motor controller like an L298N.
@tursulusakz4943
@tursulusakz4943 10 ай бұрын
Can you check axirev126 fan, can I use it for this type of project ? I'm a student so If you help me, I am gonna be grateful. Thanks@@ScienceFunInnovations
@controller_player3868
@controller_player3868 3 жыл бұрын
can a normal resistor be used for the 3 wire cpu fan
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
For speed control?
@MrFunkyCabbage
@MrFunkyCabbage Жыл бұрын
The mosfet pins are "Gate" "Drain" and "Source" ...not "Sink"... A current "Sink" is the same as a "Drain"...
@ScienceFunInnovations
@ScienceFunInnovations Жыл бұрын
Yup. See the other comments. I've been corrected over and over again. :-)
@yvzblgcyln
@yvzblgcyln 3 жыл бұрын
what happens if i dont use mosfet with 5v fan?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
It will just stay at 100% speed.
@saheel1850
@saheel1850 2 жыл бұрын
Can you turn the 3 wire fan on and off with the arduino? If so, how?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Yes. Just add a MOSFET to the power line and use another digital output from the Arduino.
@vionom2627
@vionom2627 3 жыл бұрын
How can I do the speed control without a temperature sensor?
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Yes. You could use a potentiometer instead, or simply use your code to change speeds.
@vionom2627
@vionom2627 3 жыл бұрын
@@ScienceFunInnovations Thanks for your answer. What value should I change in the code for speed control?
@CharlesCai2008
@CharlesCai2008 25 күн бұрын
So 2-wire fan just on and off, no speed control?
@ScienceFunInnovations
@ScienceFunInnovations 20 күн бұрын
Correct, unless you use a mosfet for speed control.
@bogest76
@bogest76 2 жыл бұрын
Can i use it to att85?
@ScienceFunInnovations
@ScienceFunInnovations 2 жыл бұрын
Pretty sure that would work.
@wayne8797
@wayne8797 2 ай бұрын
Hovercraft on hardwood floor... All I wanted is to learn how to regulate my custom external gpu enclosure...
@ScienceFunInnovations
@ScienceFunInnovations 2 ай бұрын
Well if you GPU ever dies, you can use the fan for a hovercraft... :-)
@jazirehcasas6766
@jazirehcasas6766 3 жыл бұрын
Sir how about DC 48V ball bearing
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
I haven't worked with any of those, but if they have the same setup it should work.
@windowsxseven
@windowsxseven 8 ай бұрын
What about 5 wire, 6 wire, 7 wire fans?
@ScienceFunInnovations
@ScienceFunInnovations 8 ай бұрын
Someday...
@MitsuZer0G
@MitsuZer0G 3 жыл бұрын
1:34 you forgot to add a flyback diode antiparallel to the motor! Otherwise your transistor will die!
@ScienceFunInnovations
@ScienceFunInnovations 3 жыл бұрын
Thanks for the tip.
LFC#191 - 3pin DC Fans vs 4pin PWM Fans
18:13
Adamant IT
Рет қаралды 111 М.
How to Control a 12V Motor with Arduino: Easy Wiring & Code Examples
44:13
«Кім тапқыр?» бағдарламасы
00:16
Balapan TV
Рет қаралды 293 М.
How PWM works | Controlling a DC motor with a homemade circuit
10:01
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Рет қаралды 671 М.
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 302 М.
How do Computer Fans Work? - LFC#221
34:30
Adamant IT
Рет қаралды 54 М.
2 vs 3 vs 4 Pin Computer Fans Explained (and Which Should You Buy?)
11:33
Tony Tascioglu (TechnoTony)
Рет қаралды 64 М.
Magnetic Switches - for $20 each!
20:42
The Warthog Project
Рет қаралды 427 М.
MOSFETs and Transistors with Arduino
40:50
DroneBot Workshop
Рет қаралды 1 МЛН
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 1,1 МЛН