Hello guys i made an experiment to get the duty cycle and frequency of an analog signal. For example, PWM. Well My code is not that accurate but it is quite enough for beginners and for projects that doesn't really need an accurate reading.
The code is here.
http://rhalfcaacbay.blogspot.com/
thank you