基于9DOF的计步器设计(论文11000字)
摘要:随着科技和文化的共同发展,健康问题逐渐吸引了人们的重视。追求更高的品质生活。而正因为步行对于健康起到如此重要的作用,而又需要一个参照物来记录我们真实的行走步数,一个低功耗、高精度的计步器是不可或缺的,计步器是一种经济、科学、受欢迎的工具,它可以督促我们每天完成定下的的计数目标。它的主要功能是测量人们在步行和跑步时的步数,并通过电子系统准确的将步数转化为数字信号反映出来。然而现今计步器加入了许多新型功能,给人们带来了更好的用户体验,例如:蓝牙连接设备、GPS定位系统、消耗热量显示、心率监测、路线报告、睡眠质量监测情况等功能。计步器的形式也多种多样:可穿戴式、智能手机APP、智能鞋。随着科学技术的发展,以单片机为核心的计步器拥有较高的精确度,并且外型小巧、方便。本设计的设计目标则是设计一块简易的计步器,具备清零,累加等功能,步数可以通过0.96英寸的OLED屏幕显示出来,计步器具备体积小、便于写道、成本低、结构简单的特点,通过计步器人们则可以知道自己跑了多少步,实时掌握自己运动情况。
关键词:计步器;STM32;MPU9250
Pedometer design based on 9 degrees of freedom
Abstract:With the common development of science and technology and culture, health has become a major issue in people's lives. People have gradually begun to pay attention to health, pay attention to physical health problems, and pursue a higher quality of life. Just because walking plays such an important role in health, and a reference object is needed to record our true walking steps, a low-power, high-precision pedometer is indispensable, and the pedometer is a An economic, scientific, and popular tool that can urge us to complete our set goals every day. Its main function is to measure the number of steps people walk and run, and to accurately reflect the number of steps into digital signals through the electronic system. However, today's pedometers have added many new features, giving people a better user experience, such as: Bluetooth module, GPS positioning, calorie consumption calculation, heart rate monitoring, walking route, sleep monitoring, sedentary reminder and other functions. Pedometers come in a variety of forms: wearable, smartphone apps, smart shoes. Early pedometers used the pendulum principle as the step-counting technique of the time,using aggravated mechanical switches to detect the pace, and with a simple counter, once the device was shaken, a metal ball would be heard to slide left and right, or It is the sound of a pendulum hitting the block, and the pedometer based on the MCU has the advantages of accuracy, reliability, stability and convenience. It is accepted by most people and the design of this design is adopted. The goal is to design a simple pedometer with zero clearing and accumulating functions. The number of steps can be displayed through the 0.96-inch OLED screen, and it has small size, easy to carry, low cost, simple structure, good performance and accurate counting. And so on, through the pedometer people can know how many steps they ran, and master their own sports in real time.
Key words: pedometer; STM32; MPU9250
目录
第一章 绪论 6
1.1选题的目的与意义 6
1.2 国内外研究现状 6
1.2.1可穿戴式手环 6
1.2.2 智能手机APP 7
1.2.3 运动品牌公司智能鞋 7
1.3 工作内容 7
第二章 计步器系统方案设计 8
2.1工作原理 8
2.2器件选型 8
2.2.1传感器的选型 8
2.2.2计步器微控制器的选择 11
2.2.3 显示屏的选择 11
第三章硬件设计 13
3.1系统方案设计 13
3.2 集成库的建立 13
3.3元器件的建立 13
3.4系统原理图的设计 15
3.5系统PCB设计 15
3.6总结 16
第四章 软件设计 17
4.1系统软件设计 17
4.1.1系统程序的组成 17
4.1.2 系统工作流程图 17
4.2加速度传感器驱动程序编写 18
4.2.1 MPU9250性能介绍 18
4.2.2 MPU9250驱动程序的组成 18
4.2.3 MPU9250驱动函数工作流程图 18
4.3 OLED显示屏驱动程序编写 19
4.3.1 OLED性能介绍: 19
4.3.2 OLED模块驱动程序的组成 20
4.3.3 OLED模块初始化流程图: 20
4.3.4 OLED驱动程序流程图 20
4.4数据采集和处理 21
4.4.1数据采集 21
4.4.2 MPU9250传感器的姿态检测 21
4.4.3 数据处理 21
4.5 有效步数的筛选和检测 22
4.6 软硬件联合调试 24
4.6.1 系统实物图 24
4.6.2精度测量 24
4.6.3 数据分析 25
第五章 总结与展望 25
参考文献 26
|