基于单片机的心率计设计

目录 摘要 ................................................................. 3 英文摘要 ............................................................. 3 1 引言 .............................................................. 4 1.1 心率计的研究背景和意义 ........................................... 4 1.2 心率计的研究现状及发展动态 ....................................... 4 2 方案论证及元器件选择 ............................................... 5 2.1 研究内容及设计指标 ............................................... 5 2.2 方案设计与论证 ................................................... 5 2.2.1 传感器的选择与论证 ............................................. 5 2.2.2 信号处理方案选择和论证 ......................................... 7 2.2.3 单片机系统选择和论证 ........................................... 8 2.2.4 显示模块选择和论证 ............................................. 9 2.3元器件选择及其功能介绍 ............................................ 9 2.3.1单片机AT89S52 .................................................. 9 2.3.2红外传感器 ..................................................... 11 2.3.3双运算放大器LM358N ............................................ 11 2.3.4 LCD12864 ...................................................... 12 3 硬件系统设计 ...................................................... 13 3.1 系统设计框图 .................................................... 13 3.2 信号采集电路 .................................................... 14 3.3 信号放大电路 .................................................... 15 3.3.1一级信号放大电路 ............................................... 15 3.3.2 电源模块设计 .................................................. 16 3.4 信号比较电路 .................................................... 17 3.5 LCD显示电路 .................................................... 18 3.6 记忆电路 ........................................................ 18 3.7 键盘电路 ........................................................ 19 4 软件设计 .......................................................... 19 4.1 测量计算原理 .................................................... 20 4.2 主程序流程图 .................................................... 20

4.3 中断程序流程图 .................................................. 21 4.4 定时器T0,T1的中断服务程序 ..................................... 21 5 系统测试与结果分析 ................................................ 22 5.1 测试方法和仪器 .................................................. 22 5.2 仿真与焊接阶段 .................................................. 23 5.2.1 仿真阶段 ...................................................... 23 5.2.2 焊接与完成阶段 ................................................ 23 5.3 测试数据与结果分析 .............................................. 25 5.3.1测量结果与分析 ................................................. 25 5.3.2几种主要系统干扰和影响 ......................................... 27 结束语 .............................................................. 28 参考文献 ............................................................ 29 附录一:心率计电路图 附录二:部分程序

1

基于单片机的心率计设计

摘要:在社会飞速发展的今天,人们的物质文化生活得到了极大的提高,但同时多种疾病威胁着人们的生命;而心脏病又是人们难以预防的突发致命疾病,所以健康也被越来越多的人所重视。本设计要解决的问题就是可以测量心率、预防心脏病等心脏方面疾病的数字心率计。

便携式数字人体心率计运用AT89S52单片机作为核心控制处理单元,采用红外传感器作为传感器,运用软件和硬件双重滤波技术实现了对人体心率信号的准确检测。测量范围40—120次/分,小于40次或大于120次声光报警,传感器可以放在身体脉搏明显的任何部位,测量结果以数字方式存储并显示,测量精确到2次/分。可以测试多人,全部数据完全实现代码识别、掉电存储。同时在特色和创新部分还扩展了可以由微机控制清除仪表的存储数据,也可以由仪表自行清除的功能。为方便仪表数据的查询,又设计了上翻、下翻按钮。经过大量实验,本心率计已经基本达到题目要求部分的全部指标。

关键字:心率;红外传感器 ; 单片机AT89S52

Based on SCM cardiotachometer design

Abstract:Today in the rapid development of society, people's material and cultural life has been greatly improved, but also a variety of diseases threatening people's lives; and heart attack is it difficult to prevent sudden fatal disease, so health is also valued by more and more people. The design problem to be solved is that you can measure heart rate, cardiac disease, heart disease and other digital cardiotachometer.

Portable digital cardiotachometer adopt AT89S52 SCM as the core control by the processing unit, using infrared sensor as sensor and using the software and hardware double filtering technology to achieve the human heart rate for the accurate detection signal. Measurement range 40-120 times/points, less than 40 times or more than 120 times, the sensor can sound-light alarm in any part of the body pulse obvious, the measured results stored digitally and display, measurement precision to 2 times per minute. Can test people, all data completely realized code identification, off electricity storage. Meanwhile in features and innovation part is expanded by microcomputer control can be cleared instrument store data, also can be made by instrument to clean function. For the convenience of meter data query, and designed a over, turn to next button. After a lot of experiments, the cardiotachometer has fully reach the topic basic requirements part

Key words: heart rate;infrared transducer ; microcontroller AT89S52

1 引言

1.1 心率计的研究背景和意义

伴随着全球科技与经济的飞速发展与进步,关爱生命与健康已成为人类的共同追求。心脑血管疾病是危害人类生命和健康的最主要的疾病。每年因心脑血管疾病致死的人数位居人类死亡总数的首位,耗费的医疗费用居高不下,给家庭和社会造成巨大负担[1]。近年来,由于饮食习惯不合理、生活节奏加快等原因,心脑血管疾病的发病率更是呈逐年上升的趋势。如何科学的降低心脑血管疾病的发病率和死亡

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4