5
\$\begingroup\$

Introduction

Okay so this is yet an "electronic newbie Arduino fan" project, but I don't just want to turn my fan ON and OFF but adjust the speed so it's not that noisy and give a more relaxing breeze.

The question is an extension of my previous question but so much have changed since then.

What have changed:

  • I burned my fan det because I tried connecting it directly to a 12 V DC (just to see if it would run faster) - Mmm.. the smell of magic purple smoke
  • I bought a new USB fan (8 $)
  • I bought a multimeter that has oscilloscope - giving me eyes to see what's happening
  • I got hold of a MOSFET: RFP50N06 - Used a NPN Bipolar junction transistor before (it got hot and sometimes it don't work)

The question

Usefull specs:

  • The USB fan uses 5V and draws 330 mA according to my measurement.
  • I plan to use a 5V 0.7-1.0A adapter - don't want to risk frying my computer.

This is my RC filter circuit enter image description here

An I know that people are gonna ask me for the schematics:

enter image description here

And a more clear schematic:

enter image description here

As you can see I'm able to adjust the potential from the source (5V 700mA power adapter), but when I connect it to the fan

enter image description here

I get no breeze out of it... No matter how I turn the potentiometer.

(Turning down the volts gives some summing sounds from the fan..)

Looking at the oscilloscope gives me this enter image description here enter image description here

Please help me solve:

  • how I can make this work?
  • Understand why it's not working as it is now?

Thank you


BONUS info

I took the broken one apart an found enter image description here

(BTW: What is the name of such motor _?)

enter image description here enter image description here

(My screwdriver broke some of the lines)

This is my new fan

enter image description here


UPDATE

I heard you loud and clear :-)

Here is the schematics:

schematic

simulate this circuit – Schematic created using CircuitLab

I have now removed the resistor and it started the fan, but it makes an annoying noise. This was not the case with a NPN transistor where I had the RC filter BEFORE at the Base - the transistor got hot so I wanted to apply the filter AFTER the transistor (or you could call it on the "big" current flow)

(I can't access the fan's internal component without breaking it.)

\$\endgroup\$
9
  • 7
    \$\begingroup\$ Show a schematic! No, a picture or a wiring diagram is not a schematic. Also, this appears to be a brushless DC motor. Depending on what king of chip is controlling it, rapidly switching its power on and off is not likely to make it very happy. Using PWM to control the fan windings is legitimate, but using it to control the control electronics will probably just make a mess. \$\endgroup\$ Commented Jun 30, 2013 at 16:00
  • 2
    \$\begingroup\$ It's hard to read your so-called "schematics", but it looks to me like you're trying to power your fan through a 100-ohm resistor, and using the PWM/MOSFET arrangement to slow it down. \$\endgroup\$
    – Dave Tweed
    Commented Jun 30, 2013 at 16:02
  • \$\begingroup\$ What Olin said. It's not important to us to be able to see how you're hooking up wires to the breadboard, we can assume that if we give you a schematic, you know how to use the breadboard to wire it. A schematic is legible, but the wiring diagram is not. \$\endgroup\$
    – Shamtam
    Commented Jun 30, 2013 at 16:04
  • \$\begingroup\$ @OliGlaser: That comment related to the teardown of the burned-out fan, and isn't relevant to the main question. \$\endgroup\$
    – Dave Tweed
    Commented Jun 30, 2013 at 16:53
  • \$\begingroup\$ @DaveTweed - ah yes, thanks. Just noticed the note on this, read too quick first time round. Really could do with a schematic to make better sense of things. \$\endgroup\$
    – Oli Glaser
    Commented Jun 30, 2013 at 16:59

1 Answer 1

1
\$\begingroup\$

With PWM, you have to drive the connection fully on, and fully off, each cycle.

When you have a filter/resistor on the base, you will effectively not be providing PWM to the transistor, but instead a linear control signal, and instead of being "fully on" or "fully off," the transistor will act as a voltage drop (a variable resistor) and thus dissipate a lot of heat. You're effectively building your own linear voltage regulator that way.

Other things:

  • MOSFETs are better than BJTs for PWM, because when "fully on" they lose little power, whereas BJTs lose more power the more "on" they are. use an N-channel MOSFET if you can. (The BS-170 can control up to 500 mA, so it would be sufficient in this case)

  • Plugging 5V out into the Vin of the Arduino is not a good idea, because there will be drop in the linear regulator of the Arduino, and the MCU will only see something less (possibly 4V or less) and be unstable. If you only have 5V, provide it to the +5V rail instead of the Vin pin.

  • The 488 Hz noise you're hearing is the PWM frequency. This is because the windings in the motor, and the whole mechanics of the motor, vibrates as power turns on/off. If you need to reduce this noise, you have to push the PWM frequency up to 20 kHz or more, where you can't hear it. To do that, you may need to use a MOSFET driver circuit to drive the gate of the MOSFET, as the 25 mA or so you get out of the Arduino may not switch the gate fast enough.

\$\endgroup\$
3
  • \$\begingroup\$ Hi @JonWatte thank you very much for your answer. The +5V rail did help a lot and increasing the frequency to 31.3kHz sure reduced the noise - I used this code to increase the freq playground.arduino.cc/Code/PwmFrequency \$\endgroup\$
    – Norfeldt
    Commented Jul 6, 2013 at 16:25
  • \$\begingroup\$ sorry for the late respons - that's why it's a hobby \$\endgroup\$
    – Norfeldt
    Commented Jul 6, 2013 at 16:26
  • \$\begingroup\$ thank you very much your answer got me to reach my goal. I'm very happy now! \$\endgroup\$
    – Norfeldt
    Commented Jul 15, 2013 at 19:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.