• Home
  • Electrical
    • Power Electronics
  • Electronics
    • General Electronics
  • Embedded Systems
    • Arduino
    • ARM Cortex
    • Raspberry Pi
  • Robotics
  • Android
  • Others
    • Communications
    • Solar
    • Sensor based
  • Buy projects

Buy Electronics & Electrical Projects in India

Buy Electronic Kits & Electrical Projects in New Delhi, Hyderabad, Mumbai, Bangalore, Pune, Chennai, Ahmedabad and the rest of India.

  • New Delhi
  • Ahmedabad
  • Banglore
  • Chennai
  • Hyderabad
  • Mumbai
  • Pune

Heart Attack Detection and Medical Attention Using Heart Beat Sensor

March 2, 2017 by Tarun Agarwal 4 Comments

Heartbeat sensor for medical applicationsHeart attack (coronary artery disease) is one of the most common and very serious effects of aging. The cholesterol, fatty deposits, emotional stress, and drug intake lead to build spasm in blood vessel walls. As the spasm grows, less blood can flow through the arteries. As a result, the heart muscle can’t get the blood or oxygen what exactly, it needs. This can lead to a heart attack. In this article, We are developing a system which will help to decrease the death rate due to the heart attack by early heart attack detection. In our system, we will be using smart Heart Beat sensor which is easily available in the market.

Heart Beat Sensor (Pulse Sensor) and Its Working

Heart attack detection using Heart Beat Sensor (Pulse Sensor) works on Photoplethysmography (PPG) technique. The Photoplethysmography is a simple and low-cost optical technique that can be used to detect blood volume changes in the microvascular bed of tissue. This technique often used non-invasively to make measurements at the skin surface (usually a fingertip). It uses an infrared light source to illuminate the finger on one side, and on the other side of the finger a photodetector is placed, this will measure the small variations in the transmitted light intensity.

Heart Beat Sensor Working Principle

Heart Beat Sensor Working Principle

The light-absorbing property of hemoglobin is used in the measurement of Heart Beat rate. The light from an infrared light source on the underside of the monitor is shone on blood vessels just under the skin. The light that is not absorbed, but reflected back is captured by a photodetector. The variations in the photodetector signal are related to changes in blood volume inside the tissue. The photodetector produces an electrical signal when the reflected back light strikes it. The signal which we obtained from the sensor is an analog signal and it is converted into a digital signal. Furthermore, the signal can be filtered and then amplified to obtain a perfect PPG (PhotoPlethysmoGraph) waveform, which is synchronous with the heart beat.

Circuit diagram of Heart Beat Sensor

Heart Beat Sensor Circuit Diagram and its Operations

Heart Beat Sensor Circuit Diagram and its Operations

The circuit shows ON/OFF control scheme using a transistor for an infrared light source inside the heart beat sensor module HRM-2511E. The signal from the transistor must be pulled high in order to turn on the IR LED. The photodetector output (Vsensor) contains a weak and noisy PPG signal that goes to a two-stage filter and an amplifier circuit for further processing.

The PPG signal consists of a large amount of DC component, which is attributed to the total blood volume of the examined tissue, and a pulsatile (AC) component (is much smaller in magnitude than the DC component), which is synchronous to the pumping action of the heart. The AC component, which carries essential information, including the heart rate. A typical PPG waveform is shown in the figure below.

PPG Waveform

PPG Waveform

In Stage I instrumentation, the signal passed through a passive (RC) high-pass filter (HPF) to block the DC components of the PPG signal. The output from the HPF goes to an Opamp-based active low-pass filter (LPF). In order to achieve a full swing of the PPG signal at the output, the negative input of the Op-amp is tied to a reference voltage (Vref) of 2.0V. The Vref is generated using a Zener diode.

The output from the active LPF now goes to the Stage II instrumentation circuit, which is basically a replica of the Stage I circuit. The amplitude of the signal which is going to the second stage is controlled by a potentiometer (acts as a manual gain control). The Opamp used in this project is MCP6004, which provides rail-to-rail output swing.

The second stage also consists same HPF and LPF circuits. The two-step amplified and filtered signal is now fed to a third Op-amp which provides the required analog PPG signal. The potentiometer P1 is used to control the amplitude of the PPG signal appearing at the output of the third Opamp. The fourth Opamp is used as a voltage comparator. The analog PPG signal is fed to the positive input and the negative input is tied to a reference voltage (VR). The magnitude of VR can be set anywhere between 0 and Vcc through potentiometer P2 (shown above).

 Every time the PPG pulse wave exceeds the threshold voltage VR, the output of the comparator goes high. Thus, this arrangement provides an output digital pulse which is synchronous to the heart beat. The width of the pulse is also determined by the threshold voltage VR. A LED connected to the digital output blinks according to the digital output signal.

