设计说明书
总字数:16000+
摘要
随着人们生活节奏的加快和对生活品质要求的提高,一款集时间管理、环境监测与智能交互于一体的闹钟成为日常需求。传统闹钟功能单一,仅能实现基本的时间显示和闹铃功能,无法满足人们对环境信息获取及便捷交互的需求。
基于 STM32F103C8T6 单片机的多功能闹钟,整合了 DS1302 时钟模块、DHT11 温湿度传感器、MQ-135 空气质量传感器、OLED 显示模块、按键及 SU-03T 语音识别模块,实现了时间显示、环境监测与语音交互的一体化功能。系统核心功能包括:通过 DS1302 时钟模块获取当前时间,并在 OLED 显示屏上实时显示;借助 DHT11 传感器检测当前环境的温湿度,同步在 OLED 上展示;利用 MQ-135 传感器监测环境空气质量,相关数据实时呈现在 OLED 显示屏;支持通过按键修正时间,确保时间准确性;通过 SU-03T 语音识别模块识别语音指令,当接收到查询当前时间、温湿度或空气质量的指令时,自动播报对应数据。
该系统的实现,有效提升了闹钟的功能性与智能化水平,满足了人们对时间管理和环境信息获取的双重需求,为日常生活提供了便捷、高效的解决方案,同时为同类智能电子设备的研发提供了参考,具有一定的实际应用价值。
关键词:STM32F103C8T6;多功能闹钟;环境监测;语音交互;OLED 显示;时钟模块
ABSTRACT
With the acceleration of people’s life rhythm and the improvement of requirements for the quality of life, an alarm clock integrating time management, environmental monitoring and intelligent interaction has become a daily need. Traditional alarm clocks have a single function, only able to realize basic time display and alarm functions, and cannot meet people’s needs for obtaining environmental information and convenient interaction.
The multi-functional alarm clock based on the STM32F103C8T6 microcontroller integrates the DS1302 clock module, DHT11 temperature and humidity sensor, MQ-135 air quality sensor, OLED display module, buttons and SU-03T voice recognition module, realizing the integrated functions of time display, environmental monitoring and voice interaction. The core functions of the system include: obtaining the current time through the DS1302 clock module and displaying it in real-time on the OLED display; detecting the current ambient temperature and humidity with the DHT11 sensor and synchronously displaying it on the OLED; monitoring the ambient air quality using the MQ-135 sensor, with relevant data presented on the OLED display in real-time; supporting time correction through buttons to ensure time accuracy; recognizing voice commands via the SU-03T voice recognition module, and automatically broadcasting corresponding data when receiving commands to query the current time, temperature and humidity, or air quality.
The realization of this system has effectively improved the functionality and intelligence level of the alarm clock, met people’s dual needs for time management and environmental information acquisition, provided a convenient and efficient solution for daily life, and also offered a reference for the research and development of similar intelligent electronic devices, having certain practical application value.
Keywords:STM32F103C8T6; multi-functional alarm clock; environmental monitoring; voice interaction; OLED display; clock module
目录
第1章 绪论
1.1 研究的目的及意义
1.2 国内外发展情况
1.3 本文主要研究内容
第2章 设计思路与方案论证
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 时钟模块选择
2.1.3 温湿度传感器选择
2.1.4 空气质量传感器选择
2.1.5 显示模块选择
2.1.6 语音识别模块选择
2.1.7 按键模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 时钟模块电路
3.3 温湿度传感器电路
3.4 空气质量传感器电路
3.5 显示模块电路
3.6 语音识别模块电路
3.7 按键模块电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 温湿度检测模块子流程
4.6 时钟模块子流程设计
4.7 语音播报模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 时钟模块功能测试
5.3 温湿度传感器功能测试
5.4 空气质量传感器功能测试
5.5 显示模块功能测试
5.6 语音识别模块功能测试
5.7 按键功能测试
5.8 综合功能测试
第6章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!