基于51单片机的心率体温检测系统设计

目 录

摘 要 I
Abstract II
引 言 1
1 控制系统设计 2
1.1 主控系统方案设计 2
1.2 脉搏传感器方案设计 3
1.3 系统工作原理 5
2 硬件设计 6
2.1 主电路 6
2.1.1 单片机的选择 6
2.1.2 STC89C51的主要功能及性能参数 6
2.1.3 STC89C51单片机引脚说明 6
2.2 驱动电路 8
2.2.1 比较器的介绍 8
2.3放大电路 8
2.4最小系统 11
3 软件设计 13
3.1编程语言的选择 13
3.2 Keil程序开发环境 13
3.3 STC-ISP程序烧录软件介绍 14
3.4 CH340串口程序烧写模块介绍 14
4 系统调试 16
4.1 系统硬件调试 16
4.2 系统软件调试 16
结 论 17
参考文献 18
附录1 总体原理图设计 20
附录2 源程序清单 21
致 谢 25

摘 要

随着日新月异科技发展,在心率体温测量方面,我们取得了迅速的发展,就近日而言,脉搏测量仪已经在多个领域大展身手,除了在医学领域有所建树,在人们的日常生活方面的应用也不断拓展,如检疫中心的额温枪都用到了技术先进的脉搏测量仪。在今年的疫情爆发的同时,我们可以积极应对,利用所学的知识,方便高效地检测出人体有无异常体温,在上学签到时,我们可以利用此来检测温度,预防集体性感染事件。为了在心率测量仪的精准性和便携性方面做出重大改变,我计划设计一种以51单片机为核心的心率体温测量仪。我们的心率体温检测系统以STC89C51单片机为核心,借用单片机系统的内部计时器计算时间。其大致的步骤为通过ST188光电传感器感应生成脉冲,心跳次数由单片机累计所得,其对应的时间根据定时器获取。本设计使用的时候可以展现脉搏心率次数以及时间长短,当其终止使用的时候可以展示总的脉搏心率次数以及时间长短。经过我的个人测试,系统成功运行,符合设计要求。通过软件与硬件方面的整体调试并进行实验,得出结论为在技术上可行,预期可以实现功能,准确、快速地完成测量任务。

关键词:心率体温检测系统;STC89C51单片机;光电传感器

Abstract

With the rapid development of technology, we have made rapid progress in the measurement of heart rate and body temperature. In recent days, pulse measuring instruments have already shown their talents in many fields, in addition to making achievements in the medical field, in people’s daily life. The application of the technology has also been continuously expanded. For example, the frontal temperature gun of the quarantine center has used a technologically advanced pulse measuring instrument. At the same time as the outbreak of this year, we can actively respond and use the knowledge we learned to conveniently and efficiently detect whether the human body has abnormal body temperature. When we sign in to school, we can use this to detect the temperature and prevent collective infections. In order to make major changes in the accuracy and portability of the heart rate measuring instrument, I plan to design a heart rate and temperature measuring instrument with 51 single-chip as the core. Our heart rate and temperature detection system uses STC89C51 microcontroller as the core, and uses the internal timer of the microcontroller system to calculate the time. When this design is used, it can show the pulse heart rate times and the length of time, and when it is terminated, it can show the total pulse heart rate times and the length of time. When the system stops running, the total pulse time and time can be displayed; when the number of pulses exceeds the specified upper and lower limits, the clock will issue a warning. After going through my personal test, the system runs successfully and meets the design requirements. Through the overall debugging of software and hardware and experiments, it is concluded that it is technically feasible, and it is expected to realize the function and complete the measurement task accurately and quickly.

Keywords: Heart rate and body temperature monitoring system;STC89C51 single chip microcomputer; Photoelectric sensor

引 言

体温是生人们命活动的征兆,也是我们人体日常新陈代谢重要的参数。体温既具有生理上和临床上的重要性,也是临床诊断的重要指标。无论是生产生活,我们都必不可少地接触到体温测量仪。在日常生活中,我们应用最多的,就该是水银温度测量仪了,传统的温度计十分容易破碎,破碎时还会发生水银污染,严重危害人体健康,并且他的测量十分不方便,每次测量花费的时间都较长,而且它的读数也不太准确,人眼的识别容易产生偏差。
为此,我想设计一种新型的体温计,测量精度与传统水银温度计相当,相比而言,它会大大地缩短了测量时间,对环境几乎没有污染,也不用担心携带不方便,结实耐用是他的一大优势[1]。若温度高于人的正常体温系统就会直观显示出来,在当前形势下就会引起人们注意。相比于正常的温度计,我们添加的液晶显示,足够引起人们的警觉。
脉冲波的节奏变化可以从多方面反映心血管系统是否健康。STC89C51单片机是本次系统的核心,这是一种实用的脉冲测量仪器。我们可以利用光电脉冲传感器收集人体脉冲和心率的数据。接收到的信号发送至STC89C51进行处理,得到的数据将会在显示屏上显示,液晶显示屏上显示得到得的脉搏数和温度[2]。得以提醒人们脉搏或体温异常。
本文首先描述本设计的整体思路,然后着重介绍方案的比较,选择,优劣。最后介绍各软件硬件及焊接的重点。第一部分说明系统的控制系统设计,阐述本设计用途及运用方向;第二部分介绍了系统的硬件设计,着重介绍各个元器件的原则及优劣点;第三部分阐述了系统的软件设计,介绍项目的软件开发环境及选择该语言的原因;第四部分综述了系统调试方面的问题。

1 控制系统设计

1.1 主控系统方案设计
方案一:单片机作为主要的控制芯片,是集成电路的一种,可以单独完成现代产业所需要的控制功能。单片机外形很小,但是所具备的功能却是很大的,它将微处理器、储存器、输入/输出接口电路通过导线焊接到板子上,集成到同一片芯片。图1.1是采用单片机作为本设

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值