Arduino PWM

mohan_hv:
Thanks for your reply.

The problem i am facing here is to detect sudden rise in anlaog input pin.
How to detect sudden rise in analog pin.

Thanks

Hi,

It sounds easy: divide the voltage delta by the time delta and compare it to what you deem to be "sudden".

Regards.