Mosfit Controlled fan speed... Filter?

I am attempting to control the fan speed with a Mosfit. All works well accept for a buzz from the fan anything less then 1000 (see code). I think I need a filter of some type but do not know enough info to design such. Thank you for your help, Rick . eisman7@gmail.com


PWM

PWM using timers

I have some suggestions for you.

  1. Never post your email address on any public forum.
  2. Never post your sketch as a screen shot. No-one will want to re-type it into their system. Post it as text between code tags. See forum guide.
  3. On Uno, analogWrite() can take values between 0 (=0% speed) and 255 (=100% speed). 900 is equivalent to 132 (=51% speed) and 1000 is equivalent to 232 (=90% speed).
  4. Connect a fly-back diode to the fan terminals to prevent damage to the rest of the circuit and your Uno. 1N4001 or similar will be fine. A 0.1uF ceramic cap to reduce electrical noise is also a good idea.
  5. There is a lower limit of the PWM below which a fan will not start. This limit will be different for each fan.
  6. There will be a lower limit of the PWM below which a fan will not run. This is lower than the limit at which it will start. So to run a fan at lower speeds, you must give it a short "boost" to make sure it starts.

Hi,
What are the specs of your fan?
If it is a BLDC fan, then it will not like running on a low duty cycle current supply.

The BLDC has electronic circuitry inside to drive the motor, it assumes it is getting DC.
When you get to low duty cycles, it like firing short pulses at a circuit that is designed to use DC.

If you want a speed controlled computer fan or any BLDC fan, you need a four wire unit.
The four wires are, positive supply , negative supply, tacho pulse output and PWM speed control input.

Tom.... :grinning: :+1: :coffee: :australia:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.