}
write_com(0x80+0x40);
for(num1=0;num1<16;num1++) }
void timer0() interrupt 1 {
TH0=(65536-50000)/256; TL0=(65536-50000)%6; cnt++; if(cnt==10) { cnt=0; { } while (1) {
read_hum_temp();
write_data(table1[num1]);
delay(3000); //此处的时间不能小于3000,否则读不出! zhuanhuan(); warm_control();
// hum_h=hum_l=temp_h=temp_l=check=temp=hum=0; Display(); }
} }
void timer1() interrupt 3 {
TH1=(65536-100)/256; TL1=(65536-100)%6; beef=~beef; redled=0; greedled=1;
}
总 结:
虽然这个设计做的比较简单,但能完成给定的设计内容。很多东西考虑的不是很细,也有一些特别情况没有做,但是用了很多精力用来完成这个论文,鉴于个人水平和时间的关系,所以并没有把自己当初设想的所有情况都考虑进去。这此设计让我学会的很多,觉得自己学的太少还有很多需要认真学习,学无止境,所以要更努力。
参考文献:
[1]林国汉.基于单片机的温度控制系统设计[J].微计算机信息,2009(25): 21~24 [2]易顺明.基于单片机的大棚温湿度控制系统设计[J].现代电子技术,2011 (7):7~15 [3]张毅刚.单片机原理及应用[M].北京:高等教育出版社2008.12~106 [4] Atmel. Atmel 89C51 Microcontrollers Hardware Manual,2010. 35~98 [5]陈桂友,柴远斌.单片机应用技术[M].北京:机械工业出版社,2008.10~88 [6]熊诗波.机械工程测试技术基础[M].4版.北京:机械工业出版社,2008. 60~102 [7]张新荣.基于单片机的多路温度监测系统设计[J].工业控制计算机,2010(7):13~21 [8]夏晓南.基于单片机的温箱温度和湿度的控制[J].现代电子技术,2008 (5):6~12 [9]秦曾煌.电工学.电子技术[M].7版.北京:高等教育出版社,2008.34~80
[10]李俊.基于单片机的温湿度检测与控制系统[J].微计算机信息,2008(17):5~18 [11]谭浩强.C程序设计[M].4版.北京:清华大学出版社, 2007.21~95
The design of temperature and humidity measurement and
control system based on single-chip microcomputer
Li Ruitao
(Mechanical and Electronic Engineering Department of Dezhou University,Dezhou Shandong,253023) Abstract: In this paper, using 89C51 MCU to design a greenhouse temperature and humidity measurement and control system. Detection and control the indoor temperature and humidity and real-time display. The temperature and humidity sensor using AM2301digital temperature and humidity sensor, The temperature and humidity are displayed in the 1602 LCD through the 89 C51 single chip computer processing. And the real-time temperature and humidity value judgment whether meet the set the humidity and temperature of the range. If it exceeds the setting range, through the 89C51 start the temperature and humidity control system, to achieve the purpose of constant temperature and humidity.
Key Word: 89C51 MCU, AM2301 temperature and humidity sensor, 1602LCD, temperature and humidity control system
谢辞
此次设计是在我的指导老师倪云峰老师的精心指导及全力支持下完成的。本系统的设计成功与倪老师的帮助是密不可分的,再加上小组成员的努力和合作才能圆满地完成预期的目标。倪老师对新知识,新事物都有自己独到的理解,这深深的影响了我们对学习的态度。他一丝不茍的工作态度和认真负责的敬业精神同样给了我们巨大的收益和鼓舞。这些都将使我受益匪浅,给位组员的精诚合作也是本设计成功的关键所在,感谢老师感谢队友我相信通过我们不断的努力学习,明天将会更加美好。