基于单片机的远程智能花卉培育系统设计
基于单片机的远程智能花卉培育系统设计(任务书,开题报告,论文14000字)
摘要
本次设计的花卉智能浇水系统包括当前环境的温湿度的获取与测量、以此为依据进行浇水以及光照补偿三个主要部分。其中,系统环境的温湿度的检测和显示以DHT11芯片为核心,将测量到的温湿度值送入STM32,最后再将这个值显示在LCD液晶屏幕上。智能浇水部分设计为手动和自动两个部分:自动部分是将温湿度传感器检测到的温湿度值,与系统初始设定的温湿度边界值进行比较,当检测值低于边界值时,STM32利用信号打开继电器,也就是进行开始浇水操作,当检测值高于边界最大值时,STM32利用信号关闭继电器,也就是进行停止浇水操作;手动部分是由SIM900A模块通过短信发送指令控制电子阀的打开与关;当光敏电阻检测到光照强度不足时,发送指令给单片机来打开光照进行补光,也可以通过通过SIM900A模块通过短信发送指令。本系统设计简单、性能优良,具有一定的实用性。
关键字:STM32DHT11 光敏电阻 SIM900A
Design of Remote Intelligent Flower Cultivation System Based on Single Chip Microcomputer
ABSTRACT
The flower intelligent watering system designed this time includes the acquisition and measurement of the temperature and humidity of the current environment, and the main parts of watering and illumination compensation based on this. Among them, the temperature and humidity detection and display of the system environment is based on the DHT11 chip, and the measured temperature and humidity values are sent to the STM32, and finally this value is displayed on the LCD liquid crystal screen. The intelligent watering part is designed as two parts: manual and automatic: the automatic part is the temperature and humidity value detected by the temperature and humidity sensor, compared with the initial temperature and humidity boundary value of the system. When the detected value is lower than the boundary value, STM32 The signal is used to open the relay, that is, to start the watering operation. When the detected value is higher than the boundary maximum value, the STM32 uses the signal to turn off the relay, that is, to stop the watering operation; the manual part is controlled by the SIM900A module to send the electronic valve through the short message. When the photoresistor detects that the light intensity is insufficient, the command is sent to the MCU to turn on the light to fill the light, and the command can be sent through the SMS through the SIM900A module. The system has simple design, excellent performance and certain practicability. [资料来源:www.doc163.com]
Key Words: STM32DHT11PhotoresistanceSIM900A
目录
摘要 I
ABSTRACT II
第一章 绪论 1
1.1 智能花盆的背景 1
1.2 现有技术分析 1
1.3 智能花盆系统设计 2
1.4 论文的内容安排 3
第二章 主要模块选择分析 4
2.1 主控模块选择 4
2.2 显示模块选择 4
2.3 通信模块选择 5
第三章 系统硬件电路设计 6
3.1系统硬件电路框图 6
3.2 系统硬件模块介绍 6
3.2.1 STM32单片机核心电路 6
3.2.2 LCD1602液晶显示模块 8
3.2.3 高亮LED灯补光电路 9
3.2.4 LED信号指示灯电路 10
3.2.5 DHT11温湿度传感器电路模块 10
[资料来源:http://Doc163.com]
3.2.6 5V继电器控制电路 12
3.2.7 光敏电阻传感器模块 13
3.2.8 GSM通信模块电路 13
第四章 系统软件设计 15
4.1 系统开发环境 15
4.2 程序总流程图 15
4.3 程序初始化函数 16
4.3.1 系统时钟初始化 16
4.3.2 延时函数的初始化 16
4.3.3 串口的初始化 16
4.3.4 定时器初始化 17
4.4 相应模块数据的写入与获取 17
4.4.1 DHT11温湿度传感器模块 17
4.4.2 LCD1602液晶显示模块的控制 20
4.4.3 继电器电路以及补光电路的控制 21
4.4.4 GMDZ光敏电阻传感器控制 22
4.5 GSM模块短信通信的实现 23
4.5.1 AT命令介绍 23
4.5.2 读取短信方式 23
4.5.3 GSM短信处理过程 24
第五章 系统调试与分析 29
5.1 系统总体调试 29
5.2 主要模块调试 29
5.2.1温湿度传感器模块调试 29
5.2.2 GSM通信模块调试 30
第六章 总结与展望 32
6.1 对于本设计的总结 32
6.2 展望 33
参考文献 34
致谢 36 [资料来源:https://www.doc163.com]