Heart Beat Pulse Checking Through Arduino Mega

Introduction

  • In this article, I explain about Heart Beat Pulse checking through the Arduino Mega. It can easily display the wave on a PC monitor.
  • In the PC monitor, it displays the reading of the pulse.
  • The wave form can be displayed in the sine wave form. 
Parts Of List: 
  • Arduino Mega
  • Easy pulsev1.1 sensor 
  • HRM-2511E
  • Hookup wires 
  • PC.
Connection:
 
Step 1: Connection from the Easy pulsev1.1 sensor to Arduino mega.
 
 
Figure1: Easy pulsev1.1 
  • Connect the Vcc in the Easy pulse v1.1 sensor to the Vcc of the Arduino Mega.  
  • Connect the Gnd in the Easy pulse v1.1 sensor to the Gnd of the Arduino Mega.
  • Connect the Ao in the Easy pulse v1.1 sensor to the Ao of the Arduino Mega.
 
Figure2: connection of HRM-2511E to Easy pulsev1.1
 
Connect the HRM-2511E and Easy pulsev1.1 in the power cable.
 
Programming
  1. void setup()  
  2.  {    
  3. Serial.begin(115200);    
  4. }    
  5.      
  6. void loop()   
  7. {    
  8.   int sensorValue = analogRead(A0);    
  9.   Serial.println(sensorValue);    
  10.   delay_x(5);    
  11. }    
  12.      
  13. void delay_x(uint32_t millis_delay)    
  14. {    
  15.   uint16_t micros_now = (uint16_t)micros();    
  16.      
  17.   while (millis_delay > 0)   
  18. {    
  19.   if (((uint16_t)micros() - micros_now) >= 1000)  
  20.  {    
  21.   millis_delay--;    
  22.   micros_now += 1000;    
  23.     }    
  24.   }      
  25. }    
  26.   
  27. void setup()  
  28.  {    
  29. Serial.begin(115200);    
  30. }    
  31.      
  32. void loop()   
  33. {    
  34.   int sensorValue = analogRead(A0);    
  35.   Serial.println(sensorValue);    
  36.   delay_x(5);    
  37. }    
  38.      
  39. void delay_x(uint32_t millis_delay)    
  40. {    
  41.   uint16_t micros_now = (uint16_t)micros();    
  42.      
  43.   while (millis_delay > 0)   
  44. {    
  45.   if (((uint16_t)micros() - micros_now) >= 1000)  
  46.  {    
  47.   millis_delay--;    
  48.   micros_now += 1000;    
  49.     }    
  50.   }      
  51. }   
Explanation:
  • It can easily check the heart pulse in the body.
  • Connect to the HRM-2511E and see the heart beat pulse in the PC monitor.
  • It will display the sine wave pulse as the correct wave form. 
Output:
 
 
Figure3:output
 
Read more articles on Arduino: