设计说明书
总字数:19000+
摘要
随着育儿理念的精细化发展,婴儿日常监护的安全性与便捷性愈发受到家长重视。婴儿啼哭时家长若未能及时安抚,易引发情绪焦虑;环境温湿度异常可能导致婴儿着凉或不适;尿床后未及时处理则增加皮肤问题风险。传统婴儿监护依赖家长持续看护,不仅耗费精力,还存在响应滞后、无法远程关注的问题,难以满足现代家庭高效育儿的需求。因此,研发一款能自动监测婴儿状态、智能响应异常、支持远程管控的单片机婴儿床监护系统,对减轻家长负担、保障婴儿安全舒适具有重要现实意义。
本设计提出了一种基于 STM32F103C8T6 单片机的婴儿床监护系统。系统主要功能包括:通过声贝传感器检测婴儿啼哭(声音大于设置最大值),触发 ULN2003A 驱动步进电机摇晃婴儿床、MP3 模块播放音乐安抚,并通过 WIFI 发送啼哭提示至手机;借助 DHT11 检测环境温湿度,温度过低时启动加热片与风扇(吹暖风),温度过高时仅启动风扇降温;通过电压式液体检测模块监测婴儿尿床,异常时通过 WIFI 发送提示;支持按键设置声音最大值、温度上下限,也可手动控制加热风扇、音乐播放与摇床;通过 OLED 实时显示温湿度、声音值及设备状态;依托 ESP8266-12F WIFI 模块,手机端可远程获取所有数据,设置各阈值,控制加热风扇、音乐、摇床及切换工作模式。
该婴儿床监护系统的作用在于,为家长提供了一种智能、高效的婴儿监护工具。通过自动监测与响应,及时处理婴儿啼哭、温湿度异常、尿床等问题,减少家长看护压力;远程管控功能让家长在其他房间或外出时也能实时关注婴儿状态,兼顾监护与个人事务;多样化的智能安抚与环境调节功能,为婴儿营造安全舒适的休息环境,助力婴儿健康成长。
关键词:单片机;婴儿床监护系统;状态监测;智能响应;远程管控
Design of Baby Bed Monitoring System Based on Single Chip Microcomputer
Abstract
With the refined development of parenting concepts, the safety and convenience of daily monitoring of infants are increasingly valued by parents. If parents fail to comfort a crying baby in a timely manner, it can easily lead to emotional anxiety; Abnormal environmental temperature and humidity may cause infants to catch a cold or feel uncomfortable; Untreated bedwetting increases the risk of skin problems. Traditional infant monitoring relies on continuous parental care, which not only consumes energy, but also has problems such as delayed response and inability to remotely monitor, making it difficult to meet the needs of modern families for efficient parenting. Therefore, developing a single-chip baby crib monitoring system that can automatically monitor the status of infants, intelligently respond to abnormalities, and support remote control is of great practical significance for reducing the burden on parents and ensuring the safety and comfort of infants.
This design proposes a baby crib monitoring system based on STM32F103C8T6 microcontroller. The main functions of the system include: detecting baby crying (sound greater than the set maximum value) through the sound sensor, triggering ULN2003A to drive the stepper motor to shake the crib, playing music to soothe the MP3 module, and sending crying prompts to the mobile phone through WIFI; Using DHT11 to detect environmental temperature and humidity, start the heating element and fan (blowing warm air) when the temperature is too low, and only start the fan to cool down when the temperature is too high; Monitor baby bedwetting through a voltage based liquid detection module, and send alerts via WIFI in case of abnormalities; Support button settings for maximum sound and temperature limits, as well as manual control of heating fans, music playback, and shaking tables; Real time display of temperature, humidity, sound value, and device status through OLED; Relying on the ESP8266-12F WIFI module, the mobile phone can remotely obtain all data, set various thresholds, control the heating fan, music, shaker, and switch working modes.
The function of this crib monitoring system is to provide parents with an intelligent and efficient baby monitoring tool. By automatic monitoring and response, timely handling of baby crying, abnormal temperature and humidity, bedwetting and other issues can reduce parental caregiving pressure; The remote control function allows parents to monitor the baby’s status in real time even in other rooms or when going out, balancing monitoring and personal affairs; Diversified intelligent soothing and environmental adjustment functions create a safe and comfortable resting environment for infants, helping them grow up healthy.
Keywords:microcontroller; Baby crib monitoring system; Status monitoring; Intelligent response; Remote control
目 录
1 绪论
1.1 研究背景及意义
1.2 国内外研究现状
1.3 主要内容
2 系统总体方案设计
2.1系统总体设计
2.2 主要模块方案选择
3 系统硬件设计
3.1 总体硬件框架
3.2 主控模块电路设计
3.3 声贝检测模块电路设计
3.4 温湿度检测模块电路设计
3.5 尿床检测模块电路设计
3.6 步进电机驱动与摇床模块电路设计
3.7 MP3 音乐播放模块电路设计
3.8 继电器控制模块电路设计
3.9 按键模块电路设计
3.10 显示模块电路设计
3.11 WIFI 通信模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 OLED显示子流程设计
4.4 温湿度检测模块子流程设计
4.5 MP3音乐播放模块子流程设计
4.6 步进电机子流程设计
4.7 WiFi模块子流程设计
5 实物制作与功能测试
5.1 实物制作
5.2 温湿度与声贝检测及 OLED 显示功能测试
5.3 啼哭响应与智能安抚功能测试
5.4 温湿度调节功能测试
5.5 尿床报警功能测试
5.6 按键设置与 WIFI 远程控制功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序