资料详情

基于STM32的智能家居系统设计毕业论文+任务书+开题报告+文献综述+外文翻译及原文+程序+原理图+参考资料+答辩PPT+仿真设计

头像

STM32

编号:5823

基于STM32的智能家居系统设计

摘要

本文设计介绍一种以stm32 单片机为核心,设计了一套基于GPRS无线网络的智能家居控制系统。该系统以GPRS通信为基础、能通过无线通信技术实时监控家居的温湿度状态,并能自由控制家居的电器的开关操作。同时集成光强采集电路,能自动开关窗帘的功能。

本设计硬件电路结构简单,分为控制器模块,GPRS模块,继电器控制模块,步进电机控制模块等五大电路模块,其中控制器选用基于cotex-m3内核的32位微控制器STM32F103R8T6。GPRS模块选用SIM900模块,人机交互模块选用OLED12864模块显示数据,独立键盘作为输入设备,继电器控制输出控制家电电路开关。最终通过系统的测试,本设计实现的功能包括:窗帘电机检测当前光照强度或者湿度情况实现自动开闭以及本地按键控制开闭、GSM短信远程控制继电器的开闭、室内温度异常时的GSM短信通知。

关键词:智能家居;GPRS;远程控制;STM32


Design of Intelligent Home System Based on STM32

Abstract:This paper introduces a kind of intelligent home control system based on GPRS wireless network with stm32 single chip as the core. The system based on GPRS communication, wireless communication technology can be real-time monitoring of home temperature and humidity status, and can freely control the home electrical switch operation, the use of stm32 internal calendar to achieve effective time management of household appliances, while integrated light Acquisition circuit, can automatically switch the function of the window.

The design of the hardware circuit is simple, divided into controller module, GPRS module, relay control module, stepper motor control module and other five circuit modules, including controller based on cotex-m3 core 32-bit microcontroller STM32F103R8T6. GPRS module selection SIM900 module, human-computer interaction module selection OLED12864 module display data, independent keyboard as input device, relay control output control home appliance circuit switch. Finally, through the system test, the design of the realization of the functions include: the curtain motor to detect the current light intensity or humidity to achieve automatic opening and closing and local key control open and close, GSM SMS remote control relay opening and closing, indoor temperature abnormal GSM SMS notification

Keywords: Intelligent Home Furnishing; GPRS; remote control; STM32


目录

第1章  前言 1

1.1 课题研究的背景和实际意义 1

1.1.1课题背景 1

1.1.2实际意义 1

1.2国内外发展现状、存在问题以及前景 2

1.2.1发展现状 2

1.2.2存在问题 2

1.2.3发展前景 2

1.3 主要工作、内容安排及预期成果 3

1.3.1主要研究工作 3

1.3.2预期成果 3

第2章 总体设计方案 5

2.1 系统总体方案设计 5

2.2 系统方案选择 6

2.2.1 无线通讯方案选择 6

2.2.2 显示器方案选择 6

第3章 系统硬件设计 7

3.1 控制单元模块 7

3.2 人机交互模块 8

3.3 GPRS电路设计 9

3.4 温湿度传感器电路设计 10

3.5 光强检测电路设计 10

3.6 窗帘控制电路设计 11

3.6.1 步进电机的选用 11

3.6.2 步进电机28BYJ-48介绍 11

3.6.3 步进电机驱动 12

3.7 继电器驱动电路设计 12

3.8 电源电路设计 13

第4章 系统软件设计 15

4.1 软件开发环境介绍 15

4.2 软件总体设计 15

4.2.1 程序结构分析 15

4.2.2 主程序设计 15

4.2.3 OLED驱动程序分析 17

4.2.4 SIM900通信程序设计 17

第5章  系统调试与结果分析 19

5.1 程序仿真设计 19

5.2 实物调试 20

结论 22

致谢 23

参考文献 24