(学院)基于51单片机蓝牙控制照明系统

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

摘要

随着社会的发展人们对生活质量的要求越来越高,照明在能耗中所占的比例日益增加,因而照明节能也日显重要。现在国内外普及使用的节能开关基本有声控型、触摸型、感光型等。这几种开关各有自己的弊端,如声控型不适合环境嘈杂场所、感光型开关在无人期间不能自动关闭。单片微型计算机简称单片机,是典型的嵌入式微控制器(Microcontroller Unit),常用英文字母的缩写MCU 表示单片机,单片机又称单片微控制器,它不是完成某一个逻辑功能的芯片,而是把一个计算机系统集成到一个芯片上。单片机由运算器,控制器,存储器,输入输出设备构成,相当于一个微型的计算机(最小系统)。和计算机相比,单片机缺少了外围设备等。概括地讲:一块芯片就成了一台计算机。它体积小、质量轻、价格便宜、为学习、应用和开发提供了便利条件。同时,学习使用单片机是了解计算机原理与结构的最佳选择。

单片机在工业控制领域广泛应用。单片机由仅有CPU的专用处理器芯片发展而来。最早的设计理念是通过将大量外围设备和CPU集成在一个芯片中,使计算机系统更小,更容易集成到复杂的对体积要求严格的控制设备当中。本文利用所学51单片机基础知识结合自动控制技术和蓝牙2.0通信技术设计完成一套无线遥控家电开关系统。本设计详细地讲述了51单片机控制原理和单片机编程技术,HC-06蓝牙通信技术以及自动化控制技术。整个系统以STC89C52单片机为核心,单片机实现HC-06蓝牙指令的解析与继电器开关控制指令的发出。蓝牙通信单元采用工业级的HC-06蓝牙模块来完成,蓝牙模块在整个系统中负责蓝牙指令的接收和传输;家电开关的自动控制部分采用4路继电器开关来实现,继电器开关是典型的弱电信号控制型照明系统开关。

关键词:单片机、蓝牙、照明系统

Abstract

With the development of society, people's quality of life is becoming more and more demanding, and the proportion of lighting in the energy consumption is increasing. Now the popularity of energy-saving switch at home and abroad, the basic use of voice control, touch type, sensitive type, etc.. These switches have their own

drawbacks, such as voice type is not suitable for noisy environment, photosensitive switch can not be automatically shut down during the unmanned. As the single chip computer is a typical embedded micro controller (Microcontroller Unit), usually abbreviated as MCU English letters single-chip microcontroller also known as single-chip microcontroller, it is not the completion of a logic function of the chip, but a computer system integrated into a chip. The single chip microcomputer is composed of an arithmetic device, a controller, a memory, an input and output device, which is equivalent to a microcomputer. Compared with the computer, SCM, such as the lack of peripherals. Generally speaking: a chip is a computer. The utility model has the advantages of small size, light weight, low cost and convenient conditions for learning, application and development. At the same time, learning to use the MCU is to understand the principle and structure of the computer the best choice.

SCM is widely used in the field of industrial control. Single chip processor developed by only CPU dedicated chip. The first idea is to integrate a large number of peripherals and CPU in a single chip, so that the computer system is smaller, more easily integrated into the complex requirements of the control of the volume of equipment. In this paper, we design a set of wireless remote control switch system based on the 51 basic knowledge of MCU and the technology of Bluetooth and 2. This design describes in detail the 51 single-chip microcomputer control principle and single-chip programming technology, HC-06 Bluetooth communication technology and automation control technology. The whole system is based on STC89C52 single chip microcomputer, and the analysis of the HC-06 Bluetooth command and the control of the relay switch control instructions. Bluetooth communication unit using HC-06 Bluetooth module to complete the industrial level, the Bluetooth module is responsible for Bluetooth instruction in the whole system of receiving and transmission; automatic control appliance switch using 4 way relay switch to achieve the relay switch control is a typical type of weak current signal lighting system switch.

Keywords: MCU, Bluetooth, lighting system

相关文档
最新文档