I am doing a project to rotate a servo motor by giving a waveform(anyshape) as input,how can I convert the waveform as PWM signal & giving as input to servo motor to rotate as per the waveform.Please give me a solution for this.