基于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
目录