Fan PWM driver - design question
I'm confused why you would want to convert your PWM signal into a very inefficient linear driver. PWM divers are used to efficiently modulate the power directly to the motor with minimal losses in the switch gear.

The following circuit would be typical..







simulate this circuit &ndash; Schematic created using CircuitLab

PWM motor drivers of this type do the integration you performed with R1 and C1 using the inductance and inertia of the motor itself.

If you need tighter speed control you can, with appropriate timing, you can feed back the voltage at the top of the MOSFET, suitable scaled, to the micro and have the latter measure the back-EMF and hence the motor speed. 



EDIT:

Switching a BDLC fan at high frequencies can however be problematic, and as you have indicated, and can be noisier that a linear drive.

In that case the principal of your circuit is ok as long a the time constants of the integrator is sufficient. 

However: The way you have the MOSFET connected means you can never drive the fan with anything greater than Vcc - Vth (The threshold voltage of the MOSFET.)

As such it would be more appropriate to invert the amplifier and use a P-MOSFET instead. Something like the schematic below. 

Notice I also changed the feedback on the op-amp to change it from a voltage follower into to a positive gain amplifier to convert your 3.3V signal to a full 5V signal. 

BE AWARE: The OP-AMP needs to be rail-to-rail on inputs and outputs.







simulate this circuit