- 5
- 0
- 约2.39万字
- 约 38页
- 2015-12-24 发布于辽宁
- 举报
毕业设计
基于单片机AT89C52的大棚温度控制系统
目 录
第1章 绪 论 1
1.1 系统的概述 1
1.2 系统的要求 1
1.3 系统的主要模块 2
1.3.1 本系统的主要组成部分 2
1.3.2 各部分的功能 2
1.3.3 工作原理 2
第2章 设计的理论基础 3
2.1 AT89C52的工作原理 3
2.1.1 CPU的结构 3
2.1.2 CPU的结构I/O口结构 3
2.1.3 程序存储器 3
2.1.4 定时器 4
2.1.5 中断系统 4
2.2 单总线数字温度传感器DS18B20检测电路 5
2.2.1 DS18B20简单介绍 5
2.2.2 DS18B20 的性能特点 5
2.2.3 DS18B20的测温原理 6
2.3 LCD1602液晶显示器 6
2.3.1 LCD1602简介 6
2.3.2 1602LCD的指令说明及时序 7
2.4 直流马达 9
2.4.1 马达工作的原理 9
2.4.2 马达的基本构造 9
2.5 蜂鸣器 9
第3章 系统的硬件组成电路设计 11
3.1 系统总硬件设计 11
3.2 时钟电路 11
3.3 AT89C52的复位电路 12
3.4 单总线数字温度传感器DS18B20检测电路 12
3.5 LCD1602显示模块 13
3.6 驱动电路 13
3.7 报警电路 14
第4章 系统软件的设计 15
4.1主程序设计 15
4.2 温度检测 16
4.2.1读取温度设计 16
4.2.2 温度数据处理设计 17
4.3 液晶显示器LCM1602 19
4.3.1 LCM1602初始化 19
4.4马达的控制 20
4.5 报警器的启动 21
第5章 总结与展望 22
5.1 总结 22
5.2 展望 22
参考文献 23
致 谢 24
附录A 25
附录B 30
附录C:实物照片 33
基于单片机AT89C52的大棚温度控制系统
摘 要
蔬菜的生长与温度息息相关,对于蔬菜大棚来说,最重要的一个管理因素是温度控制。温度太高,则停止生长或者生长速度减慢,所以要将温度始终控制在适合蔬菜生长的范围内。如果仅靠人工控制既耗人力,又容易发生差错。为此,在现代化的蔬菜大棚管理中通常有温度自动控制系统,以控制蔬菜大棚温度,适应生产需要。
本设计是通过单片机控制,来实现对蔬菜大棚温度进行自动控制.系统以AT89C52单片机为基础,通过数字及模拟式对温度进行检测,通过显示屏显示当前温度。当采集到的温度高于20℃,马达将带动风扇的转动,实现自动控制大棚里的温度.并且随着温度每升高5℃,马达的转动速率提高一倍。当检测到的温度高于35℃时,发出报警信号。
【关键词】大棚温度控制系统 AT89C52 18B20 LCD1602 马达
The Greenhouse Temperature Control System
Based on AT89C52 MCU
Abstract
The growth of vegetables is closely related to the temperature, for vegetable greenhouses, the most important factors of the managements are the temperature control. The temperature is too high; the growth rate will stop or slow down. That is why it is necessary to always control temperature within the context of growing vegetables in suitable. If only depends on the manual control both to consumer the manpower, and easy to have mistaken. Therefore, usually there are automatic control systems of temperature in modernized vegetable canopy management, in order to control the temperature of vegetable canopy, adapt to producing the need.
This design is controlled through the microcontroller, to achieve auto
原创力文档

文档评论(0)