Generating PWM from PID to control DC motor

naeemawan36:
Sir i didnt find pwmGenerate() in arduino website

Of course you didn't. It does not exist. I just said that it might have been a more meaningful name for the function that is now called analogWrite().

...R