STM32 microcontroller core ECG acquisition Conditioning System. LIU Jia-ming, LI Zhi

Similar documents
Design of Virtual Sphygmomanometer Based on LABVIEWComparison, Reflection, Biological assets, Accounting standard.

Design on Electrocardiosignal Detection Sensor

Design and Implementation of Digital Stethoscope using TFT Module and Matlab Visualisation Tool

Design and Fabrication of High Frequency Linear Function Generator with Digital Frequency Counter using MAX038 and a PIC microcontroller

Bioelectric Signal Analog Front-End Module Electrocardiograph

A Complete Analog Front-End IC Design for ECG Signal Acquisition

WIRELESS ELECTRONIC STETHOSCOPE USING ZIGBEE

A High Precision Electronic Scale Based on STM32. Jiahui Chen

TRANSDUCER INTERFACE APPLICATIONS

BME 405 BIOMEDICAL ENGINEERING SENIOR DESIGN 1 Fall 2005 BME Design Mini-Project Project Title

Simulation and Design of a Waveform Generator Based on DDS Technology

Development of Electrocardiograph Monitoring System

Lecture 14 Interface Electronics (Part 2) ECE 5900/6900 Fundamentals of Sensor Design

Electrical current measurement system for energy harvesting applications

The Development and Application of High Compression Ratio Methanol Engine ECU

Design of Frequency Characteristic Test Instrument Based on USB

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL INPUT DELTA SIGMA ADC LTC DESCRIPTION

Design of Signal Conditioning Circuit for Photoelectric Sensor. , Zhennan Zhang

EMG Sensor Shirt. Senior Project Written Hardware Description April 28, 2015 ETEC 474. By: Dylan Kleist Joshua Goertz

EE 230 Experiment 10 ECG Measurements Spring 2010

Florida Atlantic University Biomedical Signal Processing Lab Experiment 2 Signal Transduction: Building an analog Electrocardiogram (ECG)

Design of an insulator leakage current measurement system based on PLC

Design of high precision current signal source on DDS Han Ya Kun1, a, Suo Xue Song*,1, b

6.101 Introductory Analog Electronics Laboratory

LINEAR IC APPLICATIONS

