设计说明书
总字数:22000+
摘要
在婴幼儿照护领域,为婴儿提供安全、舒适的环境对其健康成长至关重要。传统的人工照护方式不仅依赖看护者的经验与警觉性,还存在响应滞后、照护不及时等问题,难以满足现代家庭对精细化、智能化婴幼儿照护的需求。
基于 STM32F103C8T6 单片机的婴儿床监测系统,整合了 SY 声贝传感器、DHT11 温湿度检测模块、YS 液体检测模块、BZ 红外传感器、GP2Y10 粉尘传感器、3 个独立按键、OLED 显示屏、JQ6500 音乐播放模块、ECB02 蓝牙模块及执行设备(加热片、风扇、加湿器、净化器、摇床装置等),实现了婴儿床周围环境及婴儿状态的全方位监测与智能响应。系统核心功能包括:通过 SY 声贝传感器检测婴儿啼哭,当声音大于最大值时,JQ6500 音乐播放模块自动播放音乐,摇床装置启动摇晃婴儿床,并通过蓝牙发送婴儿啼哭提示;借助 DHT11 温湿度检测模块监测环境温湿度,当温度异常时控制加热片或风扇进行加热或降温,湿度异常时通过加湿器或风扇进行加湿或除湿;利用 YS 液体检测模块检测婴儿是否尿床,当湿度大于最大值时,通过蓝牙发送提示信息;通过 BZ 红外传感器检测婴儿是否在床上做起或站立,若有则通过蓝牙发送提示;通过 GP2Y10 粉尘传感器检测婴儿周围 PM2.5 含量,超过阈值时开启净化器,并通过蓝牙发送提示;支持通过 3 个独立按键设置温湿度上下限、声音最大值、湿度最大值,以及手动控制播放音乐、加热、降温、加湿、除湿、摇床;通过 OLED 显示屏实时显示各项测量值;利用 ECB02 蓝牙模块将数据传输至手机端,也可在手机端设置温湿度阈值、声音最大值、液位最大值。
该系统的实现,有效提升了婴儿照护的自动化与智能化水平,减少了人工干预,确保能及时响应婴儿的各种需求,为婴儿营造安全舒适的环境,为家庭照护者提供了高效、可靠的辅助工具,同时为同类婴幼儿照护设备的研发提供了参考,具有较高的实际应用价值。
关键词:STM32F103C8T6;婴儿床;监测系统;传感器;智能响应;蓝牙通信
ABSTRACT
In the field of infant care, providing a safe and comfortable environment for infants is crucial to their healthy growth. Traditional manual care methods not only rely on the experience and alertness of caregivers but also have problems such as delayed response and untimely care, which are difficult to meet the needs of modern families for refined and intelligent infant care.
The baby crib monitoring system based on the STM32F103C8T6 microcontroller integrates SY sound sensor, DHT11 temperature and humidity detection module, YS liquid detection module, BZ infrared sensor, GP2Y10 dust sensor, 3 independent buttons, OLED display, JQ6500 music player module, ECB02 Bluetooth module and executive devices (heating sheet, fan, humidifier, purifier, crib shaking device, etc.), realizing comprehensive monitoring and intelligent response of the environment around the baby crib and the baby’s state. The core functions of the system include: detecting the baby’s cry through the SY sound sensor, when the sound is greater than the maximum value, the JQ6500 music player module automatically plays music, the crib shaking device starts to shake the baby crib, and sends a baby cry prompt through Bluetooth; monitoring the ambient temperature and humidity with the DHT11 temperature and humidity detection module, controlling the heating sheet or fan for heating or cooling when the temperature is abnormal, and using the humidifier or fan for humidification or dehumidification when the humidity is abnormal; detecting whether the baby wets the bed with the YS liquid detection module, and sending a prompt message through Bluetooth when the humidity is greater than the maximum value; detecting whether the baby sits up or stands on the bed through the BZ infrared sensor, and sending a prompt through Bluetooth if so; detecting the PM2.5 content around the baby through the GP2Y10 dust sensor, turning on the purifier when it exceeds the threshold, and sending a prompt through Bluetooth; supporting the setting of temperature and humidity upper and lower limits, maximum sound value, maximum humidity value through 3 independent buttons, as well as manual control of music playback, heating, cooling, humidification, dehumidification, and crib shaking; real-time display of various measured values through the OLED display; transmitting data to the mobile phone through the ECB02 Bluetooth module, and also setting temperature and humidity thresholds, maximum sound value, and maximum liquid level on the mobile phone.
The implementation of this system effectively improves the automation and intelligence level of infant care, reduces manual intervention, ensures timely response to various needs of infants, creates a safe and comfortable environment for infants, provides an efficient and reliable auxiliary tool for family caregivers, and also provides a reference for the research and development of similar infant care equipment, with high practical application value.
Keywords: STM32F103C8T6; Baby crib; Monitoring system; Sensor; Intelligent response; 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.1.9 蓝牙模块选择
2.1.10 按键模块选择
2.2整体设计方案
第 3 章 硬件设计
3.1 主控电路模块
3.2 声贝传感器电路
3.3 温湿度检测模块电路
3.4 液体检测模块电路
3.5 红外传感器电路
3.6 粉尘传感器电路
3.7 音乐播放模块电路
3.8 显示模块电路
3.9 蓝牙模块电路
3.10 按键模块电路
3.11 执行设备驱动电路
第4章 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 OLED显示流程设计
4.5 蓝牙模块子流程
4.6 ADC模数转换子流程设计
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
附录三:主程序
购买后可查看具体内容!