Identifying common periodic waveforms (square, sine, sawtooth, …)

前端 未结 7 2351
盖世英雄少女心
盖世英雄少女心 2021-02-09 10:31

Without any user interaction, how would a program identify what type of waveform is present in a recording from an ADC?

For the sake of this question: triangle, square

7条回答
  •  不要未来只要你来
    2021-02-09 11:10

    Perform an autocorrelation to find the fundamental frequency, measure the RMS level, find the first zero-crossing, and then try subtracting common waveforms at that frequency, phase, and level. Whichever cancels out the best (and more than some threshold) wins.

提交回复
热议问题