1、 XXXXXX 大学大学 本科生毕业论文本科生毕业论文 题题 目目 自动浇花系统的设计 系系 别别 电子信息科学与技术 班班 级级 xxx 姓姓 名名 xxx 学学 号号 x 答辩时间答辩时间 2016 年 5 月 目目 录录 1 自动浇花器的研究现状 2 2 系统设计的研究方法和手段 2 3 系统硬件简介 2 3.1 单片机的最小化系统 2 3.1.1 AT89C51 单片机的基本组成 3 3.1.2 AT89C51 单片机的存储器 3 3.1.3 振荡电路和时钟 4 3.2 LCD1602 简介 . 5 3.2.1 LCD1602 的基本参数及引脚功能 5 3.3 ADC0832 的简介
2、7 3.3.1 ADC 静态特性 . 8 3.3.2 ADC 动态特性 . 8 3.3.3 ADC 性能测试 . 9 3.3.4 常用 ADC 芯片概述. 9 3.3.5 ADC0832 模数转换原理及主要技术指标 9 3.3.6 主要特性. 10 3.3.7 内部结构. 10 3.3.8 外部特性(引脚功能). 10 3.3.9 ADC0832 的工作过程 . 11 3.3.10 ADC0832 与单片机的接口电路 11 3.4 土壤湿度检测模块 . 12 3.4.1 比较器 LM393 . 13 3.4.1.1 LM393 主要特点: . 13 3.4.1.2 LM393 引脚图及内部框图
3、 . 13 3.5 报警及电机驱动 . 15 4 软件设计 . 15 4.1 主程序流程图 . 15 4.2 显示模块 . 18 4.3 AD 转换模块 19 4.4 湿度检测模块 . 20 5. 结论 21 谢 辞. 23 附录 1 原理图 24 附录 2 参考程序 25 1 自动浇花系统的设计 xxx 指导老师:xxx 摘要:本设计是基于 AT89C51 单片机和 ADC0832 的自动浇花系统。本设计的电路 内部包含湿度采集和 AD 转换等主要功能。自动浇水系统设计的浇水部分是通过 单片机程序设计浇水的上下限值与感应电路送入单片机的土壤湿度值相比较, 当 低于下限值时,单片机输出一个信号
4、控制浇水,高于上限值时再由单片机输出一 个信号控制停止浇水。这样可以帮助人们及时地给心爱的盆花浇水。 关键词:AT89C51;湿度的采集与显示; LED Design of potted flowerss automatic watering system xxxxxxxxx Tutor:xxxxxx Abstract:This design is the automatic watering system AT89C51 based on MCU and ADC0832. The design of the circuit contains the main functions of hum
5、idity acquisition and AD conversion. Watering part of automatic watering system design is through the upper and lower limits of microcontroller programming watering value and induction circuit into MCU soil moisture compared to the values, when the lower limit value, the output of the single chip a
6、signal to control the watering, above the upper limit again by the MCU output a signal control stop watering. This water can help people in a timely manner to the beloved flower. Key words:Key words: AT89C51 ; Humidity acquisition and display ; LED 2 1 自动浇花器的研究现状 现如今人们的生活质量不断提高。人们都喜欢在家里养养盆花,这样可以陶 冶人们的情操,丰富人们的生活。同时盆花可以通过光合作用吸收二氧化碳,净 化室内空气,在有花木的地方空气中阴离子聚集较多,所以空气也