设计说明书
总字数:14000+
摘 要
随着现代交通的快速发展,驾驶员疲劳驾驶问题日益突出,成为交通事故的重要诱因之一。为了有效预防疲劳驾驶,保障行车安全,设计一款疲劳状态检测系统具有重要的现实意义。
该系统以STM32单片机为控制核心,利用MAX30102监测驾驶员心率,当检测到心率异常时,系统会触发声光报警;通过薄膜压力检测模块判断驾驶员的手是否放在方向盘上,若检测到手离开方向盘,并进行声光报警;通过MPU6050检测驾驶员的坐姿偏转情况,一旦偏转角度超过阈值,系统会发出声光报警;此外,系统还会实时记录驾驶时长,当超过预设时间时,通过语音播报提醒驾驶员休息。用户可通过按键设置心率阈值和最大驾驶时长,并模拟车辆的启动与熄火,只有在车辆启动状态下才会进行数据监测与报警。所有测量数据均通过OLED显示屏实时显示。
测试表明,该系统能够监测驾驶员的各项生理和行为指标,报警响应及时,误报率低。能够为预防疲劳驾驶提供了一种有效的技术手段,具有广阔的应用前景。
ABSTRACT
With the rapid development of modern transportation, driver fatigue driving has become increasingly prominent and has become one of the important causes of traffic accidents. In order to effectively prevent fatigue driving and ensure driving safety, designing a fatigue state detection system has important practical significance.
The system uses STM32 microcontroller as the control core and MAX30102 to monitor the driver’s heart rate. When abnormal heart rate is detected, the system will trigger an audible and visual alarm; Determine whether the driver’s hand is on the steering wheel through the membrane pressure detection module. If it is detected that the hand has left the steering wheel, sound and light alarms will be triggered; By using MPU6050 to detect the driver’s sitting posture deviation, once the deviation angle exceeds the threshold, the system will issue an audible and visual alarm; In addition, the system will also record the driving time in real time, and when it exceeds the preset time, remind the driver to rest through voice broadcast. Users can set the heart rate threshold and maximum driving duration through buttons, and simulate the start and stop of the vehicle. Data monitoring and alarm will only be triggered when the vehicle is in the starting state. All measurement data is displayed in real-time on an OLED screen.
Tests have shown that the system can monitor various physiological and behavioral indicators of drivers, respond promptly to alarms, and have a low false alarm rate. It provides an effective technical means for preventing fatigue driving and has broad application prospects.
Keywords:singlechip; Fatigue detection; Sensors; display
1 引言
2 概述
2.1 疲劳状态检测系统概述
2.2 国内外研究现状
2.2.1 国内研究现状
2.3 本设计方案思路
2.4 研发方向和技术关键
2.5 技术指标
3 系统总体设计
3.1 主要模块方案选择
3.2 系统框架设计
4 硬件设计
4.1 主控模块设计
4.2 心率检测模块电路设计
4.3 薄膜压力传感器监测模块电路
4.4 坐姿检测模块电路
4.5 语音模块电路
4.6 按键模块电路
4.7 声光报警模块电路
4.8 显示模块电路
5 系统程序设计
5.1 编程软件介绍
5.2 系统主流程设计
5.3 心率监测模块子流程
5.4 压力传感器监测子流程
5.5 坐姿模块子流程
5.6 语音播报模块子流程
5.7 显示模块子流程
6 实物测试
6.1 整体实物测试
6.2 实物功能测试
6.3 问题和解决方法
7 总结与展望
7.1 总结
7.2 展望
参考文献
致 谢
附录
附录Ⅰ:整体电路图
购买后可查看具体内容!