蔬菜大棚温湿度控制系统设计
[摘要] 蔬菜大棚温度湿度自动控制系统由主控制器AT89C51单片机、并行口扩展芯片8255、74LS373、A/D转换器0809、湿度传感器、温度传感器DS1820、固态继电器、RAM6264、掉电保护和LED显示器和报警电路等构成,实现对蔬菜大棚温湿度的检测与控制,从而有效提高蔬菜的产量。文中提出了具体设计方案,讨论了蔬菜大棚温湿度巡回检测与控制的基本原理,进行了可行性论证。给出了电路图和程序流程图并附有源程序。由于利用了单片机及数字控制系统的优点,系统的各方面性能得到了显著的提高。
[关键词] 温度传感器 湿度传感器 快速检测 A/D转换器 LED显示器 固态继电器
Vegetables Canopy Temperature and Humidity Automatic Control
System
[Abstract] Vegetable greenhouse temperature humidity automatic control system consists of main controller AT89C51 single-chip microcomputer, parallel port expansion chip 8255, 74ls373, a / D converters 0809, humidity sensor, temperature sensor DS1820, solid state relay, RAM 6264, off electrical protection and LED display and alarm circuit structure, to realize the detection and control of temperature and humidity of greenhouse vegetables, so as to effectively improve vegetable yield. In this paper, the specific design scheme is put forward, and the basic principle of the temperature and humidity measurement and control of the greenhouse is discussed. The circuit diagram and program flow chart are given and the source program is attached. Due to the advantages of single chip microcomputer and digital control system, the performance of all aspects of the system has been significantly improved.
[Keyword] Temperature sensor humidity sensor Rapid detection A/D converter LED display Solid state relay
目录
1概述………………………………………………………………………………………………………………. 1
2系统的硬件组成电路设计………………………………………………………………………………….. 3
2.1 系统的硬件组成框图 …………………………………………………………………………. 3
2.1.1 系统的工作原理 ……………………………………………………………………… 3
2.2系统主控制器部分设计 …………………………………………………………………………. 3
2.2.1 AT89C51的工作原理 …………………………………………………………………. 3
2.2.2 AT89C51的复位电路 …………………………………………………………………… 5
2.2.3 AT89C51的引脚功能 …………………………………………………………………… 5
2.3数据存储器的扩展………………………………………………………………………………….. 8
2.4 LED显示器………………………………………………………………………………………….. 11
2.5 A/D转换接口 ……………………………………………………………………………………. 13
2.5.1 A/D转换器的基本工作原理及器件简介 ………………………………………… 13
2.5.2 ADC0809与AT89C51单片机的接口设计 …………………………………………… 15
3单总线接口…………………………………………………………………………………………………… 17
3.1单总线芯片的硬件结构 ……………………………………………………………………….. 17
3.2单总线芯片的供电 ……………………………………………………………………………… 17
3.3单总通信的ROM命令……………………………………………………………………………… 18
4单总线数字温度传感器DS1820和湿度检测电路…………………………………………………… 20
4.1 DS1820的主要特性 ……………………………………………………………………………. 20
4.2 DS1820 内部结构 …………………………………………………………………………… 20
4.3 DS1820的工作原理 ……………………………………………………………………………. 21
4.4DS1820使用中注意事项………………………………………………………………………….. 22
4.6报警电路…………………………………………………………………………………………….. 23
5系统的软件设计…………………………………………………………………………………………….. 25
5.1设计方法…………………………………………………………………………………………….. 25
6结 论…………………………………………………………………………………………………………. 26
致 谢………………………………………………………………………………………………….. 27
参考文献………………………………………………………………………………………………………… 28