1、 I 摘要摘要 本次设计的盆花自动养护系统经过对土壤温度,湿度与光照的检测, 从而控制电磁阀,步进电机,窗户的开关来达到花卉生长所需要的条件。 土壤温湿度的检测与控制部分包括了土壤温湿度的检测和自动浇水 系统。土壤温湿度的检测和显示以温湿度传感器为感应部件,将检测到的 土壤温湿度值送入 AT89C52 单片机,再由其控制电磁阀工作。 自动浇水系统智能浇水部分是通过单片机程序设定浇水的上下限值 与送入单片机的土壤湿度值相比较,当低于下限值时,单片机输出一个信 号控制电磁阀打开,开始浇水,高于上限值时再由单片机输出一个信号控 制电磁阀关闭, 停止浇水; 当光照较强时, 由单片机控制电机将窗帘拉下,
2、 遮挡阳光。温度较高时,打开窗户进行散热。 本文为阳台自动养花进行了初步探索和实验, 取得了一些对开发设计 新产品有益的数据和经验。 关键词关键词:AT89C51 单片机 温湿度传感器 光照传感器 C52 程序 数字 电路 II ABSTRACT The design of automatic maintenance system is based on pot soil temperature, humidity and light detection. It can control the electromagnetic valve, step motor and the window s
3、witch to achieve flowers who require conditions. Soil temperature and humidity measurement and control of parts of the temperature and humidity includes test and automatic water system. Soil temperature and humidity in the detection take the temperature and humidity sensor for inductive components.
4、Detect soil temperature and humidity value to single chip microcomputer AT89C52, then it control the electromagnetic valve working. Automatic watering water system intelligence part compares the limit that micro controller program set up for the water. When it lower the limit, SCM outputs a open signal electromagnetic valve control ,then starting watering. When it is higher than the upper limit value, the single chip microcomputer output a signal control electromagnetic valve, closeing and