This is a brief app using PWM to make the Arduino control the speed of a small CPU fan. An NPN transistor will be driven from an Arduino pin using Pulse width modulation.