1、 大棚温湿度自动控制系统设计大棚温湿度自动控制系统设计 摘摘 要要:本设计是基于 STC89C52RC 单片机的大棚温湿度自动控制系统,采用 SHT10 作为温湿度传感器,LCD1602 液晶屏进行显示。SHT10 使用类似于 I2C 总线的时序与 单片机进行通信,由于它高度集成,已经包括 A/D 转换电路,所以使用方便,而且准 确、耐用。LCD1602 能够分两行显示数据,第一行显示温度,第二行显示湿度。这个 控制系统能够测量温室大棚中的温度和湿度,将其显示在液晶屏 LCD1602 上,同时将 其与设定值进行对比,如果超出上下限,将进行报警并启动温湿度调节设备。此外,还 可以通过独立式键盘对
2、设定的温湿度进行修改。通过设计系统原理图、用 Proteus 软件 进行仿真,证明了该系统的可行性。 关键词关键词:STC89C52RC,SHT10,I2C 总线,独立式键盘,温湿度自动控制 Abstract: This design is an automatic temperature and humidity controller for greenhouses, with the STC89C52RC MCU being its main controller. It uses the SHT10 as the temperature and humidity sensor, and
3、the LCD1602 to display the messages. The SHT10 uses a timing sequence much like the I2C to communicate with the micro-controller. Because its a highly integrated chip, it already includes an analog to digital converter. Therefore, its quite convenient to use, and also accurate and durable. The LCD16
4、02 can display two lines of messages, with the first line for temperature and the second line for humidity. The design can measure the temperature and humidity in a greenhouse, and then display it on a LCD1602. Meanwhile, it compares the data with the set limit. If the limit is exceeded, then the sy
5、stem will send out a warning using a buzzer and activate the temperature and humidity controlling equipment. Besides, the set limit can be modified with the independent keyboard. Through schematic design and Proteus simulation, the feasibility of this design has been proved. Keywords: STC89C52RC, SH
6、T10, I2C bus, independent keyboard, temperature and humidity control 目目 录录 1 前言前言 . 1 2 总体方案设计总体方案设计 . 3 2.1 温湿度控制系统的设计指标要求 3 2.2 系统设计的原则 3 2.2.1 可靠性 . 3 2.2.2 性价比 . 3 2.3 方案比较 4 2.3.1 方案一 . 4 2.3.2 方案二 . 4 2.4 方案论证 5 2.5 方案选择 5 3 单元模块设计单元模块设计 . 6 3.1 各单元模块功能介绍及电路设计 6 3.1.1 单片机最小系统 . 6 3.1.2 液晶显示模块 . 8 3.1.3 温湿度传感器模块 . 8 3.1.4 报警电路的设计 . 9 3.1.5 输出电路设计 . 10 3.1.6 电源的设计 . 12 3.1.7 按键电路设计 . 13 3.1.8 串口通信电路 . 14 3.2 元件清单 15 3.3 关键器件的介绍 17 3.3.1 STC89C52RC . 17 3.3.2 SHT10 温湿度传感器 19 4 系统系统软件设计软件设计