Deepali Shukla 1 (Asst.Professor), Vandana Pandya 2 (Asst.Professor) Medicaps Institute of Technology & Management, Indore (M.P.

Designing with STM32F3x

Research on the smart measuring system for DC resistance box

Kanchan S. Shrikhande. Department of Instrumentation Engineering, Vivekanand Education Society s Institute of.

Brain-computer Interface Based on Steady-state Visual Evoked Potentials

School of Electronic Science and Engineering, Nanjing University of Posts and Telecommunications, Nanjing, , China

Bio-Impedance Spectroscopy (BIS) Measurement System for Wearable Devices

ELC224 Final Review (12/10/2009) Name:

32-bit ARM Cortex-M0, Cortex-M3 and Cortex-M4F microcontrollers

BIOMEDICAL INSTRUMENTATION PROBLEM SHEET 1

Instrumentation amplifier

LM110 LM210 LM310 Voltage Follower

Bridge Measurement Systems

Low Cost Screening Audiometer

Design and Implementation of a New Gain Control RF Amplifier

AD9772A - Functional Block Diagram

When input, output and feedback voltages are all symmetric bipolar signals with respect to ground, no biasing is required.

AD8232 EVALUATION BOARD DOCUMENTATION

ELG3336 Design of Mechatronics System

Quad 12-Bit Digital-to-Analog Converter (Serial Interface)

GSM BASED PATIENT MONITORING SYSTEM

2 Intelligent meter reading mode

THE DESIGN OF ENERGY-EFFICIENT MONITORING TERMINALFOR POWER SUPPLY AND DISTRIBUTION SYSTEM OF ENTERPRISE BASED ON STM32

8-Bit, high-speed, µp-compatible A/D converter with track/hold function ADC0820

HEART RATE COMPUTATION IMPLEMENTED ON FIELD PROGRAMMABLE GATE ARRAY BOARD. Abstract

Power Factor Correction in Digital World. Abstract. 1 Introduction. 3 Advantages of Digital PFC over traditional Analog PFC.

LF147 - LF247 LF347 WIDE BANDWIDTH QUAD J-FET OPERATIONAL AMPLIFIERS

CHAPTER 3. Instrumentation Amplifier (IA) Background. 3.1 Introduction. 3.2 Instrumentation Amplifier Architecture and Configurations

Portable, Low Cost, Low Power Cardiac Interpreter

Micropower, Single-Supply, Rail-to-Rail, Precision Instrumentation Amplifiers MAX4194 MAX4197

A Design Of Simple And Low Cost Heart Rate Monitor

Design of intelligent vehicle control system based on machine visual

ECG Monitor - Abstract. This project deals with an application of H3687 from Renesas H8 series of processors in the Medical field to record ECG.

Four-Channel Sample-and-Hold Amplifier AD684

Design of double loop-locked system for brush-less DC motor based on DSP

Design of Portable ECG Monitoring System Based on LM4F120H5QR

Small Signal Pulse Detection

Design and Research of Piezoelectric Ceramics Drive Power

Lecture 4 Biopotential Amplifiers

Figure 1.1 Mechatronic system components (p. 3)

Differential Amplifiers

Design and Implementation of Digital Frequency Meter Based on SCM. Weiqiang Zheng

Chapter 2 Signal Conditioning, Propagation, and Conversion

AN4995 Application note

ANALYSIS AND DESIGN OF HIGH CMRR INSTRUMENTATION AMPLIFIER FOR ECG SIGNAL ACQUISITION SYSTEM USING 180nm CMOS TECHNOLOGY

III Lead ECG Pulse Measurement Sensor

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Linear Integrated Circuits Applications

Demo Circuit DC550A Quick Start Guide.

Changing the sampling rate

DUAL ULTRA MICROPOWER RAIL-TO-RAIL CMOS OPERATIONAL AMPLIFIER

IMPROVEMENTS IN ELECTROCARDIOGRAPHY SMOOTHENING AND AMPLIFICATION

REALIZATION OF SOME NOVEL ACTIVE CIRCUITS SYNOPSIS

Generation of Gaussian Pulses using FPGA for Simulating Nuclear Counting System

Tiny 12-Bit ADC Delivers 2.2Msps Through 3-Wire Serial Interface by Joe Sousa Introduction

Quad Picoampere Input Current Bipolar Op Amp AD704

ENGR 499: Wireless ECG

Capacitive MEMS accelerometer for condition monitoring

DESIGN OF OTA-C FILTER FOR BIOMEDICAL APPLICATIONS

Model 25A Manual. Introduction:

Simulation and analysis of frequency modulation circuit based on LM566 Zhang Qian1, a, Hu Meng2, b

ELR 4202C Project: Finger Pulse Display Module

STUDY OF A NEW PHASE DETECTOR BASED ON CMOS

Quad Picoampere Input Current Bipolar Op Amp AD704

The Electrostatic Semiconductor Wafer Clamping/Chucking System (ESC)

Design and Implementation of Digital Signal Transmission Performance Analyzer Based on FPGA

Biomedical Instrumentation (BME420 ) Chapter 6: Biopotential Amplifiers John G. Webster 4 th Edition

OBSOLETE. High Performance, BiFET Operational Amplifiers AD542/AD544/AD547 REV. B

Circuit Design and Implementation of Micro-Displacement Measurement System of Laser Self-Mixing Interference

Analog/Digital Guitar Synthesizer. Erin Browning Matthew Mohn Michael Senejoa

Concepts to be Reviewed

LF147 - LF247 LF347 WIDE BANDWIDTH QUAD J-FET OPERATIONAL AMPLIFIERS

Bio-Potential Amplifiers

CHAPTER 3 ANALOG SIGNAL CONDITIONING

ALD500RAU/ALD500RA/ALD500R PRECISION INTEGRATING ANALOG PROCESSOR WITH PRECISION VOLTAGE REFERENCE

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Transcription:

International Conference on Computer and Information Technology Application (ICCITA 2016) STM32 microcontroller core ECG acquisition Conditioning System LIU Jia-ming, LI Zhi College of electronic information, Sichuan University, Chengdu,610046,China Keywords: STM32 microcontroller; ECG; Acquisition conditioning system Abstract. In order to achieve real-time monitoring of ECG, the paper design a set of ECG data acquisition system based STM32 microcontroller conditioning. Design of the system is divided into hardware and software in two parts: hardware including ECG acquisition, preamplifier, bandpass filter and amplifier, band-stop filter and level lifting circuit, 50Hz double trap circuit T and A / D acquisition LCD display circuit, the software part of the main STM32 module is configured to implement serial communication, use of assembly language programming, using modular structure. This design affordable, high stability, has some practical value. Introduction ECG (ECG) is generated when the human heart beats bioelectrical different locations on the body surface of physiological changes in the signal, it can reflect the speed of the beating human heart, in order to determine the health status[1]. With the improvement of people's living standards, heart disease has become the number one killer threat to human health, with a hidden disease, the rapid development of high-risk life and other characteristics[2], which ECG has always been an important topic in the medical field. With the advances in modern technology, the use of computer-based signal detection system equipment to obtain ECG information to assist physicians in order to become the development trend of medical consultation. Therefore, a need for a capable and PC ECG detection system data communication[3]. This paper presents a kind of STM32 microcontroller core, through the use of technology to collect the body's front-end ECG, and by AD620, OP2177 as a signal conditioning system which enables the measured ECG is normal, noise is effectively suppressed, stable circuit performance. System Design Overview ECG Acquisition conditioning system including analog acquisition and digital processing in two parts, the design collection of human ECG electrodes and through AgCI three leadwires ECG acquisition line, through the preamplifier circuit, the band-pass filter circuit, 50Hz double T notch wave and then through the main amplifier and the level of the lifting circuit ECG amplitude control in the STM32's A / D acquisition range, STM32 by timer setting A / D sampling frequency, by the way mean filtering the resulting figures signal processing, and finally depicted on color electrocardiogram shape[4], Overall system block diagram shown in Figure 1. Hardware Design control module circuit design STM32F103VE SCM control module is the core of the controller, the MCU STMicroelectronics ST peninsula is produced by 32 high-performance, low cost and low power Enhanced MCU, its core uses ARM's latest Cortex-M3 architecture produced the maximum operating frequency of 72MHz, 521kB of program memory, 64kB of RAM, 8 timer / counters, two watchdog and a real-time clock RTC, on-chip communication interface has two I2C, 3 SPI, 5 USART, a USB, a CAN, a SDIO, and integrated three ADC and a DAC, has a 100-pin, 80 general-purpose I / O ports[5]. Master SCM LQFP100, Figure 2 is LQFP100 pin arrangement. 2016. The authors - Published by Atlantis Press 182

Figure 1 Overall system block diagram Figure 2 STM32F103VE microcontroller pin map Design preamplifier Preamplifier is the key to ECG data collection. It is the ECG amplifier for amplifying the first stage, due to the ECG signal amplitude input is very low, and mix some interference signal, so the main function is to filter preamplifier common mode interference signals, while the ECG differential mode a certain degree of amplification. To achieve this purpose, the design uses instrumentation amplifier AD620 as a pre-amplifier having an input paranoid low current, low noise, high accuracy and low power consumption characteristics [6], to fully meet the requirements of the design characteristics, its circuit diagram shown in Figure 3. band-pass filter and a main amplifier The system design using integrated operational amplifier OP2177 constituting the high-gain band-pass filter, and its high precision amplification for weak ECG acquisition. OP2177 internal dual op amp cascade to ensure the differential input stage tends to symmetry, which has a very low offset voltage and drift, reducing noise; while OP2177 low input bias current, and thus a very low power consumption. Even without the use of external compensation circuit, OP2177 for large capacitive load (> 1000pF) still has a stable output voltage of 30V when the power amplifier consumes less than 15mW. Protection OP2177 input signal amplifier is a high-precision double by internal 500-ohm series resistor to achieve, when the input signal level is higher than the supply voltage can ensure that the input signal is not inverted. So we can use the above advantages OP2177 to build amplification and filtering circuit design of the system. Meanwhile, the human ECG signal bandwidth of about 100Hz, band energy is concentrated in the 0.02 ~ 150Hz, noise and harmonic components of the ECG signal energy major existing cardiac, cardiovascular disease and related peripherals brought no more than 300Hz. The OP2177 internal dual op amp IC are designed as active low-pass and high-pass filter, a combination of the pass band at least 0.01 ~ 500Hz band-pass filter, shown in Figure 4. Figure 3 Preamplifier circuit diagram Figure 4 Bandpass filtering and amplifying circuit diagram of the main band-stop filter and level-up circuit To filter out 50Hz frequency interference, the system circuit joined the band-stop filter. System output is 0-5V, due to the positive and negative logic filter uses an AC signal, so to meet the design output requirements, output filter must be level upgrade, designed to enhance the range of at least half the maximum output amplitude. Figure 4 is the use of integrated operational amplifier 0P27, R11, R12, R13 form a reverse adder circuit, the output signal will be coupled with a bias voltage from the bias circuit R9, RI0 component on the circuit can be adjusted during commissioning R10 produce appropriate bias voltage. Adjust the scope of the design bias voltage is 0-10V (VCC = 12V), the input 183

signal filter thus inverting adder regulated bias voltage is output -5V-0. R14, R15, OP27 constituting an inverter, to ensure that the final output signal within the voltage range of 0-5V. The system design of band-stop filter with a high quality factor, so its filter bandwidth is narrow, the ECG detected with good inhibitory selectivity. ECG normally collected after the amplifier has a negative level, while the converter during A / D conversion is defined minimum switching voltage is 0V, the ECG must be amplified in order to ensure the potential to enhance ECG signal in an A / D conversion by MSP430F149 negative level when distortion does not occur, and all were positive level analog to digital conversion. Its level-up circuit shown in Figure 5. 50Hz T Parallel band-stop filter design Double T parallel 50Hz band-stop filter circuit essentially consists of two T-type high-pass filter and low-pass filters connected in parallel Figure 6 shows, the symmetrical design parameters to ensure the circuit has a good degree of zero drift suppression. The main role of this circuit is suppressed by ECG 50Hz frequency interference. The circuit cutoff center frequency of 50Hz, in order to improve the accuracy suppress and prevent occurrence frequency and elegant, using silver mica capacitor circuit design, resistance metal film resistors, the system design using error <0.1% metal film resistors, which makes the 50Hz power frequency interference signal attenuation circuit capacity can reach 60dB. Figure 5 Bipolar level to the level of potential unipolar boosting circuit Figure 6 50HZ band stop filter Software Process The system software design is modular assembly language. After the system boot initialization, using the timer overflow into the signal acquisition mode, the ECG signal collected by the A / D conversion, data storage and processing, and finally to the display. Eventually on the color screen to describe point method to achieve the waveform obtained after the initial ECG signal is displayed in real time software control, namely accurate and fast. In addition, the host control data storage conversion and showed that various forms of data can show the way, to facilitate the detection by data analysis. Program flow shown in Figure 7. Figure 7 system software flow chart 184

Found Results The system in the body by placing the left arm, right arm, right leg electrode sheet and three lead wire acquisition signal after a preamplifier circuit and STM32 chip processing, ECG waveform on the screen obtained 8 shown approximately between QRS peak shows 900ms, the patient can get the measured heart rate is about 67 beats / min, reflecting the real situation of the patient. Judging from the waveform monitor, the image can clearly reflect the basic electrical characteristics of the human heart, among which the PR and QT interval significantly, which P-wave, RP segment, QRS wave, ST segment and T wave have significant representation, can provide medical personnel provide basic care and diagnosis. Signal of 50Hz frequency interference has been significantly inhibited visible circuit design is successful. Figure 8 ECG crest The system uses a preamplifier AD620, the instrumentation amplifier featuring low noise, high impedance characteristics, can well suppress the zero drift and common-mode signal, for weak ECG signal acquisition and amplification with high precision and transmission performance. Overall gain can reach nearly 30dB, the common mode signal rejection ratio> 97Db, the whole input impedance reached 180MΩ, the band in response 0.01Hz to 100Hz, completely covering normal and abnormal ECG frequency range to achieve the design requirements. Machine design using his right leg drive circuit and the common mode signal driving shield, combined with double T parallel band-stop filter design methods and level upgrade, effectively suppressed frequency interference signal, the quality factor raised to 5, to reduce the power consumption of the circuit. The system uses the serial Flash memory chips AT45DB321 problem solving large-capacity data storage, the storage capacity of up to 30Mbit. Moreover host MSP430F149 SPI serial interface data Data flash memory for reading. Conclusion This design is based on STM32 as the control center for the faint of heart in AD620 signal acquisition and preamplifier to OP2177 signal processing and the main amplifier circuit, circuit performance is relatively stable and can effectively suppress noise and signal interference environment, measuring the output ECG waveform stable. Circuit design of the whole system is not complicated, high precision, and can basically meet the love of a heart to heart disease surveillance and home care. The experimental measurements show that the design of low cost, perfect function, simple operation, friendly interface, high degree of humanity, has a certain value. Reference: [1] Into the clear, Wu Meng.. design LabVIEW real-time ECG acquisition system [J]. Computer Technology and Development, 2013,23 (04): 176-180. [2] Liu Lungi study [D] portable Holter monitoring systems. Jinan, Shandong University of Science and Technology, 2010. [3] Wang Zonggang, Pan Zhengrong, wish Liao design and implementation of LabVIEW ECG acquisition system based on [J] Industrial Instrumentation & Automation 2013,3: 40-43. [4] Xie Shun, Zhang Yibin based on STM32 ECG acquisition instrument [J] Electronic Technology 2014,27 (4): 108-111. 185

[5] Chen Fengfeng, Hu Yi, Xu Yan.STM32F103x in implementation Application Programming [J] MCU and embedded applications, 2009 (09): 25-27,31. [6] Houhui Liang, Liguo Xia, Pang Hao, Design and Research MSP 430F149 microcontroller ECG data acquisition system [J] Chinese medical equipment, 2013,28 (11): 31-33. --------------------------------------------------------- About the Author: Liu Jia-ming:Tangshan, Hebei, undergraduate, in reading, in 2013 admitted to the Sichuan University School of photoelectric professional electronic information, is mainly engaged in photoelectric theoretical study and work. Li Zhi: innovative projects instructor, Ph.D., associate professor of Electronics and Information Engineering, Sichuan University, mainly from the things networking, compressed sensing, information security, target detection and recognition theory and technology research, published more than 40 papers, which were SCI, EI papers included near 20. 186