基于单片机的阳台绿植自动控制系统设计

 2022-09-13 02:09

论文总字数:13993字

摘 要

为了解决人们在日常生活中因为工作和家庭原因,导致没有足够的时间和精力照料花卉以及自然条件的约束,所以本文基于STC89C52单片机设计了一种可以弥补精力不足以及自然条件约束的自动浇花系统和补光的控制系统。当绿植的土壤温度和湿度低于设置的下限时,系统报警并进行自动浇水,当土壤温度和湿度达到上限时,自动停止浇水。当绿植的光照强度低于设置的下限时,系统报警并进行自动补光,当光照强度达到设定的上限时,自动停止补光。同时,采集到的土壤温湿度和光照强度以及对应设置的上下限值可以通过显示器进行显示。也可以进入定时浇水模式,在规定的时间进行浇水。

关键词:单片机;自动浇花;土壤温湿度;光照强度;定时浇水

Design of Veranda planting automatic control system based on single-chip microcomputer

Abstract

In order to solve the problem that people don't have enough time and energy to care for flowers and the constraints of natural conditions in their daily life due to work and family reasons, this paper designs an automatic flower pouring system based on STC89C52 single chip microcomputer, which can make up for the lack of energy and the constraints of natural conditions.and replenish light. When the soil temperature and humidity of green plants are lower than the set lower limit, the system will give an alarm and conduct automatic watering. When the soil temperature and humidity reach the upper limit, the watering will be stopped automatically. When the light intensity of the green plant is lower than the set lower limit, the system will give an alarm and conduct automatic light supplement. When the light intensity reaches the set upper limit, the system will automatically stop light supplement. At the same time, the collected soil temperature, humidity, light intensity and the corresponding upper and lower limit values can be displayed on the display. Can also enter the regular watering mode, in the specified time for watering.

Key words: single chip microcomputer; automatic watering; soil temperature and humidity; light intensity; Water regularly

目录

摘 要 I

Abstract II

第一章 引言 1

1.1研究背景 1

1.2国内外的发展现状 1

1.3研究方法和手段 1

第二章 系统架构及方案论证 3

2.1系统组成部分 3

2.2 方案论证 3

2.2.1 方案提出 3

2.2.2 设计方案比较 4

2.2.3 设计方案的选择 4

第三章 系统硬件设计和仿真 5

3.1 STC89C52简介和设计 5

3.1.1 STC89C52最小系统 5

3.1.2 STC89C52中断系统 6

3.2 LCD1602液晶显示器 6

3.2.1 LCD1602制作工艺及技术参数 6

3.2.2LCD1602硬件原理图 7

3.3 DS18B20温度传感器 8

3.3.1 DS18B20硬件原理图 8

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

3.5 DS1302时钟模块 10

3.6 光敏电阻及其控制电路 11

3.7 按键电路设计 11

3.8 A/D转化模块ADC0832 12

3.9 SRD-05VDC-SL继电器 12

3.10 系统的仿真 13

第四章 系统软件设计 14

4.1系统流程图 14

4.2子程序流程图 15

第五章 系统焊接与调试 18

5.1 电路焊接 18

5.2系统总体测试与调试 19

5.2.1系统硬件测试 19

5.2.2系统软件测试 19

5.2.3系统整体调试 19

5.2.4 系统调试结果 20

第六章 结论 24

致谢 25

参考文献 26

第一章 引言

1.1研究背景

自动浇花和补光控制系统在国内和国外都有在现实生活中的实际应用,在市面上大多的绿植自动控制系统是采用虹吸的方式,这种模式的浇灌模式是一直持续的,只可以保证绿植不会出现干旱的情况,而不能根据绿植的实际需求供水。本文设计的绿植自动控制系统,是根据单片机控制原理,利用温度湿度,传感器,实时采集数据,在根据设定的值进行自动补水,也可进入定时模式,在规定时间进行适量的浇水,保证绿植有充足的水分,同时考虑到家庭绿植会出现采光不足的情况,该系统还可以根据设定的光照强度进行补光,不仅可以节约水资源,还可以让绿植更好的生长。

1.2国内外的发展现状

在西方国家,智能家具发展十分先进,而在国际层面看,由于我国制造以设计产业在国际上的关键地位,使得中国已然成为国际智能家电的主要市场。如今绿植自动控制设备在全球已受到广大客户的青睐,虽然他们的控制及工作原理有着较大的差异,可它们的设计目的都是为了服务于人类平时的绿植养殖的各个方面。英国的设计师瑞贝克皮特森设计了一款智能花盆,它可以随时记录绿植的生长记录。东京农工大学副教授水内郁夫发明了一款名叫“Plantroid”的智能花盆机器人,在底部装有四个可以滚动的滑轮,可以自由的行动,同时内部装有光线传感器,当晒不到太阳时就会下达指令,自动移动,寻找太阳。

在中国的市场上已经出现了很多给绿植浇水的器件,但是这些浇水的器件和方法大多是传统的浇水方式,在阳台绿植自动浇花控制系统的智能控制方面研究相对较少,虽然在国内的市场上也有大量的自动浇花控制系统,但是这些自动浇花控制系统,只可以定量或者定时的自动浇水,这不仅浪费资源,同时也不利于绿植的成长。

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

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

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