AT89S51单片机的温室大棚测控系统设计+电路图

温室大棚测控系统的设计采用目前使用很广的AT89S51单片机,配合以温湿度传感器(SHT11),传感器可自动设定温度、湿度上下限。Microcontrollers会将温室内检测到温度、湿度信号与最初输入的温


摘  要:温室大棚又称暖房,是被人发明出来栽培种植植物的一个模拟自然的人为设施,它本身能够透光,给其内部保持温湿度,能够很好的给农业生态提供舒适的环境,以此促进农业发展。现代的温室具有可以温度、湿度、光线等其他功能变得可控,并自动控制计算机为植物创造最佳的环境条件。

本文主要介绍温室大棚的温、湿度控制的系统。该系统的设计采用目前使用很广的AT89S51单片机,配合以温湿度传感器(SHT11),传感器可自动设定温度、湿度上下限。Microcontrollers会将温室内检测到温度、湿度信号与最初输入的温度上下限,湿度上下限进行比较,根据结果控制继电器是否启动。本设计还加入了数码显示管及状态灯、报警器,使得对温室大棚的控制更加科学性。

通过该系统可以有效的测控大棚内的温湿度情况,以及更科学性的维护作物的生长。

关键词:AT89S51;温度传感器;湿度传感器;控制;

ABSTRACT:Greenhouse, able to light, heat (or heating), used to cultivate plant facilities. As the greenhouse to crop out of the place, season, climate change and other effects and restrictions, can effectively improve the agricultural ecology and production conditions, and promote agricultural development. Therefore, greenhouse technology in the world has been widely used. Greenhouse structure should be sealed insulation, but also should be convenient ventilation cooling. Modern greenhouse with the control of temperature and humidity, lighting and other conditions of the equipment, with the computer automatically control the plant to create the best environmental conditions.

This paper mainly introduces the control system of temperature and humidity in greenhouse. The system is designed to use a very wide range of AT89S51 microcontroller, with the temperature and humidity sensor (SHT11), the sensor can automatically set the temperature, humidity upper and lower limits. Microcontrollers will be detected in the greenhouse temperature, humidity and temperature of the initial input of the upper and lower limits, the upper and lower limits of humidity, according to the results of the control relay is activated. The design also joined the digital display tube and status lights, alarm, making the control of greenhouse more scientific.

The system can effectively measure the temperature and humidity in the greenhouse, as well as more scientific maintenance of crop growth.

Key words:AT89S51;Temperature Sensor;Humidity Sensor;Control;

目  录

第一章  引言 1

1.1温室大棚测控系统的背景 1

1.2温室大棚测控系统的意义及目的 1

1.3温室大棚的发展阶段 1

1.3.1手动控制 1

1.3.2自动控制 2

1.3.3智能控制 2

1.3.4 温室大棚的发展现状 2

1.4 温室大棚的分类 2

1.4.1 玻璃温室 2

1.4.2塑料棚温室 2

1.4.3塑料日光温室 3

1.4.4活动屋面温室 3

第二章  系统总体设计方案 4

2.1.温、湿度测控系统设计 4

2.2系统元件的选定 4

2.2.1温、湿度传感器 5

2.2.1.1 SHT11 5

2.2.1.2 SHT11引脚功能 5

2.2.1.3 SHT11内部结构和工作原理 6

2.2.2单片机 6

2.2.2.1 AT89S51 6

2.2.2.2 引脚图 6

2.2.2.3功能性 8

2.2.3显示模板 8

2.2.3.1 LCD1602 8

2.2.3.2 LCD1602的主要技术参数 8

2.2.3.3 LCD1602管脚图 9

2.2.3.4 引脚功能说明 9

2.2.3.5 1602LCD内部显示地址 10

第三章  系统硬件设计方案 11

3.1 主控制电路和测温湿控制电路 11

3.2 主要模块的电路 11

3.2.1蜂鸣器电路 11

3.2.2 晶振电路 12

3.2.3显示电路 13

3.2.4 传感电路图 13

3.2.5 复位电路 13

3.3系统硬件原理图 14

第四章  系统软件设计方案 15

4.1 PROTEUS软件介绍 15