Introduction: Pulse Sensor With Bluetooth and Arduino

Picture of Pulse Sensor With Bluetooth and Arduino

This projects aims to use the pulse sensor (which is easily available now) with arduino uno and Bluetooth HC-05 module, The pulse sensor is placed on the finger and it measures the heart rate and then sends the heart rate to android mobile via bluetooth device, There is no special Android app is required, any bluetooth terminal app will work perfectly. This project can be used to develop Wearable for mobiles or wrist watches.

Step 1:

Picture of

A standard pulse sensor is used, i bought one from china and one diagram showing its pin configuration.

Step 2: HC-05 Bluetooth

Picture of HC-05 Bluetooth

An HC-05 Bluetooth module is used, since this modules gives and option of both master and slave. we can send data from android cell to arduino and from arduino to android

Step 3:

Picture of

Bluetooth terminal app is used to communicate between android and arduino

Step 4:

Picture of

Android mobile and Serial Monitor screen showing output of the sensor.

Attached Video of the project.

Step 5:

Attached code

open PulseSensor_wt_BT.ino

all the pin connections are explained in the code

Comments

udana (author)2017-07-08

Sir how to read data from arduino to via Bluetooth with android studio.(ex.temp valve )

your help much appreciated sir

SumanB20 (author)2017-01-30

can u please provide a pin diagram for connection

gwapz123456 (author)2017-01-05

how can i fix this error

Arduino: 1.6.13 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 5,718 bytes (17%) of program storage space. Maximum is 32,256 bytes.

Global variables use 680 bytes (33%) of dynamic memory, leaving 1,368 bytes for local variables. Maximum is 2,048 bytes.

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x2e

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x2e

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#up... for suggestions.

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

please. thanks you!

KhusnulA (author)2016-12-25

how to make a program to combine all items (pulse sensors, arduino and bluetooth) i'am confuse with them

RajeevN6 (author)2016-11-22

Hi.

Thanks a lot for the project. I want to compare two pulse amplitudes from carotid arteries using two pulse sensors. Will i need additional comparator hardware or can i do it with software alone?

Thank you.

zb-jalali (author)2016-10-30

Hi.
First of all thanks for the project, it's very useful. I have a question. my project is like this but I have sim808 module instead HC-05 and this code doesn't work properly for bluetooth. I mean in serial monitor just heart beat is measuring and I can't give AT commands.Can you please help me? Thank you.

GuilhermeJ7 (author)2016-08-10

Hello, I`m interested in using this sensor in a project of mine, but I need to know if it is capable of measuring the pulses by the wrist. Could anyone verify it for me?

LukasK43 made it! (author)2016-07-03

help me sir, i confuse about this sensor. my sensor just get a view read bpm and then up to 200 bpm again :v

can you help me

KEM6 (author)2016-06-13

did have a way , for use the pulse sensor at wrist?

VânC7 (author)2016-06-10

i have problem with noise , please help me how can i fix it ? Thank you very much!

adilhussains (author)2016-04-19

sir i have a question i personally made a plus rate monitor android app is this hardware is compactable for any app

SaadAbd (author)adilhussains2016-05-14

yes it is possible you must read data from the bluetooth

adilhussains (author)SaadAbd2016-05-21

thanks sir

Yasvi (author)2016-05-12

cant understand what wrong am I doing? I only get an infinite string of random characters

SaadAbd (author)Yasvi2016-05-14

this may be the reason of different BAUD RATE

Yasvi (author)SaadAbd2016-05-14

I have used exactly the same code as yours.

mhmd7 (author)2016-04-24

hey mr saad , thanks for the project idea
what is the use of the led here ? is it suppose to blink when the sensor detect the heart beats ?

SaadAbd (author)mhmd72016-05-14

yes, in this code LED is working as a visual output for the heart beat, you can remove it or place any other circuit which you wish should work when beat happens

RockyJ7 (author)2016-04-19

Hello sir when try to upload the sketch it gets stucked at compiling sketch....pls reply??

SaadAbd (author)RockyJ72016-05-14

Can you please share the screenshot at what point the compiling get stuck ?

MauroP22 (author)2016-04-11

Hello,

First of all thanks for the project, it's very useful. I'm new to arduino and I'd like to know if it's possible to implement these changes to the project/code:

-Read the BPM for 15 secs then print the BPM into an LCD. (pulse sensor wired to the board and not to the HC-05)

-Send the BPM integer to another arduino connected through wires.

Once again, thanks

SaadAbd (author)MauroP222016-04-11

Hi Dear,

Yes all the mentioned changes are possible, you can remove the bluetooth part and u can use I2C connection among arduino and send the BPM from one arduino to another.

KXC (author)2016-03-21

It's so nice to see this arduino code. I can learn a lot from it.

However, do you have the android studio/eclipse code? I hope I can study it and try to recreate one. Can you please help me? Thank you.

SaadAbd (author)KXC2016-03-21

Thanks dear, i am trying to work on android coding aswell, but ritenow i dont have any expertise over it :) may be a simple tutorial will work from the internet.

KXC (author)SaadAbd2016-03-22

ah. it's ok. i saw that you made use of a bluetooth terminal instead of creating an app. my mistake. anyways. thanks for this tutorial. i'll integrate this in my code if it's ok to you

SaadAbd (author)KXC2016-03-22

yes yes go ahead, explore more options :) all yours

KXC (author)SaadAbd2016-03-27

Hello. I'm finished with my android apk this time around. Just wanted to ask how did you connect the pulse monitor towards the arduino board and the hc-05? Thank you very much

SaadAbd (author)KXC2016-03-30

Dear KXC, its good to see that you have done the apk part. as far as the connection of Bluetooth and heart beat sensor is concern, they are explained in the instructables, and the arduino code is also attached for the further understanding.

KXC (author)SaadAbd2016-04-09

Hello Sir,

I'm happy to say I did it on the Arduino board. Right now, I'm trying to implement it on the mini version? Are there things I need to change on the code or not? Thank you very much for your time :)

terminator15 (author)2016-04-06

Hello sir . After connecting Bluetooth HC-05 module with arduino the heart rate values started to increase to some abnormal levels both in the serial monitor and Bluetooth terminal...?? What could have gone wrong..? please reply

SaadAbd (author)terminator152016-04-06

Dear, thanks for the comment, i hope you are placing the finger correctly and following general protocols.


1)cover the sensor from the backside
2)place the tip of finger on the sensor.
3) place your arm on a table below the heart level and make sure your hand is in resting position
4) feel the blood flow in your finger tip and observe the values repetition.

i hope this will solve your problem :)

terminator15 (author)2016-04-06

Hello sir . After connecting Bluetooth HC-05 module with arduino the heart rate values started to increase to some abnormal levels both in the serial monitor and Bluetooth terminal...?? What could have gone wrong..? please reply

SaadAbd (author)terminator152016-04-06

Dear, thanks for the comment, i hope you are placing the finger correctly and following general protocols.


1)cover the sensor from the backside
2)place the tip of finger on the sensor.
3) place your arm on a table below the heart level and make sure your hand is in resting position
4) feel the blood flow in your finger tip and observe the values repetition.

i hope this will solve your problem :)

Mark AndyS (author)2016-04-02

Hello sir again. Where did you create the apk file? I really interested to make another version by reading body temperature. I hope you will share.

SaadAbd (author)Mark AndyS2016-04-02

Hi Mark, Thanks for the comment, actually i have not created any APK, i have used the apk/application available on google play store. also if you want to show the temperature you don`t need to change the apk file, you can incorporate the temperature monitoring in an arduino code and the same bluetooth terminal wil show both outputs.

