Pocket Size Heartbeat and Spo2 Measuring Device With Bluetooth Communication
by itsarduinoboy in Circuits > Arduino
286 Views, 2 Favorites, 0 Comments
Pocket Size Heartbeat and Spo2 Measuring Device With Bluetooth Communication
Hello Maker ! My name is Rohan I hope you are well and I am here to share a very interesting project which is Pocket Size Heartbeat and Spo2 Measuring Device, So this device measures the Heartbeat and Spo2 level and send it to our smartphone
Story Why I Made This Project
So the story behind the making of this project is that, few months ago I went to a village to meet my uncle and there I saw there were no basic medical facility, So thinking this only I decided to make this project and finally it's here so now lets see how to make this so lets get started
Supplies
List of Things Required For Making This Project Are:-
- Arduino Nano
- Jumper Wires
- MAX30100 Sensor
- Breadboard
- HC-05 Bluetooth Module
- Cardboard (if you want to cover your project you can use this or 3d printer) *Optional
List of Tools:-
- Soldering Iron (if you want to solder all the components so in this case you can use it else leave it) *Optional
- Hot Glue Gun (for joining the
- Cutter
Doing the Connection
So after gathering all the components all you need is to do connection so lets start one by one
MAX30100 To Arduino Nano
- SCL To A5
- SDA To A4
- GND To GND
- VCC To VIN
HC-05 Bluetooth Module To Arduino Nano
- RX To TX
- TX To RX
- GND To GND
- VCC To 5V
Li-ion Battery To TP4056 Charging Module
- +ve To B+
- -ve To B-
Now For Giving Power Supply To Arduino Nano Connect
- OUT+ of TP4056 To 5V of Arduino Nano
- OUT- of TP4056 To GND of Arduino Nano
that's all about the connection you can also download this connection as well lets move towards the coding part
Coding
So time has came to see the code so lets start
So you can download the code but before that let me explain the code to you
#include <Wire.h> //Calling Wire Library
#include "MAX30100_PulseOximeter.h"// Calling MAX30100 SPO2 Heartbeat Sensor
#define REPORTING_PERIOD_MS 1000//delay for data to be print
PulseOximeter pox;
uint32_t tsLastReport = 0;
void onBeatDetected()
{
Serial.println("Beat!");//when there is any beat then it will print beat
}
void setup()
{
Serial.begin(9600);//calling serial monitor with 9600 baud rate
Serial.print("Initializing pulse oximeter..");
// Initialize the PulseOximeter instance
// Failures are generally due to an improper I2C wiring, missing power supply
// or wrong target chip
if (!pox.begin()) {
Serial.println("FAILED");
for(;;);
} else {
Serial.println("SUCCESS");
}
pox.setIRLedCurrent(MAX30100_LED_CURR_7_6MA);
// Register a callback for the beat detection
pox.setOnBeatDetectedCallback(onBeatDetected);
}
void loop()
{
// Make sure to call update as fast as possible
pox.update();
if (millis() - tsLastReport > REPORTING_PERIOD_MS) {
Serial.print("Heart rate:");
Serial.print(pox.getHeartRate());
Serial.print("bpm / SpO2:");
Serial.print(pox.getSpO2());
Serial.println("%");
tsLastReport = millis();
}
}
So yup that's the code now we will see the app part
Configuring the App
Download the app from the given link:- https://drive.google.com/file/d/1wM2Jn4hXfHfN7DAOpZo9VqnLtyDlrjGd/view?usp=sharing
After downloading the app open it and follow the steps
- Before moving further make sure you have connected the HC-05 Bluetooth Module with your Smartphone
- Now open the app and click on Select your HeartMate
- Now select HC-05 and wait for few seconds
- Now you will see that you data is getting printed on the screen
- And If you click on "SPEAK OUT MY BPM AND SPO2" then it will call the data
So That's all keep making keep innovating