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.
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
- void setup()
- {
- Serial.begin(115200);
- }
-
- void loop()
- {
- int sensorValue = analogRead(A0);
- Serial.println(sensorValue);
- delay_x(5);
- }
-
- void delay_x(uint32_t millis_delay)
- {
- uint16_t micros_now = (uint16_t)micros();
-
- while (millis_delay > 0)
- {
- if (((uint16_t)micros() - micros_now) >= 1000)
- {
- millis_delay--;
- micros_now += 1000;
- }
- }
- }
-
- void setup()
- {
- Serial.begin(115200);
- }
-
- void loop()
- {
- int sensorValue = analogRead(A0);
- Serial.println(sensorValue);
- delay_x(5);
- }
-
- void delay_x(uint32_t millis_delay)
- {
- uint16_t micros_now = (uint16_t)micros();
-
- while (millis_delay > 0)
- {
- if (((uint16_t)micros() - micros_now) >= 1000)
- {
- millis_delay--;
- micros_now += 1000;
- }
- }
- }
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.
Read more articles on Arduino: