Click here to Skip to main content
15,887,442 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 Pin
OriginalGriff23-Dec-22 1:33
mveOriginalGriff23-Dec-22 1:33 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 Pin
Craig Robbins23-Dec-22 1:49
Craig Robbins23-Dec-22 1:49 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 Pin
OriginalGriff23-Dec-22 2:04
mveOriginalGriff23-Dec-22 2:04 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 You win! Pin
OriginalGriff23-Dec-22 2:04
mveOriginalGriff23-Dec-22 2:04 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 - edited with solution Pin
Craig Robbins23-Dec-22 2:32
Craig Robbins23-Dec-22 2:32 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 - edited with solution Pin
DerekT-P23-Dec-22 2:55
professionalDerekT-P23-Dec-22 2:55 
GeneralRe: WDNSO CCC OTD 23-Dec-2022 - edited with solution Pin
OriginalGriff23-Dec-22 2:34
mveOriginalGriff23-Dec-22 2:34 
GeneralAdventures in fan control Pin
honey the codewitch22-Dec-22 21:54
mvahoney the codewitch22-Dec-22 21:54 
The hypothetical fan has a tach pin that pulses high twice per revolution.

There are two ways to get the RPM:

1. Count the actual pulses it makes in a minute and divide by two (or a fraction of a minute and factor accordingly)

2. Count the time (in microseconds probably) between pulses and use that to extrapolate the RPM. There are 6e+7 microseconds in a minute, so working with that, you divide it by twice the duration of the pulse.

2 has an obvious advantage in that it doesn't require you to sample for a significant period of time before you get a value. In fact, you can get a value each revolution since there are two pulses.

The problem with 2 is it doesn't work? My RPMs come back as like 5-7 on a 1700RPM fan being run at full power.

I've had other people eyeball my code and my math. There's nothing wrong with it.

So I've got some sort of theory of operation problem.

You'd think a fan would be relatively simple, but it stumped me.
To err is human. Fortune favors the monsters.

GeneralRe: Adventures in fan control Pin
OriginalGriff22-Dec-22 22:01
mveOriginalGriff22-Dec-22 22:01 
GeneralRe: Adventures in fan control Pin
honey the codewitch22-Dec-22 22:08
mvahoney the codewitch22-Dec-22 22:08 
GeneralRe: Adventures in fan control Pin
Rich Leyshon22-Dec-22 23:03
Rich Leyshon22-Dec-22 23:03 
GeneralRe: Adventures in fan control Pin
honey the codewitch22-Dec-22 23:24
mvahoney the codewitch22-Dec-22 23:24 
QuestionRe: Adventures in fan control Pin
CPallini22-Dec-22 23:26
mveCPallini22-Dec-22 23:26 
AnswerRe: Adventures in fan control Pin
honey the codewitch22-Dec-22 23:27
mvahoney the codewitch22-Dec-22 23:27 
GeneralRe: Adventures in fan control Pin
CPallini22-Dec-22 23:40
mveCPallini22-Dec-22 23:40 
GeneralRe: Adventures in fan control Pin
Phil Hodgkins23-Dec-22 3:11
Phil Hodgkins23-Dec-22 3:11 
Generalworldle 335 Pin
jmaida22-Dec-22 16:29
jmaida22-Dec-22 16:29 
GeneralWordle 552 Pin
StarNamer@work22-Dec-22 14:13
professionalStarNamer@work22-Dec-22 14:13 
GeneralRe: Wordle 552 Pin
Amarnath S22-Dec-22 16:06
professionalAmarnath S22-Dec-22 16:06 
GeneralRe: Wordle 552 Pin
Sandeep Mewara22-Dec-22 18:33
mveSandeep Mewara22-Dec-22 18:33 
GeneralRe: Wordle 552 Pin
OriginalGriff22-Dec-22 20:02
mveOriginalGriff22-Dec-22 20:02 
GeneralRe: Wordle 552 Pin
ChandraRam22-Dec-22 20:47
ChandraRam22-Dec-22 20:47 
GeneralRe: Wordle 552 Pin
Amol_B22-Dec-22 21:33
professionalAmol_B22-Dec-22 21:33 
GeneralRe: Wordle 552 Pin
pkfox22-Dec-22 21:36
professionalpkfox22-Dec-22 21:36 
GeneralRe: Wordle 552 Pin
Sander Rossel22-Dec-22 22:31
professionalSander Rossel22-Dec-22 22:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.