Fan Speed Regulation PWM GPIO

Here's a link to my slot-car racing project.
This used a PWM pin driving a power transistor.