@ bing...
And since we're getting technical... I'm reading up on the
Nidec Servo fan that I'm planning on buying and can't find the PWM frequency that the thing is rated for anywhere on the datasheet.
This is the only mention of the PWM speed control on the entire thing...
Can you make out the PWM frequency from that diagram? I can't.
About the freq, Bobnova is right and I missed that part, I was assuming this monster is working on Kilo hertz range, my mistake and really sorry since you've made the purchase, I should have spot it earlier.
I put few markings at the pic here from it's datasheet, that big red arrow is pointing the "t" is the time length for single period, and from the standard formula -> Freq = 1 / PeriodLength , we got frequency range from 500Hz up/to 5 Khz. This is quite low frequency and really curious on how is the noise profile at slow speed when using low freq pwm.
From G1238B12BBZP-00 datasheet
View attachment 88969
With this much lower frequency from 25KHz which I set at the original circuit, yes, it needs adjustment at the capacitor value. Is there RadShack nearby ? I think they have these kind of cheap discrete components right ?
For the 2-98% version , the C1 needs to be replace with :
- For 500 Hz -> 22 nF
- For 5 KHz -> 2.2 nF or 2200 pF
While for the 0-100% circuit, the R1 & R2 also the C1 need to be replace with these following values :
- For 500 Hz -> R1 = 20K , R2 = 33K and C1 = 33 nF
- For 5 KHz -> R1 = 20K , R2 = 33K and C1 = 3.3 nF
Just change the C1 value between those two values to get the freq between 500 to 5KHz if you want to experiment at other freq.
Actually for this kind of circuit driving the pwm fan, the frequency accuracy is not that important, so imo for the 0-100% version, if you want to keep using the old value for R1 and R2, just in case radshack doesn't carry them, while changing only the C1 part is fine too, the frequency range will be about 460 up to 4.6 KHz which is quite there.
If you see the chart for the PWM vs rpm, you don't need the 0-100% version, at lowest speed it only needs approx 10% duty cycle, while the top speed at 90%, so the 2-98% version is more than enough and much simpler to build too.
Thanks BF.
It's really intriguing that despite out circuits being virtually identical your setup behaves in an entirely different manner from mine. My controller won't stop the fans, and the whining noise is especially bad at the lowest duty cycle.
All the fans are the same - after trying the first fan (at this point I was using the 680pF cap) I thought that maybe there was something wrong with the motor, so I tried the others. Same noise.
I tried your suggestion of 820pF in series, and 390 is still a lot better. I've tested all my caps from 330pF right up to 1K pF, and 390 is by far the best, however as you say it is not the most efficient. One compromise would be using the 470pF cap but running the fan at around 10-15% duty cycle; there will be more air/motor noise, but no whining, and better efficiency.
Re. RPM sensor, it's totally borked - up to 3K rpm it's fine, but above 50% duty cycle my software gives me a reading with seven digits LOL
I will hopefully get started on my article next week, and I'll try and get another video together in the meantime.
Lenny, this is really strange, again really sorry, I just realized at that video, that fan didn't stop at lowest duty cycle, and usually 2% is pretty low enough to make it stop like BrutalForce has.
I suspect the circuit is not working as it should be, especially you can't read the rpm accurately and those high pitch whine, assuming the fan's internal is working, I suggest you re-verify all component's value and recheck the wiring/routes at the breadboard.
Also you can try manually force the duty cyle to perfect 0% by connecting the PWM wire to Ground wire to see if the fan works as it should, this effectively will stop the fan as it's specification. Becareful though, do not accidentally connect the pwm wire to the 12 Volt power line, worry this might toast the fan's internal circuit.
While leaving the pwm wire left unconnected will be the same as at full 100% duty cycle, and it should rotate at it's max speed.