FPGA主控型数字锁相放大器设计及光谱测量

Digital lock-in amplifier controlled by FPGA for spectral measurement

  • 摘要: 针对激光传输实验中传输内通道空间狭小、CO2浓度低的特点,结合波长调制TDLAS技术,设计了基于现场可编程逻辑门阵列(FPGA)的数字锁相放大器,实现锁相放大和数据采集功能一体化,并将其成功应用于低浓度CO2检测中。为解决低浓度CO2吸收微弱、噪声强等问题,设计了高精度ADC模块,电压分辨率可达0.3 mV;基于DDS原理内部产生正余弦参考信号,保证谐波信号单一性,且实现参考信号频率可调节,覆盖范围1~40 kHz;改进了CIC滤波器,并通过降采样级联FIR滤波器的方式,以较少的硬件资源消耗实现窄带低通滤波,积分时间200 μs~20 ms可调;基于CORDIC算法实现平方和开根运算,相较于JPL算法精度更高。为系统更加小型化,基于Qt实现上位机并结合串口通信,使锁相放大器兼具数据采集处理功能。常温常压光程30 m条件下,测量了CO2在2 μm波段的吸收光谱,获得波长调制吸收光谱信噪比为102.6,相较于直接吸收信噪比8.8,提高约11.7倍;设计并开展低浓度CO2标定实验,获取二次谐波信号幅值和CO2浓度之间的线性关系,相关度为0.996;在纯氮气条件下,利用Allan方差评估了系统性能,平均时间为2 s时,系统检测下限1.30 ppm (1 ppm=10−6),平均时间为180 s时,系统检测下限0.19 ppm;分析了系统响应时间,可在0.5 s内获取气体浓度。实验结果表明,设计的数字锁相放大器具有测量灵敏度高、参数可调节、能够实时处理和小型化的特点,可满足传输内通道中低浓度CO2的检测需求。

     

    Abstract:
      Objective  The effect of thermal blooming in the laser propagation experiment is an important factor affecting the propagation evaluation. The thermal blooming is due to the absorption of gas, which causes the local air to be heated, causing the air to form a density gradient, resulting in refraction and scattering during laser transmission, thus causing the distortion of the laser spot and affecting the experimental results. In the inner channel of the laser propagation, because the laser energy density is high and the air velocity is slow, the thermal blooming is more obvious. Even the trace greenhouse gases will affect the laser propagation. CO2 is the greenhouse gases of highest concentration and the most difficult to completely remove in the inner channel of laser propagation. Therefore, high-precision detection of CO2 in the propagation channel is of great significance for propagation evaluation. The inner channel of the laser propagation is characterized by small space and low CO2 concentration, so a miniaturized and highly sensitive detection system is required. Wavelength Modulation-Tunable Diode Laser Absorption Spectroscopy (WM-TDLAS) technology as an effective detection method is widely used in the detection of trace gas. However, WM-TDLAS system has complex structure and large volume. Therefore, the lock-in amplifier as the core device of WM-TDLAS system is studied in this paper to meet the requirements of high-precision detection of CO2 and make the WM-TDLAS system more miniaturized.
      Methods  The principle of wavelength modulation detection and lock-in amplifier deeply is analyzed, and the key technologies of digital lock-in amplifier are optimized. The reference signal is generated internally based on DDS principle, and the frequency of sine and cosine reference signal is designed to be adjustable which can expand the scope of application (Fig.2). Combined with the characteristics of wavelength modulation, the integral length of CIC filter is improved based on the number of periodic data points of the modulated signal, and the average is achieved by shifting (Fig.3). The narrow-band low-pass filtering is achieved by CIC filter cascaded FIR filter (Fig.4). JPL algorithm and CORDIC algorithm used to calculate root of sum of squares are simulated. According to the simulation results, the CORDIC algorithm is more suitable for lock-in amplifier (Fig.5). The functions of the lock-in amplifier are implemented based on FPGA (Fig.6). In order to make the system more miniaturized, the software is realized based on Qt and serial communication is combined, so that the lock-in amplifier has the function of data acquisition and processing (Fig.7). Relevant hardware circuits are designed (Fig.9). A WM-TDLAS system is built based on multi-pass cell and the experiments are carried out to verify the function of the designed digital lock-in amplifier (Fig.10).
      Results and Discussions   The reference signal frequency of the designed digital lock-in amplifier is 1-40 kHz adjustable and integration time is 200 μs-20 ms adjustable. The high precision ADC module is designed, and the voltage resolution can reach 0.3 mV. The volume of the final hardware circuit is about 150 cm3, which is far smaller than the commercial lock-in amplifier (Tab.1). Under the condition of normal temperature and pressure and optical path of 30 m, absorption spectrum of CO2 was measured at 2 μm band, the signal-to-noise ratio of the wavelength modulated absorption spectrum is 102.6, which is about 11.7 times of the direct absorption signal-to-noise ratio of 8.8 (Fig.11). Calibration experiment of low concentration CO2 is designed and carried out to obtain the linear correlation of the second harmonic amplitude and CO2 concentration of 0.996 (Fig.12). Under the condition of pure nitrogen, Allan variance is used to evaluate the system performance. When the average time is 2 s, the lower limit of system detection is 1.30 ppm, and when the average time is 180 s, the lower limit of system detection is 0.19 ppm (Fig.13). The system response time is analyzed, and the gas concentration can be obtained within 0.5 s (Fig.14).
      Conclusions  A digital lock-in amplifier is designed based on FPGA and Qt. The key algorithms in the lock-in amplifier are analyzed and optimized, and the relevant software and hardware are implemented. Experiments such as harmonic detection of low concentration CO2, calibration of low concentration CO2, analysis of detection sensitivity and analysis of system response time were carried out. The experimental results show that the designed digital lock-in amplifier has the characteristics of high sensitivity, adjustable parameters, real-time processing and miniaturization, and can meet the requirements of low concentration CO2 detection in the inner channel of laser propagation.

     

/

返回文章
返回