设计说明书
总字数:18000+
摘要
随着生活节奏加快,睡眠障碍问题愈发普遍,心率异常、体温波动与频繁翻身等信号,不仅反映睡眠质量不佳,长期忽视还可能诱发健康隐患。传统睡眠监测依赖专业医疗设备,成本高、操作复杂,难以满足居家需求;现有家用产品多功能单一、数据展示模糊,无法全面评估睡眠状态。因此,研发一款低成本、易操作的多参数居家睡眠质量监测系统,对用户掌握睡眠状况、调整作息具有重要意义。
本设计提出基于 STC89C52 单片机的睡眠质量监测系统。核心功能包括:通过 PulseSensor 心率模块采集信号,经 ADC0832 模数转换后,由单片机处理获取心率值,超出预设阈值时触发声光报警;借助 MLX90614 非接触红外模块实时测温,体温异常时同样报警;通过 MPU6050 捕捉翻身动作,统计次数反映睡眠安稳度;支持按键自定义心率、体温阈值,适配不同用户;LCD1602 显示屏实时显示心率、体温及翻身次数,数据直观可读。
该系统为用户提供便捷全面的居家监测方案:非接触设计避免干扰睡眠,多参数同步监测提升评估准确性,声光报警及时提醒异常,按键与显示功能兼顾灵活操作与可读性。系统成本低、结构简,易在家庭普及,为自主管理睡眠健康提供可靠支持。
关键词:STC89C52;睡眠监测;PulseSensor ;MLX90614;MPU6050
Sleep Quality Monitoring System Based on 52 Single Chip Microcomputer
Abstract
With the acceleration of the pace of life, sleep disorders have become increasingly common. Signals such as abnormal heart rate, temperature fluctuations, and frequent turning over not only reflect poor sleep quality, but long-term neglect may also trigger health hazards. Traditional sleep monitoring relies on professional medical equipment, which is costly and complex to operate, making it difficult to meet home needs; The existing household products have multiple functions and vague data display, making it impossible to comprehensively evaluate sleep status. Therefore, developing a low-cost and easy-to-use multi parameter home sleep quality monitoring system is of great significance for users to grasp their sleep status and adjust their schedule.
This design proposes a sleep quality monitoring system based on STC89C52 microcontroller. The core functions include: collecting signals through the PulseSensor heart rate module, converting them to ADC0832 analog-to-digital, processing them by the microcontroller to obtain heart rate values, and triggering sound and light alarms when the preset threshold is exceeded; Using the MLX90614 non-contact infrared module for real-time temperature measurement, an alarm will also be triggered in case of abnormal body temperature; Capture turning movements through MPU6050 and count the number of times to reflect sleep stability; Support button customization of heart rate and body temperature thresholds, suitable for different users; The LCD1602 display screen shows real-time heart rate, body temperature, and number of flips, with intuitive and readable data.
This system provides users with a convenient and comprehensive home monitoring solution: non-contact design to avoid interfering with sleep, multi parameter synchronous monitoring to improve evaluation accuracy, sound and light alarms to promptly remind abnormalities, and button and display functions to balance flexible operation and readability. The system has low cost, simple structure, and is easy to popularize in households, providing reliable support for self-management of sleep health..
Keywords: STC89C52; Sleep monitoring; PulseSensor ; MLX90614; MPU6050
目 录
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 显示模块电路设计
3.8 声光报警模块电路设计
4 系统程序设计
4.1 编程软件介绍
4.2 系统主流程设计
4.3 独立按键
4.4 MPU6050模块子流程设计
4.5 红外测速模块子流程设计
4.6 心率模块子流程设计
4.7 LCD1602液晶显示子流程
5 实物制作与功能测试
5.1 实物制作
5.2 心率检测与声光报警功能测试
5.3 体温检测与声光报警功能测试
5.4 翻身检测功能测试
5.5 阈值设置与 LCD 显示功能测试
6 总结
参考文献
致谢
附录A 原理图
附录B PCB
附录C 主程序
购买后可查看具体内容!