Using Potentiomter with a fan

Hello,
I got a PC fan, which is PWM PST, this one:

How can I adjust its speed with an 100k potentiometer?

As I saw its cable has 4 wires: ground, positive and another 2 that maybe can controll speed with PWM but I don’t know how. Does anyone know how can I do this?

Thank you.

When you searched for this subject on the internet you did not find any results? I used the words "arduino pwm resistor" to find a wonderful set of result sets.

Or searching for "arduino 4-wire fan" will find results which are even more directly useful.

Steve

The link you posted doesn't say anything about PWM voltage or minimum frequency and you didn't say which Arduino you have , so...?

Hello
PSEUDOCODE:

analogWrite(fanPin,analogRead(potPin)>>2);