http://blog.zakkemble.co.uk/avr-microcontroller-based-pwm-fan-controllers/

The .hex files in ./firmware/hex/ are compiled for ATtiny25, but should also work with ATtiny45 & 85

Fuse settings are in ./firmware/config.h