摘要
针对国民经济和人们生产生活等领域对酒精气体浓度智能化检测与控制的需求,设计研制了一种无线智能酒精浓度探测仪。该仪器采用STC90C52RC单片机控制10位A/D转换器TLC1549采集酒精浓度传感器TGS2620输出的电压信号,经数据处理获得酒精浓度值。该数值分别由液晶显示模块DM-162、语音录放电路ISD2560和无线收发芯片nRF24L01进行实时显示、语音播报和发送至上位机。本设计采用基于对象的程序设计语言Microsoft Visual Basic 6.0开发上位机用户界面,实现酒精浓度数据的显示和保存。在软件设计中应用防脉冲干扰平均滤波算法抑制采样数据的脉动性质干扰,采用分段线性插值法作标度变换提高系统的实时性,并采用最小二乘法线性拟合技术进行系统误差校正。实物测试结果表明,该仪器的测量精度≤±2%,通信距离≤100 m,验证了设计的正确性和有效性。
Aiming at the demand for intelligent detection and control of alcoholic gas concentration in the fields of the na-tional economy, people′s productions and lives and so on, a wireless intelligent alcohol concentration detector is designed and developed in this paper.The instrument adopts the STC90 C52 RC microcomputer to control the 10-bit A/D converter TLC1549 to acquire the output voltage signal of the alcohol concentration sensor TGS2620.The alcohol concentration value is obtained by data processing.This value is displayed in real time by the LCD module DM-162, broadcasted by the speech recording and playback circuit ISD2560, and sent to the upper computer by the wireless transceiver chip nRF24 L01 respectively.The user interface of the upper computer is developed by employing the general object-based programming lan-guage Microsoft Visual Basic 6.0 to display and save the alcohol concentration data.In the software, the anti-pulse interfer-ence average filtering algorithm is used to suppress the pulsating interference in the sampled data.The piecewise linear in-terpolation method is used for scaling transformation so as to improve the real-time performance of the system.And the lin-ear fitting technique based on least square method is used to correct the system error.The actual testing results show that the measurement accuracy of the instrument is less than ± 2 % and the communication distance is less than 100 m, which verifies the correctness and effectiveness of the design.
作者
胡仕兵
陈子为
Hu Shibing;Chen Ziwei(College of Electronic Engineering,Chengdu University of Information Technology,Chengdu 610225,China)
出处
《电子技术应用》
2020年第3期66-70,75,共6页
Application of Electronic Technique
基金
2016年四川省大学生创新创业训练计划项目(201610621061)