GolamMostafa:
You may execute the following short sketch and check on an oscilloscope if the wave at DPin-2 does posses some properties of 50Hz PWM wave.#include<Servo.h>
Servo myServo;
int pw=0;
void setup()
{
Serial.begin(9600);
myServo.attach(2);
}
void loop()
{
myServo.write(pw);
pw = pw + 0x20;
delay(1000);
}
the Servo libro doesn't use PWM support of the MCU. it uses a timer to create pulses