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

A Device for Generating and Measuring Multiple Distorted Signals

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

     

    Abstract: To address the issue of signal distortion caused by nonlinear components in circuits, a device capable of generating and measuring multiple types of distorted signals was designed and implemented. The hardware structure of the device consisted of signal generation, signal selection, MCU control, local display and interaction, wireless transmission, and other auxiliary circuits. In the software, a MCU timer was used to control the ADC for signal voltage acquisition, and a DMA channel was enabled to improve data transfer speed. A DSP library was deployed to perform a fast Fourier transform (FFT) on the signal, after which the total harmonic distortion (THD) value was calculated by measuring the amplitudes of the first five harmonics. Test results indicated that for an input signal with a peak-to-peak voltage ranging from 20 mV to 3 V and a fundamental frequency 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 mean absolute error in THD measurement for all five signal types, across various distortion levels, was found to be less than 0.008. The device has a fast response speed, supports human-machine interaction, data storage and traceability, providing a visual teaching tool for understanding the signal distortion mechanism and THD measurement, and offering a technical reference for the development of novel signal processing devices.

     

/

返回文章
返回