1、 I 摘 要 本设计是对汽车内空气质量检测及净化装置的设计, 系统以单片机 AT89C52 为核 心,辅以必要的外部电路,实现了空气质量的监测和净化。其主要模块除单片机控制 部分外,还有空气质量测量、A/D 转换(ADC0809N) 、异常报警和负离子发生器等。 系统采用 QS-01 空气质量传感器对汽车内空气质量进行测量;同时通过 ADC0809N 进 行 A/D 转换将模拟量转换结果给 AT89C52 对空气质量进行比较, 并实现污染超标声光 报警同时启动负离子发生器进行净化空气。 关键词:空气净化系统;单片机 AT89C52;空气质量传感器 QS-01;ADC0809N ;负 离子发生器
2、 II Abstract This design is to the automobile in the air quality examination and the purification design, the system take monolithic integrated circuit AT89C52 as a core, auxiliary by necessity exterior electric circuit, has realized the air quality monitor and the purification. Its main module besi
3、des monolithic integrated circuit control section, but also has free time the makings quantity survey, A/D to transform (ADC0809N), exceptionally to report to the police and the anoin generator and so on. The system uses the QS-01 air quality sensor the air quality to carry on the survey to the auto
4、mobile in; Meanwhile will carry on A/D through ADC0809N to transform will simulate the quantity transformation result to carry on the comparison for AT89C52 to the air quality, and will realize the pollution exceeding the allowed figure acousto-optics warning simultaneously to start the anoin genera
5、tor to carry on the scavenging air Keywords :air purification devices; AT89C52 ;Air quality sensor QS-01; ADC0809N; Anoin generator 东华理工大学长江学院毕业设计(论文) 目 录 III 目 录 摘 要 I 关键词 I Abstract II Keywords .II 绪论 . 1 1 系统设计 . 2 1.1 设计任务及要求 2 1.1.1 设计任务 . 2 1.1.2 设计要求 . 2 1.2 总体设计方案 3 1.2.1 系统总体电路图 . 3 1.2.2 系
6、统总体设计思路及方框图 . 3 1.2.3 各方案论证及选择 . 4 1.2.4 系统组成 . 6 1.3 本章小结 6 2 各功能模块的工作原理电路设计 . 7 2.1 控制模块 AT89C52 简介 7 2.2 空气质量传感器模块 . 10 2.2.1 空气质量传感器的简介 . 10 2.2.2 空气质量传感器工作原理 . 11 2.3 A/D 转换模块 ADC0809N 简介 . 13 2.3.1 ADC0809N 的逻辑结构 . 13 2 .3.2、ADC0809N 的引脚功能 14 2.4 DM74LS90N 功能 17 2.5 空气净化装置的工作原理 19 2.6 本章小结 . 21 3 系统软件程序设计 . 22 3.1 控制系统主程序 . 22 3.2 A/D 转换模块程序设计 25 3.2.1 ADC0809N 工作原理 . 25 3.2.2 A/D 转换流程图及程序 25 3.3 报警功能模块 . 27 3.3.1 报警功能模块电路及流程图 . 28 3.3.2 报警程序 . 30 4 软件调试 . 31 5 展望 .