Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Sure. The code is on my blog here http://www.barnesian.com/2011/05/arduino-powered-smart-fan-controller.html at the end.
The RPM is a bit of a fake out. It is an estimate. I know that the fan can be 0 to 1200 rpm and I know that the PWM output can be between 0 and 255, so I did a linear regression to get a reasonable estimate. As it turns out the RPM is a bit hard to read from the yellow wire.