Main Site Documentation

Reading pwm signal with FEZ mini


#1

Hi there
Is it possible to read and analyze the duty cycle from a pwm signal on a digital input of the fez mini? I want to us the output pwm signal of a rc-reveiver.
I was thinking about smothing the signal wit an lowpass and then connect it to the analog in, but there will be still some ripple on the signal…
any suggestions?
Thanks
Smn


#2

You can minimise the ripple… I mess around with the filter until I optimise the ripple… I have also used a small 8 pin PIC on an spi port and read the PWM that way…

Cheers Ian


#3

You could try an InterruptPort triggered by by both edges. The timestamp on the event is accurate.


#4

Yes mike he could but assuming the frequency is low. Too many interrupts and the system will lock up :frowning: