本科生毕业论文(设计)
题 目 基于msp430的人体健康测量仪的设计
学生姓名
学 号
学 院
专 业
指导教师
二O一六 年 五 月 二十五 日
基于MSP430的人体健康测量仪的设计
摘要:由于人们生活质量的不断提高,人们越来越关注自身的健康问题。人体的高低血压值(收缩压和舒张压)、脉搏值和体温值是检测人体健康状况的重要生理指标。实时监控这些参数,能帮助人们做到对自身身体健康状况的了解。本文设计了一个基于MSP430的人体健康体征数据的测量仪,以MSP430F149单片机为主要控制部分,通过温度传感器模块测量人体温度,血压模块测量人体血压,光电传感器测量人体脉搏,并将测量的数据显示到液晶显示屏上,最后将测得人体健康参数和正常值对比,若有异常可以及时报警,无异常则完成对人体健康的测量。本设计的系统具有稳定的性能、低功耗、低成本等诸多优点。 关键词:MSP430单片机;DS18B20温度传感器;血压模块;光电传感器;
I
Design of human body health measuring system based on MSP430
Abstract: Due to the continuous improvement of people's quality of life, people pay more attention to their own health problems. Human values of high and low blood pressure (systolic and diastolic blood pressure), heart rate value and temperature value is an important physiological index to measure whether the human body health.Real time monitoring of these parameters can help people do their own physical health knowledge. This paper designed a human health measuring instrument, hardware based on MSP430F149 MCU is given priority to the body of the design can realize the following functions: measure the body temperature by temperature sensor module, module measuring human body blood pressure and Photoelectric sensor measuring the human body heart rate , blood pressure will be measured to human health parameters and normal contrast measurements to human body health, and display on the LCD screen, on the whole the design to realize data acquisition, processing and display functions, and the design to have stable performance, low power consumption, low cost, and many other advantages.
Key words: MSP430 single chip microcomputer; DS18B20 temperature sensor; Blood pressure module; Photoelectric sensor;
II
1.绪论 .............................................................................................................................................. 1
1.1 研究背景及意义 ............................................................................................................... 1 1.2功能及方案分析 ................................................................................................................ 1 2.设计方案介绍 ............................................................................................................................... 2
2.1 设计原理及整体原理框图 ............................................................................................... 2 2.2各部分器件选择原理 ........................................................................................................ 3
2.2.1单片机选择 ............................................................................................................ 3 2.2.2体温测量模块 ........................................................................................................ 3 2.2.3血压测量模块 ........................................................................................................ 4 2.2.4脉搏测量模块 ........................................................................................................ 4 2.2.5测量数值的显示部分 ............................................................................................ 5 2.2.6测量数据超限报警部分 ........................................................................................ 6
3.硬件系统设计 ............................................................................................................................... 6
3.1 硬件器件简介 .................................................................................................................... 6
3.1.1 MSP430F149单片机的介绍 .................................................................................. 6 3.1.2 DS18B20简介及其工作原理 ................................................................................ 7 3.1.3血压传感器HKB-08B简介及其工作原理 ............................................................ 9 3.1.4 光电传感器简介 ................................................................................................... 9 3.2 硬件电路设计 ................................................................................................................. 10
3.2.1MSP430复位电路 .................................................................................................. 10 3.2.2单片机稳压电源电路 .......................................................................................... 11 3.2.3单片机晶振电路 ................................................ 11 3.2.4体温测量电路设计 .............................................. 12 3.2.5血压测量电路设计 .............................................. 12 3.2.6脉搏测量电路设计 .............................................. 13 3.2.7显示部分的电路设计 ............................................ 16 3.2.8蜂鸣报警器的电路设计 .......................................... 16
4.系统软件部分设计 ..................................................................................................................... 17
4.1系统主程序流程图 .......................................................................................................... 17 4.2 各个子程序的流程图 ..................................................................................................... 18
4.2.2血压测量程序 ........................................................................................................ 19 4.2.3脉搏测量程序 ........................................................................................................ 20 4.2.4显示部分程序 ........................................................................................................ 21 4.2.5报警部分程序 ........................................................................................................ 22
5.系统调试..................................................................................................................................... 23
5.1 软件部分调试 ................................................................................................................. 23 5.2硬件部分测试 .................................................................................................................. 24
5.2.1 外部功能测试 ..................................................................................................... 24 5.2.2 系统整体测试 ..................................................................................................... 24
5.3 测量结果统计和分析 ..................................................................................................... 25
5.3.1 测量的结果数据 ................................................................................................. 25 5.3.2 结果分析 ............................................................................................................. 26
总结 ................................................................................................................................................ 27 参考文献......................................................................................................................................... 28
致谢 ................................................................................................................................................ 29