多种失真信号产生及失真度测量装置的实现

The Device for Multiple Distortion Signal Generation and Distortion Measurement

  • 摘要: 针对电路中由非线性元件引起的信号失真问题,设计与实现了一款多种失真信号产生与失真度测量装置。该装置硬件结构由信号产生、信号选择、MCU控制、本地显示与交互、无线传输和其它辅助电路组成。软件部分利用单片机定时器控制ADC采集信号电压,并开启DMA通道提高数据传输速度。通过部署DSP库对信号进行快速FFT变换,测量前五次谐波幅值后计算总谐波失真THD值。经测试表明:当输入信号电压峰峰值为20 mV至3 V,基波频率为1 KHz至100 KHz时,装置可通过本地交互和手机APP选择控制输出顶部失真、底部失真、双向失真、交越失真和无明显失真五种信号,对不同类型、不同失真度下的五种信号THD测量绝对误差均小于0.008。装置响应速度快,支持人机交互、数据存储与追溯,为信号失真机制与THD测量提供可视化的教学工具,为新型的信号处理装置开发提供技术参考。

     

    Abstract: A device for multiple distortion signal generation and distortion measurement was implemented to measure the signal distortion caused by nonlinear components in circuits. The hardware structure of the device consists of signal generation, signal selection, MCU control, local display and interaction, wireless transmission, and other auxiliary circuits. The ADC was controlled by timer to collect signal voltage and the DMA channel was used to improve data transmission speed. A DSP library was deployed in MCU to perform fast FFT transformation on the signal, the total harmonic distortion THD value was calculated after measuring the amplitude of the first five harmonics. The tests showed that when the voltage peak value of the input signal was between 20 mV and 3 V, and the fundamental frequency was between 1 KHz and 100 KHz, the device could control the output of five types of signals: top distortion, bottom distortion, bidirectional distortion, crossover distortion, and no obvious distortion through local interaction and mobile app. The absolute error of THD measurement for five types of signals under different types and degrees of distortion was less than 0.008. The device has a fast response speed, supports human-machine interaction, data storage and traceability, and provides a visual teaching tool for signal distortion mechanism and THD measurement, as well as technical references for the development of new signal processing devices.

     

/

返回文章
返回