Smart Health Monitoring Device | PCB | Pulse Oximeter | ESP8266 | Blynk

Today we will create a “Smart Health Monitoring Device” in this tutorial. For this, a PCB will also be designed so that we can use the device well. You will get all that in this tutorial for PCB design and how to get PCB easily. Our Smart Health Monitoring Device will measure SpO2 (percentage of oxygen in the blood) and heart rate in BPM (Beat Per Minute). This device work just like a wearable device. You all must be using very wearable devices and many smart watches are available in the today market. This device  useful for individuals or athletes to monitor their heart rate and blood oxygen levels during a workout. Here interested part is that you can connect this device to an Android app Blynk that will record and regularly update the data for both SPO2 & BPM on the internet. So you need develop any android app. You can easily view your reports and results in your mobile easily with help of Blynk. So please read full tutorial, I hope you will really like this  DIY project.

This project can be very useful for any individual as well as any patient. Because the oximeters available in the market are very expensive. And you can not even see the data of cheap oximeter from any app. So let’s get started to make MAX30100 Pulse Oximeter with ESP8266.

MAX30100 Pulse Oximeter

MAX30100 Pulse Oximeter is one of the most popular pulse oximeter sensor. Features of this sensors are avilable given below :

  1. MAX30100 Pulse Oximeter consumes very low power (operates from 1.8V and 3.3V)
  2. Ultra-Low Shutdown Current (0.7µA, typ)
  3. Fast Data Output Capability

How MAX30100 Pulse Oximeter works

You should know that we need infrared light to know the pulse rate. In this sensor has two LEDs, one emitting red light, another emitting infrared light. Both the red light and infrared light is used to measure oxygen levels in the blood.

When the heart pumps blood, there is an increase in oxygenated blood as a result of having more blood. As the heart relaxes, the volume of oxygenated blood also decreases. By knowing the time between the increase and decrease of oxygenated blood, the pulse rate is determined.

It turns out, oxygenated blood absorbs more infrared light and passes more red light while deoxygenated blood absorbs red light and passes more infrared light. This is the main function of the MAX30100: it reads the absorption levels for both light sources and stored them in a buffer that can be read via I2C.

For a better understanding, Please read this article https://www.dnatechindia.com/basic-working-pulse-oximeter-sensor.html

How to interface MAX30100 Pulse Oximeter with NodeMCU ESP8266

Here we will interface MAX30100 Pulse Oximeter with NodeMCU ESP8266 and I2C 0.96″ OLED Display. Both the MAX30100 & OLED Display has common I2C Pins. So connect their SDA pins to D2 & SCL pins to D1 of NodeMCU ESP8266 Board. The power supply required by OLED Display & NodeMCU is 3.3V. So connect their VCC terminal to 3.3V of NodeMCU. Please follow given below diagram.

MAX30100-NodeMCU-Connection

PCB Designing for IoT Based Pulse Oximeter

This is very interesting part. Here the PCB for IoT Benabled Pulse Oximeter device has been designed in EasyEDA online PCB making tool. Many other tools available on Internet that you can use for your project. I am sharing two images of design.

 

The gerber file for the PCB is given below. You can download the gerber file and order the PCB online from PCBWay.

Download: Gerber File MAX301000 Pulse Oximeter ESP8266

How to get PCB? Don’t worry. Simply Visit PCBWay.com and upload gerber file and order the PCB. PCBWay is one of the most experienced PCB manufacturers in world. They offer very good quality PCB at reasonable price.

Why Buy Printed Circuit Board From PCBWay?

  • 24 hours production lead-time*
  • Team supported with over 90 professionals & technical
  • 99% on-Time Shipping with great support from DHL
  • Great quality approved by customers all over the world
  • Trusted Experience
  • A 24/7 non-stop production and assistance service
  • Low Minimums
  • Factory PCBs with most competitive advantages
  • A Chinese expert in Electronic Manufacturing Service (EMS)

pcbway

Whenever you get your PCB then you can solder all the necessary components as per circuit diagram and make the final product ready.

Setting up the Blynk App

Blynk is an application that runs over Android and IOS devices to control any IoT based application using Smartphones. It allows you to create your Graphical user interface for IoT application. Here we will set up the Blynk application to monitor BPM & SPO2 over Wi-Fi using NodeMCU ESP8266.

Recommended: https://iotbyhvm.ooo/blynk-tutorials-blynk-iot-platform-how-to-use-blynk/

You can get Blynk Application from Google Play store. After signup Create a project.

Now click on “New Project”. In the pop up set the parameters like Project name, Board and connection type as shown in the photo above. For this MAX30100 ESP8266 project select the device as NodeMCU and connection type as Wi-Fi. Then click on Create.

Now click on the “+” sign to add the widgets. We need to read the value of BPM & SpO2. So select a pair of widget named Value Display & Gauge.

After dragging the widgets, set their parameters as shown in the image above. Click on Value Display and set the pin to “V7” & “V8“. Similarly, in gauge settings, set the output pin to “V7” & “V8”.

After the successful creation of the Project, go back to setting and click on Send Email. You will get an Authenticate ID on registered mail. Save the Authenticate ID for future reference.

Source Code/Program

Once the hardware setup is done, now we need to flash the code to the NodeMCU ESP8266-12E Board. You need some libraries. So please download and add libraries in Arduino IDE.

The library files can be downloaded from here:
1. Arduino MAX30100 Library
2. OkaOLED Library
3. Adafruit GFX Library
4. BlynkSimpleEsp8266.h Library

Output

Once the code is uploaded, you can open serial monitor and see the following as BPM & SpO2 values are displayed after NodeMCU connects to wifi.

On the Blynk App, the BPM & SpO2 value is uploaded after a second and you can see a change in gauge and display parameters.


MAX30100 Not Working Troubleshooting

If your MAX30100 Module is not working, then it might not work as it has a serious design problem. The MAX30100 IC uses 1.8V for VDD and this particular module uses two regulators to achieve this voltage. Nothing wrong with that. However, if you look closely, the SCL and SDA pins are pulled-up via the 4.7k ohm resistors to 1.8V! This means it won’t work well with microcontrollers with higher logic levels.

Please visit this for solution : https://github.com/oxullo/Arduino-MAX30100/issues/51

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog.

Harshvardhan Mishra

Hi, I'm Harshvardhan Mishra. I am a tech blogger and an IoT Enthusiast. I am eager to learn and explore tech related stuff! also, I wanted to deliver you the same as much as the simpler way with more informative content. I generally appreciate learning by doing, rather than only learning. If you want to help support me on my journey, consider sharing my articles, or Buy me a Coffee! Thank you for reading my blog! Happy learning!

Leave a Reply