Mark AndyS (author)SaadAbd2016-04-02

I should add a code in pulsesensor arduino? or i will create a new tab?

Mark AndyS (author)2016-03-29

hello sir can u share me the apk file for free im doing this for my project in school. Im doing this alone i hope you will help me.

Mark AndyS (author)SaadAbd2016-03-30

I already did all but their is something wrong with heartbeat. I already connect my samsung but their no showing heartbeat reading.

SaadAbd (author)Mark AndyS2016-03-30

Dear Mark, you can start the diagnostic process.

1) first check you serial monitor, it should be showing all the results as shown in the images. (if not then please check the code)

2) if serial monitor is showing all the values then connect your mobile phone with bluetooth (use add bluetooth device option from mobile)

3) after connected with Bluetooth, open the bluetooth terminal app and from menu select the same bluetooth device.

4) if you are able to see the results on the mobile app then all working perfectly (if not then please try swapping the Tx and RX pins of bluetooth which are connected with arduino)

hope this will help you.

Mark AndyS (author)SaadAbd2016-03-31

Thank you so much. Its working now by swapping tx and rx pins.

BüşraA1 (author)2016-03-21

where is android apk ?

SaadAbd (author)BüşraA12016-03-22

Thanx Busra for the query, i have already guided you related to the android app, i hope your project is working perfectly now

RachelG40 (author)2016-03-15

I am having a problem with the code working to the pulse sensor having accurate readings.

SaadAbd (author)RachelG402016-03-16

Dear Rachel, thanks for the comment, i hope you are placing the finger correctly and following general protocols.

1)cover the sensor from the backside
2)place the tip of finger on the sensor.
3) place your arm on a table below the heart level and make sure your hand is in resting position
4) feel the blood flow in your finger tip and observe the values repetition.

i hope this will solve your problem :)

hatim48 made it! (author)2016-01-10

Sir, i already copy paste the code that your give in the comment below. but there are problem like in the picture. can you help me to make your project ?

thanks Sir, or maybe i can get your contact information. because i'm seriously want to made this project

SaadAbd (author)hatim482016-01-10

Dear, ur screen shot show that u havent opened the file correctly, you dont need to copy and paste the code,..

1) download the file

2) EXTRACT ALL THE FILES IN ONE FOLDER

3) then OPEN the file "pulsesensor_wt_BT"

hatim48 made it! (author)2016-01-10

Sir, i already copy paste the code that your give in the comment below. but there are problem like in the picture. can you help me to make your project ?

thanks Sir, or maybe i can get your contact information. because i'm seriously want to made this project

NehaB5 (author)2016-01-02

Hey thanku it worked for me

SaadAbd (author)NehaB52016-01-03

You welcome :)