项目编号:mcuclub-jj-044
设计简介:
项目名:灯控
项目编号:mcuclub-jj-044
单片机类型:STC89C52
具体功能:
1、通过语音识别控制灯的开和关
2、通过蓝牙可远程控制灯的开和关、并能设定开灯时长(小时加、小时减、分钟加、分钟减)
3、通过舵机真正控制灯的开和关
总字数:10546
摘 要
随着人工智能领域的蓬勃发展,智能设备在人们生活中逐渐普及,尤其是最近几年的智能语音控制产品在市场上崭露头角。用户自然的语言表达就能够控制家居设备的工作,基于语音控制智能家居正在让人们的生活更加便捷。本研究旨在设计并实现一种基于单片机的语音蓝牙定时家居灯控系统,以满足人们对灯光控制的定时和远程操作的需求。本论文设计并实现了一种基于STM32F103C8T6单片机的语音蓝牙定时家居灯控系统。该系统具备通过语音识别控制灯的开关、通过蓝牙实现远程控制灯的开关并能设定开灯时长(小时加、小时减、分钟加、分钟减),以及通过舵机实现真正的灯控制等功能。硬件方面,使用STM32F103C8T6单片机作为主控芯片,并集成语音识别模块、蓝牙通信模块以及舵机等组件。软件方面,编写了单片机程序实现与语音识别模块和蓝牙通信模块的交互和控制逻辑。通过语音识别算法对语音指令进行识别和解析,并通过蓝牙通信模块与手机或其他蓝牙设备进行远程通信。通过舵机控制灯的开关状态,实现灯的亮灭控制。该系统具备稳定可靠的性能,能够满足家居灯控的定时和远程控制需求。
关键字:STM32F103C8T6;语音识别;蓝牙控制;定时控制;舵机控制
Abstract
With the vigorous development of artificial intelligence, intelligent devices are gradually becoming popular in people’s lives, especially in recent years when intelligent voice control products have emerged in the market. The natural language expression of users can control the work of home devices, and voice controlled smart homes are making people’s lives more convenient. This study aims to design and implement a voice Bluetooth timed home light control system based on a microcontroller, in order to meet people’s needs for timing and remote operation of light control. This paper designs and implements a voice Bluetooth timing home light control system based on the STM32F103C8T6 microcontroller. The system has functions such as controlling the switch of lights through speech recognition, remotely controlling the switch of lights through Bluetooth, and being able to set the duration of light on (hour plus, hour minus, minute plus, minute minus), as well as achieving true light control through the servo. In terms of hardware, the STM32F103C8T6 microcontroller is used as the main control chip, and components such as voice recognition module, Bluetooth communication module, and servo are integrated. In terms of software, a microcontroller program was written to achieve interaction and control logic with the speech recognition module and Bluetooth communication module. Recognize and parse voice commands through speech recognition algorithms, and remotely communicate with mobile phones or other Bluetooth devices through Bluetooth communication modules. By controlling the switch status of the light through the steering gear, the light can be turned on or off. This system has stable and reliable performance, which can meet the timing and remote control requirements of home lighting control.
Keywords: STM32F103C8T6; Speech recognition; Bluetooth control; Timing control; Servo control
目 录
1 绪 论 1
2 系统主题设计 5
3 硬件设计 8
4 系统程序设计 13
5 实物测试 18
6 总结与展望 22
参考文献 23
致 谢 25
附录 26