Design Simulation and Implementation of A Digital Pulse Oxygen Saturation Measurement System Using The Arduino Microcontroller
Design Simulation and Implementation of A Digital Pulse Oxygen Saturation Measurement System Using The Arduino Microcontroller
net/publication/349005931
CITATIONS READS
0 3,891
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Muhibul Haque Bhuyan on 03 February 2021.
International Scholarly and Scientific Research & Innovation 15(2) 2021 105 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
In light of the above contexts, enormous endeavors have headset jack audio interface and verifies the system via a
been applied to facilitate the best healthcare services at an simulator for auto authentication of the sensor interface
affordable expense during the last few decades. With the rapid smartphones. The results of both oxygen saturation level and
advancements in engineering and technological fields, it has heartbeat rate matched remarkably based on simulation and
become feasible to design and develop more efficient, reliable, experiments by the designed oximeter over a wide range of
and affordable biomedical machines and equipment with new optical spectrum on various types of the 4th and 5th generations
additional but important features. This has also made these of the iPod Touch and iPhone devices. However, these
biomedical machines more user friendly. The prime objective iPhones or iPods are expensive devices and are not used by the
of this work is to propose an automated and low-cost oxygen mass people of a middle-income country like Bangladesh [12].
saturation measurement system to help and support the doctors Another research article intended to design an oximeter to
to monitor their patients' conditions. However, this machine is monitor human health parameters like oxygen saturation level
not still so cheap to the people of under-developed or in real-time. The authors tried to use the best method to
developing countries. Moreover, doctors and medical staff are achieve a good accuracy of their results for both heart rate and
not physically available to all required places throughout the SPO2 considering the reliability. They tested copious MCU-
country due to the pandemic situation. Therefore, it would be based ARM cortex 32-bit and different sensors and methods
supportive if it is possible to design and then implement a and then compared it with the results taken from the literature.
system for the peoples of these countries to monitor their However, they did not explain why this method is reliable and
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
oxygen saturation at an affordable cost from remote places. how reliable it is [13].
Biomedical engineers are trying to find a way to address these A solar-powered pulse oximeter is proposed in research
problems and find a suitable solution to the same. This will work to utilize solar energy for the device to increase the
certainly decrease their on-site visiting time. Moreover, the lifespan of the device, make it eco-friendly and cost-effective.
Arduino microcontroller is very cheap and readily available in Additionally, the device was interfaced with the Internet of
the market and requires fewer efforts for its programming to Things (IoT) technology to monitor and alert the data of the
automate the system. Also, these are used in various blood oxygen saturation level from any remote place and also
biomedical and other similar applications due to the to update the monitoring device in real-time. Hence, the doctor
compactness, portability, less power consumption, enhanced can keep track of and monitor the patient’s condition. The
battery life, high operating speed, etc. [7]-[10]. This Arduino device was designed with the MAX30102 model by using the
microcontroller with analog interfacing circuits, sensors, Eagle software [14]. However, this paper did not show any
electrodes, amplifiers, samplers, and filters can acquire the cost analysis. Due to the enhanced features, its cost must be
very weak signal from the chest and send it to the higher.
microcontroller's output port in an appropriate format. Then a Some other researchers evaluated the use of red and
set of programming instructions inside the microcontroller can infrared-reflective PPG to extract the pulse oximetry and
determine the heart rate of the patients being monitored. respiration data at eight anatomical locations of the human
Therefore, our objectives of this work are to- body at rest and during walking. They inferred that if the heart
i. Design a low-cost SpO2 measurement system rate and SpO2 data are measured at the lowest possible
ii. Use the microcontroller for faster signal processing and location of the human body’s skin, then the most accurate
several other computation tasks results may be obtained subject to the condition that there is an
iii. Simulate the system in the Proteus environment insignificant movement of the contact between the sensor and
iv. Analyze the oxygen saturation data the skin. They aimed to find an optimum anatomical location
on the human body from where a reflective PPG sensor would
II. LITERATURE REVIEW detect and record accurately the three most important
In the literature, several types of digital pulse measuring physiological parameters, such as heart rate, SpO2, and
devices were found. Most of the designs were based on respiration, at rest and during walking. Their sensor took
microcontroller. One such paper by Laghrouche et al. claimed roughly 1 cm2 of the body area [15].
the design of a low-cost microcontroller and medical sensor To measure the two important physiological parameters like
node based device for concurrent measurement of the arterial blood oxygen saturation and pulse measurement, two other
blood’s oxygen saturation level and heart rate that can be used researchers used a near-infrared portable tissue oximeter with
by the general people at home easily and safely. Though they a detection module based on STM32 microprocessor to obtain
claimed it is a low-cost device but the cost analysis and cost the oxygen saturation (SpO2) level from the human body non-
comparison are not shown. Measurement data were not invasively. Continuous-wave spectrometers provided the
compared with that of the standard device. It was also claimed semi-quantitative changes in oxygenated and deoxygenated
that the device is small-sized and lightweight, has the hemoglobin in small blood vessels like arterioles, capillaries,
capability of wireless signal transmission, standardized signal and venules. After obtaining the values, the portable device
processing, and data processing. However, this is not shown in can send the data to the smartphones of the coaches or doctors
detail in their paper [11]. who are at remote places via GPRS/WiFi/Zigbee networks.
Another paper described the implementation of an oxygen The values can be displayed as per the need of the users. The
meter that connects an oximeter to the smartphone through the signal produced due to the blood oxygen saturation data
International Scholarly and Scientific Research & Innovation 15(2) 2021 106 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
fluctuation is sensed by the detection module and is sent to the oxygen sensor, a Liquid Crystal Display (LCD) unit, and a DC
STM32 microprocessor to processes it by the expert decision- power supply unit. We would like to design the circuit in
making system to deliver accurate data to the coaches and Proteus and then implement the whole system and measure the
doctors. Their test results and measured data were found very pulse oxygen saturation level. MAX30100 Arduino library
accurate and stable [16]. function is used to convert the Analog to Digital Converter
Digital Signal Processing (DSP) based power electronics (ADC) value to get the oxygen saturation level in percentage.
systems are being designed and implemented [17]. Now, this The MAX30100 is an IC for pulse oximetry. It can monitor
technique was found to be applied in detecting important the heart-rate and pulse level. It comprises two LEDs and a
physiological information, like ECG signals to observe it in photodetector, and it blends the optimized optics and low-
the monitor to assist the physicians or cardiologists [18]. noise analog signal processing techniques to sense the signals
Besides, the DSP hardware-based system has been designed related to the pulse oxygen saturation level and heart-rate of
and implemented with memory, display system, and analog the human body. The MAX30100 IC can be operated from 1.8
interfacing circuit [19]. This type of system with DSP can V and 3.3 V power supplies; however, the maximum power
operate as stand-alone and to update the data in real-time supplies are 2 V and 5 V respectively for these two voltage
according to the onboard pre-program algorithm for ECG levels while it draws a current of 0.6 mA and 1.2 mA
analysis [20]. So, this processor can also be extended for respectively at both SpO2 and heart rate modes. Also, its
designing the pulse oximeter machine. But in several research power can be lowered using software with insignificant
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
articles, it has been found that the microcontroller-based backup current, allowing the power supply to continue linked
circuit can reduce the overall system costs in the case of to the circuit always [26].
several biomedical applications [21]-[25]. The DC power supply unit of 5 V supplies the required
current to the microcontroller, pulse oximetry sensor, and the
III. SYSTEM DESCRIPTION LCD unit that has 2 lines each having 16 characters. The
complete system linking the major units of the proposed
A. Block Diagram of the System
design is evident from the block diagram of Fig. 1.
The system contains an Arduino microcontroller, a pulse
Fig. 1 Block diagram of the digital oxygen saturation level measurement system
At first, the pulse oximetry sensor unit senses the signals the pulse oximetry data into and outside of the microcontroller
relevant to the oxygen saturation level of the human body respectively [25]. Arduino microcontroller is used to interpret
from the fingertips which is positioned flanked by the two and process the signal obtained at its input port from the
sensors, such as an optical transmitter (comprising two LEDs- sensor and then calculates the oxygen saturation level in
one is red and another is an infra-red LED) and an optical percentage (%) using the developed assembly language
detector (only one photodiode that can detect both the red and program supplied to it using the personal computer. Then it
infra-red spectrum of light). By controlling the pulse widths of sends the measured SpO2 level to the LCD unit to demonstrate
the LEDs and sample rate per second, SpO2 data are the measured value in an applicable layout as encoded in the
interpreted based on the ambient temperature data. microcontroller’s program. Since the sensor IC, MAX30100 is
Arduino Uno R3 microcontroller is employed here to have not available in Proteus, so, an equivalent hardware circuit is
low power consumption, higher efficiency, in-built ADC designed and used in the circuit of Fig. 2 [27].
facility, and USART mode communication capability. In-built The voltage regulator IC, LM7805 is used to design a
ADC can convert the Pulse Amplitude Modulated signal into a power supply unit of 5V along with 2 diodes, 2 capacitors, and
digital format. The USART mode communication can a step-down center-tap transformer. It takes supply from the
facilitate the serial data transmission to transmit and receive AC power line voltage of 220 V at 50 Hz and then rectifies it
International Scholarly and Scientific Research & Innovation 15(2) 2021 107 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
to the pulsating DC signal, which is then leveled to a pure 5 V calculating the appropriate values of them, the complete
DC by using two capacitors of 1 F and 470 F at the input circuit has been drawn and simulated in Proteus by applying
and output terminals respectively. The capacitors eradicate the required signals. It is observed that the display unit can
harmonics and other noise interferences to the system [28]. show the SpO2 level in % as demonstrated in Fig. 2.
After selecting the components of each sub-block and
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
Fig. 2 Complete circuit diagram of the designed digital oxygen saturation level measurement system in Proteus
International Scholarly and Scientific Research & Innovation 15(2) 2021 108 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
percentage and then displays it as per the appropriate format at designated display unit (here it is LCD screen), the software
the selected display device. has been developed properly. The tasks of this software are to
It may be mentioned here that to program a microcontroller, process the data to display it in the appropriate format in
an integrated software development platform is needed. The percentage. The output ports are properly initialized to send
flow chart of the developed assembly language program is the data to the LCD screen’s input ports connected to the
depicted in Fig. 5. This program reads the pulse oxygen sensor output ports of the microcontroller as shown in Figs. 1 and 2.
signal from its output terminal which is connected to the serial Whenever the output port gets the available data at any instant
input pin of the microcontroller by scanning its serial port of time, the LCD screen displays the oxygen saturation value
continuously. The clock signals of the sensor and Arduino are in percentage immediately.
also connected to synchronize the data between the two units.
Thus the digital data are transferred to the microcontroller’s IV. RESULTS AND DISCUSSIONS
memory, from where it is processed inside the microcontroller To obtain the experimental data of pulse oxygen saturation
according to the instruction sets of the assembly program, rate, the complete system developed in the Proteus was
convert into the appropriate format in percentage, and finally implemented using the various hardware components. The
is sent to the output port of the microcontroller to display the implemented system in a breadboard is shown in Fig. 6. The
measured pulse oxygen saturation level data in the text format required power supply is 5 V (DC). This output is obtained at
on the LCD screen of the system. the LCD unit of the system.
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
Start
N Conversion
completed?
Sampling and
digitizing the data
N Conversion
completed?
N Switch pressed Y
Stop
for new data?
Fig. 7 Measured data by the digital oxygen saturation meter
Fig. 5 Flow chart of the microcontroller program of the designed The pulse oxygen saturation level is measured for 16 people
digital oxygen measuring device of different ages by using our designed oximeter and a
standard oximeter purchased from the market at the same
To display the pulse oxygen saturation level at the time. The data are presented in Table I for different aged
International Scholarly and Scientific Research & Innovation 15(2) 2021 109 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
persons. The percentages of error between the data measured simple and low-cost pulse oxygen saturation level measuring
by the two oximeters are calculated using (1): device using a microcontroller and a sensor. The system is
portable and no medical personnel is required to measure the
Percentage of error, 100% (1) oxygen level of a patient. The patient can easily measure and
monitor his oxygen level and sends the data for taking advice
where DDO indicates the data measured by the designed or treatment from any remote places without going to the
digital oximeter in percentage and DPO indicates the data doctors or physicians.
measured by the purchased pulse oximeter in percentage. TABLE II
COST ANALYSIS
Unit Price Total Price
Sl # Name Quantity
(US$) (US$)
1 MAX30100 Finger Oximeter 2 7.60 15.20
Heart Rate Module
Model # SEN-130100
2 Arduino Mega R3 2560 with 1 7.60 7.60
Cable Cost
Model # 0ARD2560
3 16×2 LCD Display 1 1.87 1.87
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
International Scholarly and Scientific Research & Innovation 15(2) 2021 110 ISNI:0000000091950263
World Academy of Science, Engineering and Technology
International Journal of Biomedical and Biological Engineering
Vol:15, No:2, 2021
and pulse oximetry for predicting amoxicillin treatment failure in Measurement System using Arduino Microcontroller in Proteus,”
children with severe pneumonia,” Pediatrics, e1822–e1830, 118, 2006. International Journal of Biomedical and Biological Engineering, vol. 14,
[9] S. R. Majumdar, D. T. Eurich, J.-M. Gamble, A. Senthilselvan, T. J. no. 10, 2020, e-ISSN: 1307-6892, World Academy of Science,
Marrie, “Oxygen saturations less than 92% are associated with major Engineering and Technology, pp. 350-357.
adverse events in outpatients with pneumonia: A population-based [28] A. Malvino and D. J. Bates, “Electronic Principles.” 7th edition, Tata
cohort study,” Clin. Infect. Dis. Off. Publ. Infect. Dis. Soc. Am., 52, McGraw-Hill Publishing Company Limited, New Delhi, India, 2011, pp.
325–331, 2011. 203-223.
[10] T. Duke, A. J. Blaschke, S. Sialis, J. L. Bonkowsky, “Hypoxaemia in
acute respiratory and non-respiratory illnesses in neonates and children
in a developing country,” Arch. Dis. Child., 86, 108–112, 2002.
[11] M. Laghrouche , S. Haddab, S. Lotmani, K. Mekdoud and S. Ameur, Muhibul H. Bhuyan (MIEEE’07–) became a Member
“Low-Cost Embedded Oximeter,” Measurement Science Review, (M) of WASET in 2005, born in Dhaka, Bangladesh on
Volume, vol. 10, no.5, pp. 176-179, 2010. 10.2478/v10048-010-0030-6. 25 July. He did his BSc, MSc, and PhD degrees in
[12] C. L. Petersen, T. P. Chen, J. M. Ansermino and G. A. Dumont, "Design Electrical and Electronic Engineering (EEE) from
and Evaluation of a Low-Cost Smartphone Pulse Oximeter," Sensors, Bangladesh University of Engineering and Technology
13, 16882-16893, 2013, doi:10.3390/s131216882. (BUET), Dhaka, Bangladesh in 1998, 2002, and 2011
[13] W. M. Abdullah, E. Ercelebi, “Development of Pulse Oximeter by using respectively.
32-Bit ARM Based Microcontroller,” Proceedings of 176th the IIER Currently, he is working as the Professor and
International Conference, Kuala Lumpur, Malaysia, 18-19 July 2018. Chairman of the Department of Electrical and Electronic Engineering of
[14] S. Deivasigamani, G. Narmadha, M. Ramasamy, H. Prasad and P. Nair, Southeast University, Tejgaon, Dhaka, Bangladesh. Previously, he worked at
“Design of Smart Pulse Oximeter using Atmega 328 Microcontroller,” the Green University of Bangladesh, Dhaka as a Professor and Chairman of
International Journal on Emerging Technologies, vol. 11, no. 3, ISSN: p- the EEE Department; Daffodil International University, Dhaka, Bangladesh as
Open Science Index, Biomedical and Biological Engineering Vol:15, No:2, 2021 waset.org/Publication/10011828
0975-8364, e-2249-3255, pp. 696-700, 2020. an Assistant Professor and Head of ETE Department; Presidency University,
[15] S. K. Longmore, G. Y. Lui, G. Naik, P. P. Breen, B. Jalaludin, and G. D. Dhaka, Bangladesh as an Assistant Professor and American International
Gargiulo, “A Comparison of Reflective Photoplethysmography for University Bangladesh (AIUB), Dhaka as a Faculty Member since June 1999.
Detection of Heart Rate, Blood Oxygen Saturation, and Respiration Rate He also worked as a Researcher in the Center of Excellence Program of
at Various Anatomical Locations,” Sensors, vol. 19, 2019, article 1874, Hiroshima University, Japan from July 2003 to March 2004. So far, he has
pp. 1-19, www.mdpi.com/journal/sensors, doi:10.3390/s19081874. published over 40 research papers in national and international journals and
[16] Y. Fu, J. Liu, “System design for wearable blood oxygen saturation and presented over 50 research works at national and international conferences.
pulse measurement device,” 6th International Conference on Applied His research interests include MOS device modeling, biomedical engineering,
Human Factors and Ergonomics (AHFE 2015) and the Affiliated control system design; outcome-based engineering education, assessment, and
Conferences, Procedia Manufacturing, vol. 3, pp. 1187–1194, 2015, doi: evaluation.
10.1016/j.promfg.2015.07.197. Prof. Bhuyan is a Member of IEEE, USA, Executive Member of
[17] M. H. Bhuyan and K. M. Rahman, “Digital Signal Processor Controlled Bangladesh Electronics and Informatics Society (BEIS), and Fellow of the
PWM Phase Modulator for Two-Phase Induction Motor Drive,” Journal Institution of Engineers Bangladesh (IEB). He is a regular reviewer and
of Electrical Engineering, the Institution of Engineers Bangladesh (IEB- technical/editorial/organizing committee member of several national and
EE), 0379-4318, vol. EE 34, no. I-II, pp. 19-25, Dec. 2007. international journals and conferences. He was the Organizing Chair of the
[18] V. V. Stuchilin, V. A. Rumyantseva and I. S. Svirin, “The Use of Digital IEEE 22nd International Conference on Computer and Information
Signal Processing Algorithms for Electrophysiological Diagnostics of Technology (ICCIT) in Dhaka, Bangladesh during 18-20 December 2019. He
Cardiovascular Diseases,” Biomedical and Pharmacology Journal, Vol. is the recipient of the Bangladesh Education Leadership Award (Best
10, no. 1, pp. 119-128, 2017. Professor in Electrical Engineering) in 2017 from the South Asian Partnership
[19] S. T. Prasad and S. Varadarajan, “PC Based Digital Signal Processing of Awards, Mumbai, India.
ECG Signals,” International Journal of Advanced Research in Computer
and Communication Engineering (IJARCCE), Vol. 2, Issue 12, Md. Refat Sarder was born in Dhaka district,
December 2013. Bangladesh on 12th April. He completed his BSc degree
[20] G. C. Seng, S. Salleh, A. R. Harris, M. N. Jamaluddin and I. in Electrical and Electronic Engineering (EEE) from
Kamarulafizam, “Standalone ECG monitoring system using digital Southeast University (SEU), Tejgaon I/A, Dhaka,
signal processing hardware,” Proc. of IEEE Conference, January 2012. Bangladesh in 2020.
[21] M. H. Bhuyan, M. T. Hasan and H. Iskander, “Low Cost Currently, he is working as a Research Student in the
Microcontroller Based ECG Machine,” International Journal of Department of Electrical and Electronic Engineering of
Biomedical and Biological Engineering, vol. 14, no. 7, 2020, e-ISSN: Southeast University, Dhaka, Bangladesh. His research
1307-6892, pp. 192-199. interest includes biomedical engineering and system development.
[22] M. K. Russel and M. H. Bhuyan, “Microcontroller Based DC Motor
Speed Control Using PWM Technique,” Proceedings of the IEEE
International Conference on Electrical, Computer and
Telecommunication Engineering (ICECTE), RUET, Rajshahi,
Bangladesh, 1-2 December 2012, pp. 519-522.
[23] M. H. Bhuyan, M. M. Haque, M. A. Rauf and M. M. I. Khan, “Design
and Implementation of a Microcontroller Based Elevator Control
Systems,” Proceedings of the International Conference on Engineering
Research, Innovation and Education (CERIE 2011), SUST, Sylhet,
Bangladesh, 11-13 January 2011, pp. 504-507.
[24] M. S. Ali and M. H. Bhuyan, “Design and Implementation of a Low-
Cost Automated Blood Flow Control Device Through Smart Phone for
Bio-Medical Application,” Proceedings of the IEEE International
Conference on Informatics, Electronics and Vision (ICIEV 2017),
University of Hyogo, Himeji, Japan, 1-3 September 2017, pp. 1-5.
[25] M. S. Ali and M. H. Bhuyan, “Design and Implementation of a Low-
Cost Blood Pressure Measuring Device,” Proceedings of the IEEE
International Conference on Electrical and Computer Engineering
(ICECE), BUET, Dhaka, Bangladesh, 20-22 Dec. 2018, pp. 309-312.
[26] MAX30100: Datasheet of Pulse Oximetry Sensor,
https://www.maximintegrated.com/en/products/sensors/MAX30100.htm
l, retrieved on 6 December 2020.
[27] M. H. Bhuyan and M. Hasan, “Design and Simulation of Heartbeat
International Scholarly and Scientific Research & Innovation 15(2) 2021 111 ISNI:0000000091950263