For a couple of year I have been using an Arduino controlled 18" fan to ventilate my greenhouse. It is quite simple using using a temperature sensor and a N-channel MOSFET. The fan is driven at 13kHz with variable duty based on temperature and draws 4 amps @ 12v. The arduino is is currently about 12 feet from the fan with the MOSFET placed quite close.
The MOSFET has a passive heat sink which get rather warm (no suprises there !). A more elegant solution would be to mount the MOSFET/heatsink in the air stream from the fan. The arduino needs to be in its current location in order to get the mean temperature of the greenhouse and operate some other sensors.
Should I use a shielded cable to extend the PWM signal ?
it can't hurt although if you have a good cable 12 feet is not that far.
You could have multiple pairs in the cable and ground the ones you don't use.
don't mix the 12V fan power supply with the signal.
It shouldn't if it's a logic level mosfet.
Which Arduino (3.3volt or 5volt logic).
Do you have a kickback diode across the fan, and which one (should be Schottky).
Leo..
If it's a logic-level FET being directly PWM'd by an arduino it's likely to warm up. The lower gate voltage that allows direct 5V drive means higher gate capacitance which in turn means slower turn on/turn off times.
Slowing down the PWM frequency should reduce the heating.
When I first made the project I tested the fan using a programmable PWM generator. The 13kHz I ended up with was a compromise between power consumption and noise (growling). If I drop the frequency I will put a capacitor in the circuit to slow the rise time down of the pwm
Not much to draw really.
Project has been running for 2 years now. The power leads from the battery to the fan are 8 gauge and are 8ft. conductors are seperated by 4". The distance from the adruino to the MOSFET gate is about 2", at the moment
The data sheet says 0.036 Ohm @ 5V Vgs meaning 150mW @ 4A. This is not causing any heat. 3.3V should be sufficient as well. Please check your circuit, best by use of a scope.
EDIT: calculating current and forgot to convert into power
Doing so can kill your MOSFET. The analog area should be avoided because it can produce much heat.
I was referring to the default PWM frequency of an Arduino pin.
Which is 500Hz on pin 3, 9, 10, 11 and 1kHz on pin 5, 6 for an Uno R3, Nano v3.
13kHz is a strange choice, and has higher switching losses (heat) than a lower frequency.
Please post a hand-drawn representation of the circuit, with resistor/diode values and wire lengths.
Leo..