badvictoria.blogg.se

Arduino pwm fan control
Arduino pwm fan control









arduino pwm fan control

Make sure the voltage rating matches the supply voltage.

arduino pwm fan control

The cathode of the diode goes to the positive terminal of the fan.Ĭonnect the positive supply voltage to the DC fan’s positive cable (red). The anode of the diode goes to the negative terminal of the fan. Step 4: Connect the pull-down resistorĬhoose a resistor value between 220 Ohms to 100 kOhms.Ĭonnecting the resistor between the ground and the GATE helps keep the MOSFET in OFF condition when the Arduino is not connected or accidentally the gate connection between the Arduino UNO and the GATE pin of the MOSFET opens. You can control the speed of a two-wire DC fan using PWM. Notice that Pin 5 of the UNO is a PWM compatible pin. Step 3: Connect the Power pinĬonnect the Arduino UNO’s pin 5 to the MOSFET gate. Connect the DC fan’s source pin to the Arduino’s GND pin.Īlways start with the ground connections.Ĭonnecting the GND pins first avoids accidental damage to the boards.











Arduino pwm fan control