基于51单片机的蓝牙控制家电
2021-03-07李文睿董莉霞
李文睿 董莉霞



摘要:随着时代不断地进步,市面上出现了很多智能的家电,可以通过手机蓝牙来连接,去控制家电的开关,达到便利人们生活的目的。我们本次设计的系统在基于51单片机的作用下,以STC89C52芯片为主,并连接HC-05蓝牙模块,以实现手机控制家电的目的。这个系统的价格并不昂贵,有开发的意义,并且开发难度较小,可以大力推广。
关键词:51单片机;控制家电;蓝牙模块
中图分类号:TP311 文献标识码:A
文章编号:1009-3044(2021)36-0139-02
开放科学(资源服务)标识码(OSID):
Bluetooth Control Appliance Based on 51 Microcontroller
LI Wen-rui, DONG Li-xia
(College of Information Science and Technology, Gansu Agricultural University, Lanzhou 730070, China)
Abstract: With the continuous progress of the times, there are many intelligent home appliances on the market, can be connected by mobile phone Bluetooth, to control the switch of home appliances, to facilitate people's lives. Our system is based on 51 microcontrollers, STC89C52 chip-based, and connected to HC-05 Bluetooth module, in order to achieve the purpose of mobile phone control home appliances. This system is not expensive, has the significance of development, and the development is less difficult, can be vigorously promoted.
Key words: 51 microcontrollers; control appliances; Bluetooth module
1 引言
隨着科技的发展,如今生活中,大多数人习惯使用手机带来便利,所以,通过手机蓝牙连接智能家具,并且在手机上发出指令控制电子产品的开关以及其他功能,能够更便捷地控制家里的电器。基于51单片机控制家电系统的成本较低,并且能形成一套完备的控制家电体系,有实现的可能性。
2 工作原理
单片机是一种集成电路芯片,在单片机上使用STC89C52芯片,并且使用HC-05主从机一体的蓝牙模块将单片机与手机通过这种方式连接起来,再加上1602液晶显示屏幕来测试系统能否顺利运行,将这些零件组合在单片机上,完成控制家电开关的作用。这种智能控制家电系统主要以51单片机为核心,通过蓝牙模块控制,将传感器处采集到的实时数据传输至智能设备控制平台[1]。随后,智能设备分析并处理这些实时数据,再通过蓝牙通信技术返回到单片机中的相应位置。51单片机将这些返回的数据进行再处理和解析,利用各种器件和电路发出对应的电平信号。……
