ATmega16空气净化装置控制系统的设计+电路图

本设计以AVR单片机系列的ATmega16为核心部分,利用空气质量传感器实现对室内空气质量的检测。


摘  要:随着人们生活水平的提高,对生活质量的要求也是越来越高,尤其对室内生活环境的舒适度更加注重,为了优化室内绿色空气环境质量,使用合适的空气净化器来改善室内空气质量成为人们的首选。目前,随着智能化技术的发展,空气净化器领域研究的热点趋于高度智能化,智能化技术成为空气净化器装置智能化系统的其中一个重要组成部分,使得空气净化器朝着智能化的方向迅速发展,且智能化的空气净化器在家用、车载、办公场所以及旅游场所等都有着极为广泛的应用。

本文首先是对空气质量检测和净化装置的设计,采用模块化的思想设计,系统以单片机ATmega16为核心,加上必要的外部电路,从而达到实现了对空气质量的检测和净化的目的。装置系统由电源转化模块、温湿度测量、风扇控制模块、异常报警、显示模块、雾化模块等组成。空气净化器中的传感器用来监测室内的温度和湿度,当温度高于设置值的时候,控制器启动净化器中的风扇控制模块,进行降温;当湿度低于设置值的时候,启动雾化模块,选择是进行加湿模式或者清香模式或者中药保健模式,从而达到清洁、净化空气的目的。

关键词: AT mega 16单片机;空气质量传感器;模块化

ABSTRACT:With the improvement of people's living standards, the quality of life requirements are getting higher and higher, especially for the comfort of indoor living environment more attention, in order to optimize the indoor green air environment quality, the use of appropriate air purifier to improve indoor air quality People's first choice. At present, with the development of intelligent technology, air purifier field research hot tends to be highly intelligent, intelligent technology has become an air purifier device intelligent system, one of the important components, making the air purifier towards the intelligent The rapid development of the direction, and intelligent air purifier in the home, car, office space and tourist sites have a very wide range of applications.

The design of the first air quality testing and purification device design, the use of modular design, the system to single-chip ATmega16 as the core, with the necessary external circuit, so as to achieve the air quality of the detection and purification purposes. The system consists of power conversion module, temperature and humidity measurement, fan control module, abnormal alarm, display module, atomization module and so on. The sensor in the air purifier is used to monitor the temperature and humidity in the room. When the temperature is higher than the set value, the controller starts the fan control module in the purifier and cools down. When the humidity is lower than the set value, Module, the choice is to carry out humidification mode or fragrance mode or traditional Chinese medicine health mode, so as to achieve clean, clean air purposes.

Key words: single chip; air quality sensor; modular

目  录

第一章  绪论 1

1.1研究的意义 1

1.2研究的目的 2

第二章  系统的总体设计方案 3

2.1设计的任务与要求 3

2.2总体设计方案 4

2.3总体设计的软硬件环境 5

2.4本章小结 5

第三章  系统的各功能模块设计 6

3.1 单片机微处理器的选择 6

3.2 温湿度测量模块 8

3.3 电源转化模块 9

3.4 风扇模块 10

3.5 异常报警模块 11

3.6 显示模块 12

3.7 本章小结 12

第四章  系统的软件程序设计 13

4.1 主程序流程图 13

4.2 初始化 13

4.3 变量的初始化 16

4.4 传感器程序 16

4.5 中断和延时程序 18

4.6 显示模块 19

4.7本章总结 22

第五章  系统的仿真软件调试 23

5.1调试使用的仿真软件介绍 23

5.2调试原理图 23