基于89C52的酒精测试仪设计
摘要
酒后驾车问题越来越得到社会的关注,酒精浓度对工业安全生产也很重要,为此设计了酒精测试仪来检测空气中酒精浓度。
AT89C52是一种可编程控制的微处理器,具有体积小,价格低,性能稳定的特点,被广泛的应用于工业自动化、智能仪器仪表等领域。酒精传感器MQ3以其灵敏度高、性能稳定、价格便宜、体积小在酒精检测设计中被广泛使用。
酒精测试仪硬件主要由89C52、酒精传感器MQ3、A/D转换器TLC549、数码管、键盘、蜂鸣器六部分组成,其中89C52是核心。软件用汇编语言进行编程,采用模块化设计思想。在该装置中,MQ3将检测到的酒精浓度值转化为电压信号,电压信号经TLC549转化为数字信号,并送入单片机,单片机对所输入数字信号分析处理,并送至数码管显示。由于不同环境对酒精浓度要求不同,这里可以通过键盘设定不同阀值,并送至数码管显示,与检测值比较。当检测值大于阀值,单片机将会控制蜂鸣器发出警报,实现了对酒精浓度的监测、显示、报警功能。
,该酒精测试仪可实现对空气中酒精浓度10~1000ppm范围的监测,精度可到到±4ppm,性能稳定,LED显示器能够对设定值和检测值实时显示,并能够实现声光报警功能。
关键词:酒精测试仪,89C52,TLC549,酒精传感器MQ3
Alcohol Concentration Monitor Based on 89C52
ABSTRACT
Drinking driving is ing a serious social problem with more social concerns, alcohol concentration is also important in industrial production, so an alcohol detector is designed to detect the alcohol concentration in the air.
89C52 is a programmable control microprocessor, with small volume, low price, stable performance characteristics, and widely applied to industrial automation, intelligent instrument, etc. Alcohol sensor MQ3 is widely used for its high sensitivity, stability, price cheap, small volume.
Alcohol detector's hardware consists of STC89C52, alcohol sensor MQ3, A/D converter TLC549, LED, keyboard and buzzer. Huibian language is used to realize the software. Alcohol concentration signal is changed into voltage signal by MQ3, then the voltage signal is changed into digital signal through A/D converter. Digital signal is analyzed and processed by 89C52 and sent to display. Because different environments require different alcohol concentration, here you can set different values by the keyboard, then displayed on LED , comparing with the detecting value. When detecting value is more than setting value, 89C52 will control buzzer alarms. The device realizes the monitor, display and alarm.
Simulation results in the show that alcohol detector can monitor the range10~1000ppm alcohol,precision to ± 4ppm and realizes real-time disp
毕业设计(论文)-基于89C52单片机的酒精测试仪设计 来自淘豆网m.daumloan.com转载请标明出处.