首页|基于单片机的智能家居模拟系统

基于单片机的智能家居模拟系统

扫码查看
[目的]为落实"以人为本"的理念,通过手机终端来控制家居设备,使人民的生活更加舒适便捷.[方法]以STC89C52单片机为控制核心的终端,采用嵌入式硬件设计,使用蓝牙通信、An-droid等相关核心技术,通过HC-05蓝牙模块连接到安卓手机,从而实现交互通信,使用手机APP来发出和接收信息,并合理选择各个传感器模块和驱动板,从而设计出一套合理的单片机智能家居模拟系统.[结果]该模拟系统分为5大空间模块,其中,厨房空间模块采用独立的单片机开发板和液晶显示屏,可实时显示当前室内的温度,通过设定好的温度阈值,在温度传感器读取到的温度值超过该阈值时,蜂鸣器会发出警报声.客厅空间模块、卫生间空间模块、卧室空间模块、门模块均使用STC89C52单片机最小系统,通过蓝牙模块(HC-05)与手机APP连接在一起,分别用来控制LED灯的亮灭、直流电机风扇的转停、窗帘的开闭、门的开关(SG90舵机).其中,使用L298N驱动板来控制直流电机风扇,使用ULN2003驱动板来控制步进电机28BYJ4.[结论]通过在手机终端控制硬件设备,从而达到预期功能,能有效解决智能家居系统中因家用电器种类繁多而导致的兼容性差的问题,从而实现智能家居的实时控制与高效管理.
Intelligent Home Simulation System Based on Single Chip Microcomputer
[Purposes]In order to realize people-oriented concept,through the mobile phone terminal to control household equipment,this study aims to make people's life more comfortable and convenient.[Methods]Taking STC89 C52 single-chip microcomputer as the terminal of the control core,the embed-ded hardware design is adopted,and the related core technologies such as Bluetooth communication and Android are used.The HC-05 Bluetooth module is connected to the Android mobile phone to realize in-teractive communication.The mobile phone APP is used to send and receive information,and each sen-sor module and drive board are reasonably selected,so as to design a set of reasonable single-chip intel-ligent home simulation system.[Findings]The simulation system is divided into five space modules.And among them,the kitchen space module uses an independent single-chip development board and a liquid crystal display screen,which can display the current indoor temperature in real time.By setting the temperature threshold,the buzzer will sound an alarm when the temperature value read by the tem-perature sensor exceeds the threshold.The living room space module,the toilet space module,the bed-room space module and the door module all use the STC89C52 single-chip microcomputer minimum sys-tem connected with the mobile phone APP through the Bluetooth module(HC-05),which is used to control the LED light.The turn-off of the DC motor fan,the opening and closing of the curtain,and the switch of the door(SG90 steering gear).Among them,the L298N driver board is used to control the DC motor fan,and the ULN2003 driver board is used to control the stepper motor 28BYJ4.[Conclusions]By controlling the hard-ware equipment in the mobile terminal,the expected function can be achieved,which can effectively solve the problem of poor compatibility caused by the wide variety of household appliances in the smart home system,so as to realize the real-time control and efficient management of the smart home.

smart homesingle chip microcomputerbluetooth communication

邢炜卿

展开 >

北京科技大学天津学院,天津 301830

智能家居 单片机 蓝牙通信

2024

河南科技
河南省科学技术信息研究院

河南科技

影响因子:0.615
ISSN:1003-5168
年,卷(期):2024.51(1)
  • 6