{$cfg_webname}
主页 > 电子信息 > 单片机 >

基于51单片机的计步器设计

来源:wenku163.com  资料编号:WK16314244 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9AWK16314244
资料介绍

基于51单片机的计步器设计(任务书,开题报告,外文翻译,论文15000字)
摘  要
随着科技发展和国民健康意识的提高,许多检测健康状态的电子产品开始普及。电子计步器作为一种越来越流行的平民锻炼检测装置,不仅可以记录步行步数,反应锻炼进度,还能不断激励人们,提升健身动力。伴随着智能手机等信息化设备的大力发展,人们可以通过各种软件适配自己的健康情况,改善生活习惯,提高生活质量,增强锻炼效果。计步器与这些电子设备的结合将体现出更大的使用价值。
本次计步器系统基于51系列单片机运算,利用ADXL345三轴加速度传感器获取人体动作信息,通过单片机的分析处理后转换为步数,最后显示到LCD1602液晶屏上。计步程序使用C语言通过阈值检测方法实现计步功能,算法简便,适用于低速MCU。计步器除了核心的实时计步功能外,还可以利用按键清除步数信息,断电储存步数信息。本文主要阐述了计步器的设计需求与对应方案,相关软硬件的设计内容,以及对计步器系统的测试和结果分析。

关键词:51单片机计步器,加速度传感器,ADXL345
 
Abstract
With the development of science and technology and the improvement of national health awareness, many electronic products that detect health status have become popular. As an increasingly popular civilian exercise detection device, the electronic pedometer can not only record the number of walking steps, but also motivate people to improve their fitness. With the vigorous development of information devices such as smart phones, people can adapt their own health conditions through various software, improve their living habits, improve their quality of life and enhance their exercise results. The combination of the pedometer and these electronic devices will show greater value in use.
The pedometer system is based on the 51 series single-chip computer operation, and uses the ADXL345 three-axis acceleration sensor to obtain the human body motion information, which is converted into the number of steps by the analysis and processing of the single-chip microcomputer, and finally displayed on the LCD1602 liquid crystal screen. The step counter program uses the C language to implement the step counting function through the threshold detection method. The algorithm is simple and suitable for low-speed MCUs. In addition to the core real-time step counting function, the pedometer can also use the button to clear the step number information and power off the step number information. This paper mainly describes the design requirements and corresponding schemes of the pedometer, the design content of related hardware and software, and the test and result analysis of the pedometer system.

Key Words:51 single chip pedometer, acceleration sensor, ADXL345
 

基于51单片机的计步器设计
基于51单片机的计步器设计
基于51单片机的计步器设计
基于51单片机的计步器设计


目  录
第1章 绪论    1
1.1 研究目的和意义    1
1.2 国内外研究现状    1
1.3 计步器设计需求分析    2
1.3.1 任务要求    2
1.3.2 方案选择    2
1.3.3 系统设计    2
第2章 计步器硬件设计    4
2.1  51单片机最小系统    4
2.2  ADXL345加速度传感器    5
2.3  LCD1602液晶显示屏    6
2.4  按键模块    7
2.5  EEPROM储存模块    8
2.6  整体电路    8
第3章 软件部分设计    10
3.1  LCD1602显示    10
3.2  I2C传输设置    12
3.3  单片机中断    12
3.4  按键控制数据    13
3.5  EEPROM储存数据    13
3.6  ADXL345读取加速度与校准    13
3.7  计步算法    19
第4章 计步器功能和性能测试    25
4.1 功能测试    25
4.2 性能测试    26
4.3 测试结果分析    26
第5章 总结与展望    27
5.1 总结    27
5.2 展望    27
参考文献    29
致  谢    30
附  录    31

推荐资料