Grove - Mini Fan


I am trying to connect the Grove-Mini Fan with the GrovePi and Raspberry Pi Model B+, and I have the following questions:
Should I connect the Fan to which port? D or A?
How can I change the velocity of the fan?



The Grove mini fan uses PWM signals to change the speed. Can you try using analogWrite to change the speed and see if it works. You can have a look at the LED fade example to see how it works: