基于单片机的阳台浇花系统设计毕业论文

 2022-10-18 10:10

论文总字数:13516字

摘 要

本设计主要的内容是检测土壤湿度、温度、光照强度来进行为盆花的浇水、通风、补光。该设计主要由AT89S52单片机和ADC0832组成系统的核心部分,系统三大性能指标YL-69湿度传感器、DS18B20温度传感器、光敏电阻将实时采集到的不同数据数据输入到ADC0832的IN端作为输入的模拟信号。将系统所用的检测模块和AD模块转换,系统设计要求许多功能,有检测湿度高低、温度大小检测、光照强度检测、转换、屏幕显示的功能。系统工作时,对收集到的数据,通过转换器让其正常工作单。ADC0832转换芯片比较送来的地址信号选通IN1通道,接着转换输入的模拟信号,当AD转换完成时,EOC端是高电平输出,单片机收到并分析改换数据,最后,我们系统单片机将检测到的数据进行加工后传达到屏幕上显示。本系统是以AT89S52单片机为核心的阳台浇花系统设计分为俩个部分,分别为智能和手动。智能;首先设置湿度上下限,当检测的土壤湿度值低于设置的下限,AT89S52单片机根据检测结果来控制系统浇水,根据情况,跟上限值比,比它大时,则停止不再浇水大。手动:关掉单片机电源,由外围电路提供电量对盆花进行浇水。智能通风、手动通风和智能补光、手动补光原理跟上述一样。

关键词: AT89S52; 湿度; 温度; 光照

Abstract

The main content of this design is to detect soil moisture, temperature, light intensity to carry on watering, ventilating and filling light for potted flowers. The design is mainly composed of AT89S52 MCU and ADC0832 as the core part of the system. The three performance indexes of the system, yl-69 humidity sensor, DS18B20 temperature sensor and photosensitive resistor, input different data collected IN real time to the IN end of ADC0832 as the input analog signal. Yl-69 humidity sensor, DS18B20 temperature sensor, photosensitive resistor and AD are converted. The circuit contains functions of high and low humidity detection, temperature detection, light intensity detection, AD conversion and single chip microcomputer display through decoding.When single-chip computer work, need to collect data, directly to the A/D converter issue instructions to make it work, address strobe signal from ADC0832 conversion chip to compare IN1 channel, then the transformation input analog signals, when the AD conversion is complete, EOC terminal output high level, can read AD conversion as A result, the single chip microcomputer can use call interrupt program, read the result of the transformed data. Finally, MCU will collect the humidity, temperature, light all kinds of data after analysis and processing sent to LCD1602 for display. This time I designed the SCM balcony watering system design is divided into two parts, respectively for the intelligent and manual. Intelligent; Firstly, set the upper and lower limits of humidity. When the detected soil moisture value is lower than the set lower limit, the AT89S52 MCU will send a signal to control the watering of the system. When the detected soil moisture value is higher than the set upper limit. Again by the single chip microcomputer signal control system to stop watering. Manual: turn off the MCU power supply, and water the potted flowers with the power provided by the peripheral circuit. Intelligent ventilation, manual ventilation and intelligent lighting, manual lighting principle with the same.

Key words: AT89S52; humidity; temperature; illumination

目录

摘要 I

Abstract II

第一章 选题的目的和意义 1

第二章 基于单片机的阳台浇花系统 2

2.1系统组成部分 2

2.2系统工作原理 2

2.3方案论证:湿度,温度、光照检测模块 3

2.3.1方案一检测模块选用YL-69土壤湿度传感器、DS18B20温度传感器、光敏电阻。 3

2.3.2方案二检测模块选用DS18B20温度传感器、HS1100湿度传感器、光敏二极管。 3

2.4显示模块 3

2.4.1方案一在系统显示中选用LED数码管。 3

2.4.2方案二、在系统显示中选用LCD。 3

2.5结果 4

第三章 硬件及电路介绍 5

3.1AT89S52单片机简介 5

3.2 AT89S52的复位电路 6

3.3 时钟电路 8

3.4 YL-69土壤湿度传感器 9

3.6光敏电阻 10

3.7 ADC0832功能特点及引脚 10

3.8 ADC0832 的控制原理 11

3.9继电器 12

3.10 蜂鸣器及按键 13

第四章 系统软件设计 15

4.1 系统流程图 15

4.2 LCD1602显示程序 16

4.3按键程序 16

4.4 ADC0832芯片接口程序 17

第五章 系统的安装与调试 19

总结 20

致谢 21

参考文献 22

第一章 选题的目的和意义

现今社会,人们不再应温饱问题困扰。因此,人们开始追求更高的生活品质。而在家养花这种方便的形式成为人们的首选。养花不仅可以陶冶情操丰富生活,还可以吸收二氧化碳,净化室内空气。而且许多花木还可以吸收空气中的有害气体,大大减少人们患病概率。因此,如今几乎家家养花。

花卉的成长需要很多因素。其中最主要的是浇水、温度、光照这些因素。众所周知,我们现在的社会是快节奏社会,每个人都被生活中或多或少的事所耽误。这样我们养的花卉则没有时间照顾,导致枯萎甚至死亡。现在国内外有许多浇水器,但是其价格昂贵且功能单一无法满足人们的基本需求,所以不被市场认可。因此,我想设计一个通过检测湿度、温度、光照来达到为盆花自动浇水、自动通风、自动补光一体化的阳台浇花系统,根据不同需求让盆花良好生长。该系统设计将严格控制成本和丰富功能。只有这样才能达到物美价廉并且让盆花成为家中一抹绿色。

第二章 基于单片机的阳台浇花系统

2.1系统组成部分

本系统有众多的组成部分,它们分别为;三大检测(湿度、温度、光照)电路、按键电路、屏幕显示电路、蜂鸣器电路、风扇通风降温电路、水泵工作电路及控制补光电路等。展示如下图2.1所示是系统方框图。收集土壤湿度传感器、温度传感器、光敏电阻测得信号,AT89S52单片机通过收集到的信号进行分析处理,发出不同的指令来控制,使水泵、风扇、灯进行工作或者停止工作,实现起初设计的自动浇水、自动通风、自动补光的要求。让盆花良好生长。

剩余内容已隐藏,请支付后下载全文,论文总字数:13516字

您需要先支付 80元 才能查看全部内容!立即支付

课题毕业论文、开题报告、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找。