Electrical – Sampling frequency and the pulse-widths

pulse

Imagine a pulse train around 80Hz. Using two DAQ at the same time I sample this pulse with 5000Hz and 10000Hz. I get slightly different pulse widths in each case. I use an algorithm which detects rising edges and find each pulse widths.

Do you think sampling freq. have effect on detecting pulse widths in this case?

Best Answer

You are aliasing, because you are not respecting the Nyquist criterion.

An 80Hz pulse train has components going up to very high frequencies. You will alias these differently depending on your sampling frequency.

If you low pass filter your pulse train, such that all components above fs/2 are removed, then you will get consistent results. However, note that once you have low pass filtered, you will need to use an ADC to capture the signal.