Heart Beat Pulse Checking Through Arduino Mega

Introduction:
  • In this article I explain about Heart Beat Pulse checking through the Arduio 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 Arduinomega.


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 powercable.
 
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. }  
Explanation:
  • It can easily checkthe heart pulse in the body.
  • Connect to the HRM-2511E and see the heart beat pulse in the PC monitor.
  • It will display with the sine wave pulse as the correct wave form. 
Output:

  
                                       Figure3:output
 
Read more articles on Arduino:

Up Next
    Ebook Download
    View all
    Learn
    View all