设计说明书
总字数:19000+
摘要
随着育儿理念的不断升级,为婴儿提供安全、舒适的成长环境成为家长关注的重点。传统的婴儿房环境管理依赖人工巡查和手动调节,不仅耗费家长大量精力,还存在环境参数监测不及时、响应滞后等问题,难以满足婴儿对环境的敏感需求。
基于 STM32F103C8T6 单片机的智能婴儿房系统,整合了 DHT11 温湿度传感器、MQ-135 空气质量传感器、SY 声音监测模块、3 个独立按键、OLED 显示屏、ECB02 蓝牙模块、JQ6500 音乐播放模块及执行设备(风扇、通风系统、摇床),实现了婴儿房环境的自动化监测与智能调控。系统核心功能包括:通过 DHT11 实时监测温湿度,温度高于阈值时启动风扇,湿度超限时开启通风系统;借助 MQ-135 检测空气质量,超标时启动通风系统改善环境;利用 SY 声音监测模块捕捉婴儿哭泣声,触发摇床晃动和音乐播放模块工作;支持通过按键设置各参数阈值,手动控制摇床、音乐、风扇及通风系统;通过 OLED 显示屏实时显示各项监测数据及设备状态;通过蓝牙模块将数据上传至手机端,实现远程监测、阈值设置及设备控制。
该系统的实现,有效提升了婴儿房环境管理的自动化水平,减少了家长的照料压力,为婴儿营造了稳定舒适的成长环境,同时为同类育儿辅助设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;智能婴儿房;环境监测;传感器;自动调控;蓝牙通信
ABSTRACT
With the continuous upgrading of parenting concepts, providing a safe and comfortable growth environment for infants has become a focus of parents’ attention. Traditional nursery environment management relies on manual inspections and manual adjustments, which not only consume a lot of parents’ energy but also have problems such as untimely monitoring of environmental parameters and delayed responses, making it difficult to meet infants’ sensitive needs for the environment.
The intelligent nursery system based on the STM32F103C8T6 microcontroller integrates DHT11 temperature and humidity sensors, MQ-135 air quality sensors, SY sound monitoring modules, 3 independent buttons, OLED displays, ECB02 Bluetooth modules, JQ6500 music player modules, and executive devices (fans, ventilation systems, baby cradles), realizing automatic monitoring and intelligent regulation of the nursery environment. The core functions of the system include: real-time monitoring of temperature and humidity through DHT11, starting the fan when the temperature is higher than the threshold, and turning on the ventilation system when the humidity exceeds the limit; detecting air quality with MQ-135, and activating the ventilation system to improve the environment when the air quality is excessive; using the SY sound monitoring module to capture the baby’s crying, triggering the shaking of the cradle and the operation of the music player module; supporting the setting of various parameter thresholds through buttons, and manually controlling the cradle, music, fan and ventilation system; real-time display of various monitoring data and equipment status through the OLED display; uploading data to the mobile phone through the Bluetooth module to realize remote monitoring, threshold setting and equipment control.
The implementation of this system effectively improves the automation level of nursery environment management, reduces the care pressure of parents, creates a stable and comfortable growth environment for infants, and provides a reference for the research and development of similar parenting auxiliary equipment, with high practical application value.
Keywords: STM32F103C8T6; Intelligent nursery; Environmental monitoring; Sensor; Automatic regulation; Bluetooth communication
目录
第 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.1.8 蓝牙模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 温湿度传感器电路
3.3 空气质量传感器电路
3.4 声音监测模块电路
3.5 音乐播放模块电路
3.6 显示模块电路
3.7 蓝牙模块电路
3.8 按键模块电路
3.9 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 温湿度检测模块子流程
4.6 步进电机子流程设计
4.7 ADC模数转换子流程设计
4.8 蓝牙模块子流程设计
第 5 章 实物测试
5.1 整体实物测试
5.2 温湿度传感器功能测试
5.3 空气质量传感器功能测试
5.4 声音监测模块功能测试
5.5 音乐播放模块功能测试
5.6 蓝牙模块功能测试
5.7 按键与显示功能测试
第 6 章 总结与展望
6.1 总结
6.2 展望
致谢
参考文献
附录
附录一:原理图
附录二:PCB
附录三:主程序
购买后可查看具体内容!