摘 要
本课题设计了一种基于51单片机的脉搏测量仪。系统以AT89C51单片机为核心,以红外发光二极管和光敏三极管为传感器,并利用单片机系统内部定时器来计算时间,由光敏三极管感应产生脉冲,单片机通过对脉冲累加得到脉搏跳动次数,时间由定时器定时而得。传感器把采集到的用于检测脉搏跳动的红外光转换成电信号,这些电信号通过信号处理系统进行滤波、放大、整形得到符合要求的脉搏电信号,传给单片机,并通过单片机进行处理,最后由数码管显示每分钟的脉搏次数。系统停止运行时,能够显示总的脉搏次数和时间。经测试,系统工作正常,达到设计要求。
脉搏测量仪的设计,必须是通过采集人体脉搏变化引起的一些生物信号,然后把生物信号转化为物理信号,使得这些变化的物理信号能够表达人体的脉搏变化,最后要得出每分钟的脉搏次数,就需要通过相应的硬件电路及芯片来处理物理变化并存储脉搏次数。在硬件设计中一般的物理信号就是电压变化。本系统的组成包括光电传感器、信号处理、单片机、数码显示、电源等部分。
关键词:AT89C51单片机;脉搏测量仪;传感器;信号采集
Abstract
In this paper, a pulse measuring instrument based on 51 single-chip microcomputer is designed. System to AT89C51 microcontroller as the core, with infrared light-emitting diodes and phototransistor as the sensor, and the use of single-chip system internal timer to calculate the time, by the photosensitive transistor induction pulse, single-chip pulse by adding the number of pulse beat, the time from the timer And so on. The sensor converts the infrared light collected for detecting the pulse beat into an electric signal. The electric signal is filtered, amplified and shaped by the signal processing system to obtain the required pulse electrical signal, which is transmitted to the single chip computer and processed by the single chip computer. Finally, The number of pulses per minute is displayed by the digital tube. When the system is stopped, the total number of pulses and time can be displayed. After testing, the system is working properly, to meet the design requirements.
The design of the pulse meter must be through the collection of human pulse changes caused by some of the biological signals, and then the biological signal into a physical signal, making these changes in the physical signal to express the pulse of the human body changes, and finally to the number of pulses per minute , It is necessary through the corresponding hardware circuit and chip to deal with physical changes and store the pulse frequency. In the hardware design in general the physical signal is the voltage change. The system consists of photoelectric sensors, signal processing, single-chip, digital display, power and other parts.
Key words: AT89C51 single chip; pulse measuring instrument; sensor; signal acquisition
目 录
摘 要 I
Abstract II
目 录 III
引 言 1
第1章 绪论 3
1.1 选题的背景和意义 3
1.2 脉搏测量仪发展现状 3
1.3发展趋势 4
1.4设计难点 6
第2章 脉搏测量仪系统结构 7
2.1 光电脉搏测量仪的结构 7
2.2 工作原理 8
2.3 光电脉搏测量仪的特点 8
第3章 基本元器件介绍 10
3.1 AT89C51简介 10
3.1.1 AT89C51 的主要性能 10
3.1.2 AT89C2051的结构框图 12
3.1.3 AT89C2051的引脚说明 13
3.1.4 复位电路 14
3.1.5 振荡电路 15
3.2 光电传感器简介 15
3.2.1光敏二极管 16
3.2.2光敏三极管 16
3.2.3光电传感器检测原理 16
3.3 LED 的综述 17
3.3.1 LED 的结构 17
3.3.2 LED数码管的显示方法 18
第4章 基本结构模块 20
4.1 脉搏波检测电路 20
4.2 信号采集电路 20
4.3 信号放大 21
4.3.1放大器的介绍 21
4.3.2 放大电路 22
4.4 波形整形部分 23
4.5 单片机处理电路 25
4.6 显示电路 26
4.5 整体硬件电路设计 27
第5章 软件系统 28
5.1 主程序流程 28
5.2 定时器中断程序流程 28
5.3 INT中断程序流程 29
5.4 显示程序流程 30
5.5 软件说明 30
第6章 脉搏仪测试与结果分析 31
6.1 程序调试 31
6.2 脉搏测量仪原理图调试 31
6.3 脉搏测量仪在Proteus的仿真 31
6.4 PCB排版布线及硬件焊接 32
6.5 测试数据与结果分析 34
总 结 35
参考文献 36
致 谢 37
附录1 38
附录2 39