Heart Beat Sensor module HRM-2511E consists of the power supply (Vcc), Enable (En), Analog PPG output (AO), and digital pulse output (DO) pins are accessible through the J1 headers. The HRM-2511E sensor connects to the board through a 3.5mm Audio Jack connector (J2). TP1 and TP2 are test pads on the circuit board that is connected to the raw PPG output signal (Vsensor) and Stage I output (‘a’), respectively.

Heart Beat Sensor module HRM-2511E

Heart Beat Sensor module HRM-2511E

PC-Based Heart Rate monitor using Arduino and Heart Beat (Pulse) Sensor

A PC-based heart rate monitor system can be designed by using an Arduino board and Heart Beat Sensor. The sensor operation was explained in above. The analog output pin (AO) of the pulse sensor goes to analog input channel A0 of Arduino. A mini-USB cable provides the serial communication between Arduino board and the PC. The power supply for Pulse sensor is derived from the Arduino board. The hardware set as shown below.

The analog PPG output from sensor board is fed to an ADC channel of Arduino to convert it into digital counts for further processing, which then transfers the data to the PC through a serial port interface. A PC application is developed using a programming language to display the received PPG signal and instantaneous heart rate.

Arduino and Pulse sensor connections

Arduino and Pulse sensor connections

The programming part of Arduino includes that it takes the ADC samples of the analog PPG signal at 5ms interval and continuously transmits the data to the PC through the USB-UART interface.

PC application

On the PC side, we have to develop an application that reads the incoming ADC samples from the Arduino and process them to extract the PPG signal and heart rate. The below-shown flowchart explains the overall logic of computing the heart rate from the received ADC samples.

incoming ADC samples

The heart beat rate can be computed by knowing the time period of the PPG waveform. Two heart rates are computed from the three consecutive PPG peaks and their average value is displayed as an instantaneous heart rate. The identified peaks are also marked on the display with a cross (X) symbol. The PPG waveform plotted by the PC application on the computer screen shown below.

PPG waveform plotted by the PC application

PPG waveform plotted by the PC application

Thus, this is all about Heart Attack Detection and Medical Attention Using Heart Beat Sensor (pulse sensor) and its working principle. We hope that you have got a better understanding of this concept. Are you keen to build simple electronic projects or any technical assistance, please give your suggestions by commenting in the comment section below. Here is a question for you, what is the Photoplethysmography?

Filed Under: Electrical, Sensor based

About Tarun Agarwal

Tarun Agarwal is the Chief Customer Support Officer at Edgefx Technologies Pvt Ltd. He has 8 years of experience in Customer Support, Operations and Administration.

Comments

  1. Sayan sarkar says

    August 9, 2017 at 11:47 pm

    hi, do u have the code of this project ?

    Reply
    • Tarun Agarwal says

      September 13, 2017 at 4:09 pm

      I appreciate your interest. For more details please visit our domestic website http://www.edgefxkits.com/
      And contact Mr. Sathish on +91 8885507011 or you can email us on info@edgefxkits.in

      Reply
  2. Oyinloye olarewaju david says

    March 24, 2018 at 5:59 pm

    This is a very nice project for me….kudos to you

    Reply
    • Tarun Agarwal says

      April 13, 2018 at 5:27 pm

      Hi
      Thank you so much for your feedback
      And once again please visit our International website http://www.efxkits.com/
      For more details please contact to Mr. Niranjan on +91 9908518885 or you can email us on info@edgefxkits.in

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search Here!

Join our Loyal Fan Base!




Recent Posts

  • Circuit Design of Pulse Amplitude Modulation
  • What Are The Advantages Of Using A Printed Circuit Board (PCB)
  • How Does A Transistor Work?
  • Home and Industrial Safety Using Fire and Gas Detection System Using GSM
  • Heart Attack Detection and Medical Attention Using Heart Beat Sensor

Download Ebook Worth 99$





Subscribe to our Youtube Channel

Like us on Facebook

Copyright © 2021 · Magazine Pro Theme on Genesis Framework · WordPress · Log in