Skip to content

In this project, we will create BPM (Beats Per Minute) Calculator & Counter using Heart Pulse Sensor, 0.96 OLED Display with 128x64 resolution & Arduino UNO Board.

License

Notifications You must be signed in to change notification settings

nsswifter/Heart-Pulse-Detector-Using-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heart Pulse Detector Project (BPM Counter) ❤️

In this project, we will create BPM (Beats Per Minute) Calculator & Counter using Heart Pulse Sensor, 0.96 OLED Display with 128x64 resolution & Arduino UNO Board.

Components that we need

  • Arduino UNO Board:

Arduino is an open-source electronics platform based on easy-to-use hardware and software that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. Arduino boards are able to read inputs for example from light on a sensor, a finger on a button, or an Email. Then you can tell your board what to do by sending a set of instructions to the microcontroller on the board. Then the desired output is produced, for example, it can display something through monitors, activating a motor, turning on an LED, or even publishing something online.

  • Heart Pulse Sensor:

An alternate name for this sensor is a heartbeat sensor or heart rate sensor. It's a plug-and-play sensor mainly designed for Arduino boards. This sensor uses an easy optical pulse sensor along with amplification & cancellation of noise to make a circuit. By using this circuit, we can get fast and reliable heartbeat readings. This circuit can be operated with 4mA current and 5V voltage to use in mobile applications.

  • 0.96 OLED Display:

2.44 cm (0.96 inch) OLED (Organic Light-Emitting Diode) Display Module is a precise small, White OLED module that can be interfaced with any microcontroller using SPI protocol. It has a resolution of 128x64. The package includes a display board, display, and 4-pin male header pre-soldered to the board. This type of display has a self-light-emitting technology composed of a thin, multi-layered organic film placed between an anode and cathode. In contrast to LCD technology, OLED does not require a backlight.

The internal structure of Heart Pulse Sensor

This sensor is created mainly using two components. That is, the ADPS-9008 light photosensor and the one green LED. Next, on the backside of this sensor, we can see additional components with the LED. Among these, we can see resistors, capacitors, op-amp, and one reverse protection diode.

How heart pulse sensor work?

When your finger is close to the sensor, the green light on the sensor falls on your fingertip, and the light is reflected also towards the sensor. Then, this green light is absorbed into the hemoglobin of the blood. Also, as the amount of blood in our body is constantly pumping, the amount of hemoglobin in the blood also increases or decreases. Therefore, the amount of reflected light also increases or decreases. This difference is captured by the photosensor. (This is known as optical heart rate sensory theory) Finally, we can get this signal as an analog value.

Pulse Sensor & OLED Display Connections:

PULSE SENSOR PIN ARDUINO PIN
VCC 5V
GND GND
SIGNAL PIN A0
OLED DISPLAY ARDUINO PIN
VCC 5V
GND GND
SDA A4
SCL A5

Programing Board with Arduino IDE

For Programming your Board you need Arduino IDE software.

Playing setup video

We want a video to be displayed when the board is launched. In general, Arduino doesn't allow photo and video playback in the usual way. First, We need to convert the photos to Arduino format using image to cpp website (This website creates bitmap of photos). Then we can convert the photos into video by playing them fast and without delay.

Structure of Arduino projects codes

We can divide the program codes into three parts:

  1. Definition of libraries, variables, constants, and bitmaps.

  1. Setup function that works only once when the board is connected to the voltage source.

  1. Loop function that is repeated like a loop until the board is connected to the voltage source.

Uploading Project on Board

  • Open PulseDetectorProject.ino file and Compile it using Arduino IDE (Hit verify button).
  • Connect Arduino board to device.
  • Select board on IDE.
  • Hit upload button.

Congratulation. Now you have a Heart Pulse Detector (BPM Counter). 🥳

Hope You Enjoy...

Contributors

Feel free to share your ideas or any other problems. Pull requests are welcomed.

License

Heart Pulse Detector Using Arduino is released under an MIT license. See LICENSE for more information.

About

In this project, we will create BPM (Beats Per Minute) Calculator & Counter using Heart Pulse Sensor, 0.96 OLED Display with 128x64 resolution & Arduino UNO Board.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages