当前位置:文档之家› 基于51单片机温湿度采集控制系统.doc

基于51单片机温湿度采集控制系统.doc

基于51单片机温湿度采集控制系统
.摘要温湿度控制系统早已经成为当今社会研究的热门领域之一,同时温湿度也是现今工农业生产生活中必须要首先考虑的重要因素之一。

因此现今社会生产生活中就迫切需要一种价格便宜、容易操作而且精确度高的温湿度控制系统。

本系统设计就是利用AT89C52单片机对温湿度参量进行检测进而实现对温湿度参量的控制。

本系统设计通过使用AT89C52单片机、DHT11传感器模块、LCD1602液晶显示屏模块以及二极管闪烁报警模块。

简单的系统设计就可以基本上满足本系统设计的系统设计要求。

DHT11数字温湿度传感器负责把采集到的温湿度信号传送给AT89C52单片机。

温湿度经过AT89C52单片机处理,然后AT89C52准确地把温湿度信号发送到LCD1602液晶显示屏模块,温湿度数据就可以准确地显示到LCD1602液晶屏上面,同时我们可以分别对温度和湿度设置上下限,越限二极管闪烁报警。

关键词:
AT89C52单片机,DHT11传感器模块,1602液晶显示屏模块,二极管闪烁报警模块word教育资料ABSTRACTTemperature and humidity control system has already become one of the most popular areas of today's social research, one of the factors of temperature and humidity is also today's industrial and agricultural production life must first consider important. Therefore the social production and living an urgent need for a cheap, easy operation and high precision temperature
and humidity control system. The system design is the use of the AT89C52 microcontroller temperature and humidity parameters for testing so as to realize the control of temperature and humidity parameters.This design by using AT89C52 microcontroller, the DHT11 sensor module, LCD1602 LCD module diode flashing alarm module. Simple design can be substantially meet the design requirements of the design. DHT11 digital temperature and humidity sensor is responsible for the collected temperature and humidity signal is transmitted to the AT89C52 microcontroller. Temperature and humidity after AT89C52 single-chip processing, and then AT89C52 accurat-省略部分-umi_L_shi]);//显示设置湿度十位write_cmd(0xc7); write_dat(tab_lcd_num[set_humi_L_ge]);//显示设置湿度个位} }//按键功能结束///////////////////////////////////////////// key_flag++; if(key_flag==4)//按键标志 6 key_flag=0; write_cmd(0x01);//清屏disp_start();//显示字符}}////////////比较数据,开启或关闭继电器/////////////////////////////////////void bijiao(){ if(U8T_data_Hset_temp_H)//如果温度大于设置温度上限,打开超出温度上限温度继电器和温度LED, temp_out=0;//P1.1 else temp_out=1; //否则关闭超出温度上限温度继电器和温度LED if(U8T_data_Hset_humi_H)//如果湿度大于设置湿度上限,打开超出湿度上限继电器和湿度LED, humi_out=0;//P1.2 else humi_out=1; //否则关闭超出湿度上限继电器和湿度LED if(U8RH_data_H) 达到当天最大量API KEY 超过次数限制。

相关主题