Controlling 5V PWM Fan with Potentiometer Alright so I wanted to make myself a Deskfan using Arduino and a potentiometer. The reason for using arduino is that I want to display the current temperatur and the fan speed either through rpm or with %. Currently it seems to work fine using the potentiometer to control the pwm. But either i'm just not believing that it works correctly or it really isn't. My only problem is that I think the fan is not outputting 100% of its power with the pwm signal. Maybe about a few % less. But I don't really know if there is something that I am missing or if it really is outputting 100%.  The fan in question would be a Noctua NF-A14 5V PWM (+-1500 MAX).

Edit: Is it possible  that I'm not using full 100% of the fan?
 If so what would I need to change if that were the case. I heard something about changing to 25khz pwm but yeah..

Here is my code without the lcd stuff.

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(9, OUTPUT);
}

void loop() {

  int potValue = analogRead(A5);

  int newpotValue = map(potValue, 0, 1023, 0, 255);
  Serial.println(newpotValue);
  analogWrite(9, newpotValue);
}
According to Your Fan Datasheet its 1.3 W/5V Fan...
That means its nearly consume 3 A current which cant be supplied directly from arduino pins...
so you have to use PWM converter ...
it almost solve your issues...