9/1/2023 0 Comments 4 pin fan controller![]() Potentiometer can be replaced for thermistor or any other temperature sensor, as long as sensor output is converted to 0 – 320 range.Įxample of map function converting 0 – 1023 sensor values to 0 – 320: outputValue = map(sensorValue, 0, 1023, 0, 320) Arduino pin D10 is connected to PWM pin on 4-pin pc fan connector. Fan is connected directly to 12V and GND from power supply, no mosfet is needed for 4-pin fans. Cheapest Arduino Pro Mini ATmega168 (5V, 16Mhz) can handle it.Ĭontrolling the speed of 4-pin fan is very simple. I used this circuit to control 2 groups of fans with different speeds, 4-pin fan connected to pin D9 and mosfet with 3-pin fans on pin D10. Arduino Uno or Arduino Pro Mini can generate 2 different PWM signals on pins D9 and D10. ![]() 3-pin circuit needs additional N-channel mosfet or some switching transistor. PWM frequency is 25 kHz, much higher than default timer frequency and the PWM speed control will be completely silent.Ĭode is the same for both type of fans. If you tried analogWrite() function with mosfet to generate PWM signal and the pc fans made weird sounds and beeps, than this code will solve the problem. Tested with Noctua 120mm, Noctua 140mm PWM, NZXT and Artic Cooling. Circuit will allow RPM control on any 12V pc fans. You can change the fan speed from off to max speed. How to make simple 3-pin and 4-pin PWM pc fan speed control with Arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |