Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PWM safe for PC fans?

Status
Not open for further replies.
Years ago I played around with the whole fan speed control concepts and 3 wire fans with the tachometer out. I ran into a small caveat. When using PWM to control fan speed with a 3 wire fan the tachometer out will bounce around. Typically with 12 VDC applied (no PWM) most small PC type fans output 2 pulses per revolution. The problem or caveat when we use PWM is the fan power is being turned on and off at the PWM rate. The fan is only powered when a voltage is present on the power pin. When the PWM is at zero volts the tachometer out is also at zero volts. It looks a little like this:

Tach%20Signal.gif


Would this need to be considered?

Ron


Hi Ron,

I really like to see stuff like that where it is completely concise and illustrated so there's no doubt what is happening. I have to thank you for taking the time to do that.

The answer would have to be definitely yes. The PWM signal will not allow the tach signal to show up for some times that it must show up in order for us to be able to measure the tach output signal count. The count would be too low for the actual RPM the fan was really doing at the time.

The solutions are many, the first that comes to mind is to NOT allow the PWM signal to return all the way to zero. There may be a point where the tach still outputs a normal signal when the voltage is reduced but not at zero. Lets say for example "4 volts". The count detection scheme however would have to be able to read a logic signal that went from 0 to 4 volts however, instead of the usual 0 to 5 volts.
The second would be to filter the PWM into a pseudo smooth voltage so that the fan can still be controlled but the tach will still function, but again the logic would have to be able to pick up possibly a 4 volt logic signal instead of 5v.
Of course if we got pulses every 1ms and we got one that was 2ms, we'd know we missed a pulse right away, unless more came in at 2ms and then we would know the fan really did change speed.

Anther idea would be to look for a correlation between the times the PWM is sent out vs the way the tach responds. If we could predict the missing pulses then we could "fill in the blanks" and count 2 for one pulse instead of just 1 for example.
For a really simple example say we had found that at a certain speed range when we send out 5 PWM pulses we only get 9 pulses when we were supposed to get 10. We could count 2 instead of 1 for every 10th pulse. We may have to keep a table on the correlation, or maybe a formula would work, keeping in mind we dont always need a super duper accurate RPM indication either, as long as it is within say 5 percent or so.

Still yet another idea would be to use a slowly responding PLL (phase locked loop) where the signal we measure is kept in sync with the pulses, but is not the pulses themselves. Thus we would be measuring what the tach would be putting out if it had been working right :)
 
Hi Ya MrAl, One advantage to a 4 wire fan is the fan is always powered and the PWM applied to its own wire. This old inactive webpage is what remains of some experiments I did years ago. I did notice with a 12 volt fan as I reduced the voltage the fan speed reduction was close to linear. Given a choice today using a PC type fan I would opt for the four wire flavors.

Ron

Hi again,

Yes, but four wire fans dont grow on trees :)
Seriously, i think mostly CPU fans are made that way. Maybe you can get 120mm fans with that but they will be harder to come by in the type you really want, and probably more expensive if you can find them.
When i was looking for 250mm fans i was lucky to find any at all that were not super expensive. They have only two wires.

You did an excellent job on that website. If you wanted to you could experiment with higher frequency PWM that would not interfere with the pulses in the same way as your illustration. Yes still change it, but i think we would be able to make sense of the tach output (3 wire fan) if the three wire fan PWM frequency was say five times higher than the fastest tach pulses. We'd still get every pulse that way, they would juch be chopped up, but i think it would not be too hard to figure out what the real tach pulses were.
For example, if the tach output was 200Hz (typical) and the PWM was 2kHz, we'd see 5 pulses low and 5 pulses high for the tach output, unless there was some delay in the tach circuit internally. If we did get 5+5 it might be easy to detect and convert to RPM.
At least it deserves a try :)
UPDATE: i did find quite a few on NewEgg :)
 
Hi Ya MrAl, Yeah, I guess it really depends on how large of a fan the original poster has in mind? :) The webpage is pretty old and no longer really a part of the web but exist on the server so I created a link to the page.

Ron
 
Reloadron
Nice fan experiments you conducted. Indeed if one requires proper fan control (other than plain on/off) 3 or 4 wire fans are required.

BTW, I also read some other bits in the defunct webpage. I liked the "Don't lose" one.....he he! I know a slightly racier version.
 
Using a microcontroller to do PWM to a MOSFET driving a PC fan, I'm curious if this is considered the proper and safe way to do it?

If I want to drive the fan very slowly, can I safely do that in this manner? Will it damage the motor if it receives a pulse so infrequently that it is not enough to keep it running, or perhaps barely enough to keep it turning? In general, is this something I should not be doing?

To your initial question above, yes.

Look what I posted here. It is in line with the attached PDF. They made the life easier for all in this business, even you.
 

Attachments

  • Fans PWM controlled.pdf
    79.3 KB · Views: 431
Reloadron
Nice fan experiments you conducted. Indeed if one requires proper fan control (other than plain on/off) 3 or 4 wire fans are required.

BTW, I also read some other bits in the defunct webpage. I liked the "Don't lose" one.....he he! I know a slightly racier version.

Thanks, Don't Lose was aimed at a friend of mine who spent a nice holiday weekend in jail. High price to pay for a little.... you get the general idea.

Ron
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top