key: cord-0939627-xcgfomp8 authors: Ganesh, Kakumanu Vamsi Sree Sai; Jeyanth, S.P. Shibu; Bevi, A. Ruhan title: IOT based portable heart rate and SpO2 pulse oximeter date: 2022-04-21 journal: HardwareX DOI: 10.1016/j.ohx.2022.e00309 sha: 905007b3ed9010e490b73743f6daa139e6b00971 doc_id: 939627 cord_uid: xcgfomp8 Ever since the COVID-19 pandemic, the necessity of new,innovative medical devices to analyse and monitor the situation has become profound. With this in mind, we have developed an IOT based portable and cost-efficient heart rate and SpO2/level sensor device with efficient performance. The proposed system is equipped with an onboard OLED with simple internet connectivity, which publishes data on the OLED and to a HTML webpage. The salient features include its portability, user compatibility and is unique in its way of transmitting collected data online, making it achieve better results than the current available solutions in various ways. The system has on board a MAX30100 sensor(Pulse Oximeter sensor) and along with the IOT based microcontroller(WeMos D1 mini) enables the facility to monitor the real time health data of patients in real-time through a HTML page. Open source license GNU-General-Public-Licence(GPL)-3.0 Hardware cost $17.958 Medical data such as Sp02, heart rate and blood pressure are very crucial in judging the status of an individual or a patient in a medical context. They provide very vital information regarding their current state of their body, and thus easing this process of acquiring such data with devices has substantial benefits[1] [2] . Although several pulse oximeter designs are available, our design, due to its IOT capabilities, makes the entire data acquiring process very user-friendly and convenient. This design can be used anywhere by plugging into a USB adapter/port with a 5V electrical supply [3] [4] [5] . Anyone with an active internet connection within the local area network of the pulse oximeter can view the patient's vital readings. The device is also very user-friendly, as the vitals are acquired when the patient places his/her finger on the onboard sensor. A time duration of just 15 seconds or less is computationally enough to acquire the heart rate of the individual. The pulse oximeter is also equipped with an onboard OLED 0.96 inch 128×64 display [6] , enabling the system to have an 'on the go visualization' capability [3] . The proposed system is designed to be a power efficient device with the use of the MAX30100 pulse oximeter sensor. The proposed device uses an ESP8266 based wemos D1 mini Wi-Fi microcontroller, which helps in hosting a HTML page. Therefore, anyone connected within the Local Area Network can access the information from the pulse oximeter through this HTML page. It is this feature, which grants this device tremendous IOT capabilities within a low price range. The project's objective is to deliver a simple and easy to interact IOT based pulse oximeter/heart monitoring system to everyone. The Fig.1a ) The organic light-emitting diode (OLED) display used in this project is the SSD1306 model which is a mono colour type, resolution of 128×64 pixels with a display size of 0.96 inch. The speciality of this OLED display compared to LCD is that backlight isn't required for these displays, which ultimately improves the viewing contrast in low-light environments.These OLED displays are very power efficient compared to other displays. This OLED is interfaced with D1 mini, with I2C protocol [6] . The chip has 7 pins out of which only 4 pins are used to communicate(VCC,GND,SDA,SCL). As the OLED uses only 4 pins rather than the traditional LCDs which have to interface with 12 pin connections with the microcontroller. As it uses 5V input voltage, it is easy to interface with the default output pins of most microcontrollers.(see Fig.1b) The MAX30100 is a kind of sensor where pulse-oximetery as well as heart rate monitoring sensor is embedded to it. This module consists of two LEDs, optics which is well optimized, an analog signal processing unit(low noise) in order to detect the heart rate and SpO2 signals [14] [15] . The operating voltage of this sensor is 1.8V to 5V. An inbuilt voltage regulator is embedded for any high voltage noises. A photo sensor is also integrated in it. The brightness of the LED, photo sensor detection ranges and the sample rate can be controlled programmatically.This sensor is capable of performing at high sample rate with a high data output(see Fig.1c ) This pulse oximeter module is also interfaced using I2C protocol which uses only 4 pins to communicate(VCC,GND,SDA,SCL). Additionally, the SDA, SCL are on the same wires as OLED interfacing pins. Furthermore, several machine learning algorithms can be used with this module and predict threshold of health attacks and other classification problems related to system vitals [16] . The key electronic modules of the system a)D1 mini wemos microcontroller, b)128×64 OLED display, c)MAX30100 pulse oximeter module. The total hardware circuitry is assembled and soldered on a PCB which is placed in a 3D printed PLA case. The key features of this device includes: • IOT based health monitoring system • Simple to assemble and simple to use. • Cost-efficient Before we go ahead with the prototype stage, it is essential to interface each component individually. In this current section, the practical functionality of each of the component will be represented using electronic circuit diagrams. Finally, the completed system design is provided, all the design files are described in Table 2 which describes all the components required to build this project. Table 3 gives us insights on the individual component cost along with the total cost to build this project, which will represent how the complete device operates as one. [22] . Since the microcontroller uses I2C, only 2 pins are required [13] to send and receive the data. The pulse oximeter module(MAX30100) (Fig. 3b.) is the component that measures the percentage of oxygen in the bloodstream in real-time [22] [23] . The I2C protocol is also used for communicating, which again leads to its interaction with the ESP8266 using only 2 pins [24] . The operating voltage of the module is 5V [14] . (a) (b) Fig.3 . D1 mini microcontroller and MAX30100 interfacing a)schematic diagram of MAX30100 interfacing with ESP8266 and b)Real-time connections of D1 mini wemos and MAX30100 pulse oximeter. The wemos D1 mini microcontroller is compatible with Arduino libraries [25] [26] . Therefore, the task of hosting a HTML page locally is easy. We will be using a WiFi Client as well as the ESP8266 web server libraries to host a HTML page, which will display all our sensor data from the MAX30100(heart rate, Sp02 vitals) on the hosted IP address. [23] [26] [27] (Fig.4.) Fig.4 . ESP8266 based D1 mini hosting a HTML page. After interfacing all the different sensor modules with the ESP8266 D1 mini, the device is enclosed within a 3D printed box of required dimensions. This box acts as the enclosure for all the PCB and sensors present in the device. The device can now be used anywhere when plugged in with a 5V USB port.Once the device has been successfully developed into an assembled prototype in its final form (Fig.5.) , it is necessary to test the device. (Fig.6 .) provides us with the simplified version of the block diagram of the proposed system. In order to test the device's accuracy and performance comparatively to the other commercially available options, the device was used to read the heart rate and Sp02 levels of multiple users. These readings were then compared with the readings taken from a commercially available device, and the readings were found to be very similar and accurate. As a result of this improved pulse oximeter system which is capable of analysing the heart rate and Sp02 levels of a patient within seconds [16] , it is easier to host the acquired data into an HTML page in real-time [29] [30] [31] . Therefore, miscalculation due to physical error which causes a mismatch of the readings can be avoided. Due to the cost-efficient nature of the electronics used and the simplicity of the microcontroller code, this system can be reproduced/recreated by anyone with ease [15] . First place your finger upon the sensor. The device takes around 15 seconds to calculate and display your average BPM, the real time heart rate and Sp02 levels on the onboard OLED in real-time with no delay. Simultaneously, these readings are sent to the HTML web server where they can be assessed, provided, you are connected to the same local network as the device [19] [21] [22] . In order to set up the device, It is necessary to connect it with your router by providing the SSID and password of the router. With the obtained IP address of the local HTML web server, when entered into any device(such as a smartphone, laptop, etc) browser's URL [23] [27], we would be able to access the pulse oximeter's readings in the configured HTML web server. Our design is not one only minimalist in design, but as well as in circuitry; keeping the traditional commercially available pulse oximeter in mind, which doesn't have the features of viewing the device's data on your smart device or any device connected to the internet. This IOT based Pulseoximeter performs smarter than the already existing solutions. Keeping time complexity in mind, this device displays the real-time data both on the OLED display and on the hosted webpage. Anyone who wants to monitor the user's heart rate and Sp02 levels can easily access the data just by entering the IP address in any smart device which is connected to the local area network of the router. Below, the picture (Fig.9a.) gives an insight on the proposed system which displays the heart rate on a full 0.96 inch display size when we long press button 1, the figure (Fig 9b.) shows information on the time the device is active by long pressing button 2. (Fig 9c.) shows how the full pulse oximeter setup is, while measuring the user's heart rate and SpO2. (a) (b) (c) Fig.9 . a)Maximized view of Heart rate reading b)Display of device active time c)The working state of the proposed system To conclude this paper, the cost-efficient pulse oximeter which hosts real-time SpO2 and Heart rate vitals into an HTML page is proposed and developed. The cost-efficient pulse oximeter could be recreated with ease with the provided technical and theoretical resources as mentioned above. As the microcontroller is ESP 8266 based, the device is reprogrammable and therefore upgradability of features is possible. Some upgrade includes, features such as a real-time clock or a timer which could be introduced for a schedule checkup. This is the salient and unique feature of the paper. Pulse oximetry in family practice: indications and clinical observations in patients with COPD National Health Service (UK) Center for Evidence-based Purchasing. Project initiation document: Pulse oximeters Design of Smart Pulse Oximeter using ATMEGA 328 Microcontroller A Study of LoRa Performance in Monitoring of Patient's SPO2 and Heart Rate based IoT Design and Development of Pulse Oximetry for Continuous Monitoring of Pregnant Ladies using Arduino I2C interface for LCD Discription : Specification : Board Layout: I2C Address Setup Performance Evaluation of ESP8266 for Wireless Nurse Call System ESP8266 Microcontroller Application in Wireless Synchronization Tasks Real time standalone data acquisition system for environmental data Design and Research of Infrared Remote Control Based on ESP8266 A New Approach for Modern Homes Controlling and Monitoring Using ESP8266 and ARM Controller Communication Modes to Control an Unmanned Vehicle Using ESP8266 The Heart Attack Detection by ESP8266 Data Communication at a Real Time to Avoid Sudden Death IoT Based Pulse Oximeter Using ESP8266 An affordable displacement measurement tool for structural health monitoring Pulse Oximeter Design to Predict COVID-19 Possibilities on Patient's Health using Machine Learning Internet of Things and Nodemcu A review of use of Nodemcu ESP8266 Design and Implementation of Real-Time Health Vital Sign Monitoring Device with Wireless Sensor-based on Arduino Mega Web Based Smart Meter for General Purpose Smart Home Systems with ESP8266 Garbage Level Monitoring Device Using Internet of Things with ESP8266 Garbage Level Monitoring Device Using Internet of Things with ESP8266 IoT based smart greenhouse Recent Trends in Electronics Information & Communication Technology (RTEICT) 2017 2nd IEEE International Conference on IoT Security Framework for Smart Water System A Step Towards Smart Ration Card System Using RFID & IoT Developing a Monitoring System for Tripping Fault Detection via IoT ESP 8266 for Control and Monitoring in Smart Home Application Implementation of IoT with ESP8266 Part II -Home Automation E-Health Tracker: An IoT-Cloud Based Health Monitoring System Smart Bike Monitoring System for Cyclist via Internet of Things (IoT) Patient Monitoring System using IOT: A Proposal IoT based diagnosing of Heart rate and Sp/02 saturation level INTRODUCTION This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors. The authors declare that they have no known competing fifinancial interests or personal relationships that could have appeared to inflfluence the work reported in this paper.