Design and Demonstration of Arduino Based Low Cost
Design and Demonstration of Arduino Based Low Cost
net/publication/374120575
Article in International Journal on Recent and Innovation Trends in Computing and Communication · August 2023
DOI: 10.17762/ijritcc.v11i9s.7437
CITATIONS READS
0 1,422
3 authors, including:
All content following this page was uploaded by Shakthi Vananth P N on 13 February 2024.
Abstract— One of the main reasons for the pushback of the pandemic in India was the awareness that developed in people during the
crisis. The adapting mindset of the Indian populace helped turn the tides. The Pulse Oximeter proved to be an important tool that helped in
identifying the affected, to get timely healthcare. A very simple information was shared among people that the BPM (heart rate in beats per
minute) should be around 60 - 100 (resting) for an average adult and the SpO2, i.e., oxygen saturation must be above 95% for all age groups.
Just this was able to counter an entire wave of the Pandemic with the help of early detections, timely isolations, immediate health care and
much more. However, access to this was not available to everyone due to the high prices of these devices. This project aims to build a simple
monitor module with an Arduino Nano board which can determine the Blood Oxygen level and Heart rate of a person by using the MAX30102
sensor.
416
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
measured using photosensitive techniques using Arduino and USB and pin count. The Arduino Nano is a great choice for
GSM [10]. projects where size, cost, power consumption, and pin count
are important factors. However, if the need for more
Continuous heart rate and body temperature monitoring system
processing power, more memory, or additional features like
designed using Arduino and its application [11]. Persons’
Ethernet or Wi-Fi connectivity is greater, the Arduino Uno
physical characteristics are measured using sensors and
may be a better option. When searching for possible use cases
broadcasted through ZigBee to PC [12]. The system to monitor
for such a computer that is small, low cost, effective and that
the Healthcare of patients is designed and measured using
has a wide range of applications, the recent pandemic came
wireless mobile to monitor remotely [13]. A Simple portable
into sight. This was the origination of the concept that is the
ECG monitor is designed using Arduino-Uno and HC-05 FC-
project today. The image of the Arduino Nano used in this
114 as a Bluetooth antenna, an ECG display could be seen on a
project is shown in Figure 1.
smartphone’s monitor in real-time [14].
Remote health monitoring, based on non-invasive and
wearable sensors, actuators and modern communication and
information technologies offers an efficient and cost-effective
solution that allows the elderly to continue to live in their
comfortable home environment instead of expensive healthcare
facilities[16]. The study focuses on designing a monitoring
system that consists of an incubator equipped with a humidity
sensor to measure the humidity level, and a pulse sensor that
can be attached on an infant placed inside the incubator to Figure 1. Arduino Nano
monitor infant’s heart pulse[17]. B. MAX 30102
In this article, we will discuss the process of building a pulse The next step was to find a suitable sensor, the most
oximeter with Arduino Nano and MAX30102, including the important component of this setup that could collect the
hardware and software setup. Section 1 describes the essential data for the Pulse Oximeter. A very short search led
introduction, section 2 explains the methodology used, section to the MAX3010X series of sensors. The MAX3010X sensors
3 illustrates the demonstration, section 4 explains the results and are a series of highly integrated optical sensor modules designed
discussions followed by conclusion and references. for pulse oximetry and heart-rate monitoring applications. The
II. METHODOLOGY series includes the MAX30100, MAX30101, MAX30102, and
MAX30105 sensors. Here is a brief overview of each sensor in
The very first idea that originated leading to this article was the MAX3010x series.
the most integral part of this project: The Arduino Nano. The
Arduino Nano is a small and versatile open-source • MAX30100: The MAX30100 is the first sensor in the
microcontroller board based on the Atmel AVR series and features an integrated red LED and infrared
microcontroller. While surfing for project ideas, research LED along with a photodetector. It can be used to
showed that the Arduino Uno was the most popular for project measure oxygen saturation and heart rate.
building in Microprocessors. Further study revealed that there • MAX30101: The MAX30101 is similar to the
are many types of Arduinos like the Arduino UNO, MEGA, MAX30100, but with added features such as an ambient
YUN, DUE, LEONARDO and much more. One such Arduino light cancellation algorithm and aprogrammable FIFO
the study led to was the NANO. It was a compact and buffer.
multifaceted computer that had wide-ranging functions.
However, the Arduino UNO could still be argued as the better • MAX30102: The MAX30102 is the most advanced
fit for a project like this; here are the main reasons the NANO sensor in the series and includes features such as a high
was chosen over the UNO. SNR photodetector, an integrated ambient light
cancellation algorithm, and a programmable sample
A. Arduino Nano vs Arduino Uno
rate.
Arduino Nano and Arduino Uno are both microcontroller
• MAX30105: The MAX30105 is a variant of the
development boards that are very popular in the maker
MAX30102 that includes an additional green LED for
community. While both boards have many similarities, there
improved accuracy in heart-rate monitoring.
are some key advantages of Arduino Nano over Arduino Uno
are size, cost, power consumption, compatibility, integrated All sensors in the MAX3010X series use a similar
417
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
architecture and are designed to be highly integrated,
low- power, and compact. They are typically used in
wearable health monitoring applications and are designed
to provide accurate pulse oximetry and heart-rate
monitoring in challenging environments. The MAX30102
is a highly integrated optical sensor moduledesigned for pulse
oximetry and heart-rate monitoring applications. It integrates a
red LED and an infrared LED along with a photodetector to
provide accurate readings of oxygen saturation and heart rate.
Here are five key advantages to using the MAX30102 highly
integrated design, accurate readings, Low power consumption,
flexible connectivity, and small form factor. The MAX30102
is an advanced optical sensor module that provides accurate
pulse oximetry and heart-rate monitoring in a small and low-
power package. Its highly integrateddesign, accurate readings,
low power consumption, flexible connectivity, and small form
factor make it an ideal choice for wearable health monitoring
applications. The picture of the MAX30102 is shown in Figure
2.
418
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
the heart rate library, and outputs the heart rate to the as a graph of amplitude versus frequency. The gist is: FFT is
serial monitor. used in PPG signal processing to isolate the heart rate frequency
component from the PPG signal, which can be used to calculate
D. Fast Fourier Algorithm
the heart rate and othercardiovascular parameters.
The Fast Fourier Transform (FFT) algorithm plays an
III. HARDWARE DEMONSTRATION
important role in building a pulse oximeter by enabling
frequency domain analysis of the PPG signal. The PPGsignal is
typically a time-varying waveform that represents the changes
in blood volume in the fingertip caused byarterial blood flow.
The FFT algorithm allows us to convert this time-domain signal
into its corresponding frequency- domain representation.
In a pulse oximeter, the FFT algorithm can be used to
analyze the periodicity of the PPG signal and extract the heart
rate information. The FFT algorithm calculates the power
spectrum of the PPG signal, which represents the distribution of
signal power across different frequencies. The dominant
frequency component in the power spectrum corresponds to the
heart rate, as it represents the frequency at which the blood
volume changes in the fingertip due to arterial pulsation.
By applying the FFT algorithm to the PPG signal, we can
identify the heart rate frequency component and extract the heart
rate information in a quantitative manner. This can be done using Figure 4. Circuit connection diagram
various signal processing techniques, such as windowing, zero- The circuit diagram with wiring connection of the
padding, and frequency peak detection. The heart rate monitoring system is shown in Figure 4. The working procedure
information can then be used for further calculations, display, is presented in different steps as follows.
and output in the pulse oximeter system.
Step 1: Initialize the Arduino Nano and MAX30102 sensor: Set
It's important to note that accurate heart rate calculation using up the Arduino Nano board and connect the MAX30102
the FFT algorithm requires proper signal conditioning, noise sensor to the appropriate pins. Initialize the sensor and
reduction, and calibration to account for factors suchas motion configure the required settings, such as LED brightness,
artifacts, ambient light, and physiological variations. Careful sample rate, and pulse width.
implementation and validation of the FFT algorithm are
necessary to ensure reliable and accurate heart rate detection in Step 2: Read PPG data: Continuously read the PPG
a pulse oximeter. (Photoplethysmogram) data from the MAX30102
sensor. PPG data represents the changes in blood
E. Fast Fourier Signal Processing volume in the fingertip caused by arterial blood flow,
FFT is used in identifying the heart rate frequency and it contains information about the heart rate and
component in the signal. The PPG signal consists of a pulsatile oxygen saturation levels.
component, which corresponds to the changes in blood volume Step 3: Signal processing: Process the raw PPG data to extract
caused by the heartbeats, and a non-pulsatile component, which the heart rate and oxygen saturation (SpO2) values. This
corresponds to the baseline tissue absorption. The heart rate typically involves filtering the raw PPG signal to remove
frequency component can be isolated by filtering out the non- noise, detecting the peaks and valleys of the waveform,
pulsatile component using a digital filter, and then applying FFT and calculating the time intervals between the peaks and
to the resulting pulsatilecomponent. The FFT algorithm works valleys
by breaking down the signal into a set of sinusoidal functions
of different frequencies and amplitudes. These sinusoidal Step 4: Heart rate calculation: Use the time intervals between the
functions are called frequency components, or bins, and they peaks of the PPG signal to calculate the heart rate in
represent the different frequency components of the original beats per minute (BPM). This can be done using
signal. The amplitude and phase of each frequency component algorithms such as peak detection, thresholding, or
can be computed using complex mathematical operations, and autocorrelation.
the resulting frequency-domain representation can be displayed
419
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
Step 5: SpO2 calculation: Use the ratio of the red and infrared the red and infrared PPG signals.
PPG signal amplitudes to estimate the oxygen saturation
• Once the heart rate and oxygen saturation values are
(SpO2) level. This can be done using algorithms such as
calculated, they are displayed on a screen or transmitted
the Beer-Lambert law or empirical equations based on
wirelessly to another device for further processing and
calibration data.
analysis.
Step 6: Display and output: Display the calculated heart rate and
IV. IMPLEMENTATION AND PROGRAMMING OF
SpO2 values on an output device, such as an LCD
ARDUINO
display or serial monitor. Additionally, the data can be
logged or transmitted to other devices or platforms for The setup is constructed exactly according to the connection
further analysis or storage. Loop and update: diagram as shown in Figure 4. The USB is connected to the
Continuously loop through the PPG data processing laptop which acts as a power supply to the Arduino. The model
steps to continuously update the heart rate and SpO2 is arranged in a bread board so as to organize and make access
values in real-time as new data is acquired from the to parts easy for testing purposes. This in further stages will
MAX30102 sensor. consist of only the Arduino Nano, the MAX30102 Sensor and a
TABLE I. PIN CONNECTIONS
smaller display that makes the setup compact and portable. The
top-down view of the setup is shown in Figure 5. A very
Arduino NANO 2-WAY MAX30102 Sensor important thing to note is the data transfer rate. It must be set at
Pin Pin
115200 baud. Setting the data rate at 115200 baud is a commonly
GND (Ground) GND (Ground) used and recommended choice for pulse oximeter projects using
A5 pin (Analog SCL (Serial Clock)
Arduino Nano and MAX30102, as it provides a good balance
Clock) between data transmission speed, efficiency, compatibility with
Arduino hardware, and sensor capabilities.
A4 pin (Analog SDA (Serial Data)
Data)
• The Arduino processes the PPG signals using algorithms • Compatibility: Many Arduino boards, including the
such as the fast Fourier transform (FFT) or the NANO, are optimized for communication at 115200
autocorrelation method to extract the heart rate and oxygen baud. This baud rate is commonly supported by
saturation values. Arduino libraries and examples, making it a practical
choice for pulse oximeter projects that use Arduino
• The heart rate is determined by measuring the time between NANO and MAX30102.
successive peaks in the PPG waveform, while oxygen
saturation is calculated by comparingthe amplitude ratio of • Hardware limitations: The NANO board, like other
Arduino boards, has hardware limitations thatmay affect
420
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
the stability of data communication at higher baud rates.
Setting the data rate at 115200 baud helps to ensure
reliable communication between the NANO board and
the MAX30102 sensor.
421
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
8 Dependency on external Integrated USB port in Networking and Artificial Life, Vol. 7(4), pp.275 – 278,
devices for programming Arduino Nano for easier 2021.
and debugging programming and [4] H. Almimi, & A. A. Dahoud, & M. Fezari, & S. Mohammad,
debugging “A Study on New Arduino NANO Board for WSN and IoT
9 Size, power Arduino Nano offers a Applications,” International Journal of Advanced Science
consumption, and pin compact size, low power and Engineering, vol. 29(4), pp.10223-10230, 2020.
count limitations of consumption, and higher [5] K. Mahesh, “Density Based Traffic Light Controller using
existing boards pin count Arduino – Nano,” International Journal for Research in
10 Lack of extensive Arduino IDE and Arduino- Applied Science & Engineering Technology, vol.11(I), 2023.
documentation and specific libraries offer a [6] R. Sameh, & M. Genedy, & A. Abdeldayem, “Design and
support for specific large community and Implementation of an SPO2 Based Sensor for Heart
projects extensive documentation Monitoring using an Android Application,” Journal of
Physics: Conference Series,1447 012004, 2020.
VI. CONCLUSIONS [7] Kumar, D., Vertivendan, L. ., Velmurugan, K. ., M., K. .,
Toradmalle, D. ., & Vajid Nabilal, K. . (2023). Semantic
This research work aims to make the pulse oximeter Marginal Autoencoder Model for the Word Embedding
available for all. The Bill of Materials for just the main Technique for the Marginal Denoising in the Different
components (those that can together run the program the exact Languages. International Journal of Intelligent Systems and
same way as this setup) is just 400 INR. This cost can further Applications in Engineering, 11(3s), 204–210. Retrieved
come down with increase in scale. Reliable and fast results in from https://ijisae.org/index.php/IJISAE/article/view/2562
[8] B. N. Karthik, & L.D. Parameswari, & R. Harshini, & A.
low cost is the crux of this work. Even if the accuracy is not as
Akshaya, “Survey on IOT & Arduino Based Patient Health
high as commercial pulse oximeters, this gives a gross idea about
Monitoring System,” International Journal of Scientific
the current condition of the user, which can help in deciding a Research in Computer Science, Engineering and Information
time to consult the doctor. This work is still at its early stages. Technology, vol. 3(1), pp. 1414-1417, 2018.
There is a lot of optimizations left to do and a great deal of [9] M. H. Bhuyan, & M. Sheikh, “Designing, Implementing, and
accuracy enhancement is also pending. These will be met in Testing of a Microcontroller and IoT-Based Pulse Oximeter
future iterations of the work. In conclusion, building a low-cost Device,” IOSR Journal of Electrical and Electronics
pulse oximeter using Arduino Nano and MAX30102 sensor can Engineering, vol. 16(5), pp. 38-48, 2021.
provide a cost-effective solution for monitoring blood oxygen [10] D. T. Harjono, & A. S. Tamsir, “Biomedical Sensor ECG,
PPG, and spO2 based on Arduino Which Result from
levels and heart rate. By leveraging the versatility and ease of
Comparison with Portable,” Technical Report, pp. 1-9, 2020.
programming of Arduino IDE, along with the advanced features
[11] R. Austin, & F. Lobo & S. Rajaguru, “GSM and Arduino
of MAX30102 sensor, a functional pulse oximeter can be Based Vital Sign Monitoring System. The Open Biomedical
developed at an affordable price point. This DIY approach Engineering Journal, vol. 15(1), 2021.
allows for customization, experimentation, and potential for [12] M. A. Miah, M. A, & M. H. Kabir, & M. S. R. Tanveer, &
further improvements in design and functionality. With careful M. A. H. Akhand, “Continuous Heart Rate and Body
consideration of the BOM cost and efficient utilization of Temperature Monitoring System using Arduino UNO and
resources, a low-cost pulse oximeter can be a viable option for Android Device,” 2nd International Conference on Electrical
various applications, including home health monitoring, DIY Information and Communication Technologies, pp. 189-194,
2015.
medical projects, and educational purposes.
[13] R. Rákay, & M. Višňovský, & A. Galajdová, & D. Šimšík,
REFERENCES “Testing properties of E-health System based on
Arduino,” Journal of Automatic Control, vol. 3(3), pp. 122-
[1] M.H. Bhuyan, & M.R. Sarder, “Design, Simulation, and
126, 2015.
Implementation of a Digital Pulse Oxygen Saturation
[14] S. K. Pahuja, & N. Sethy, “Real time measurement of heart
Measurement System Using the Arduino
rate and it's variability, “ Innovations in Power and Advanced
Microcontroller,” International Journal of Biomedical and
Computing Technologies, pp. 1-6, 2017.
Biological Engineering, vol. 15(2), pp.105-111, 2021.
[15] W. J. Iskandar, & I. Roihan, & R. A. Koestoer, “Prototype
[2] L. Surasura, & S. Patil, & M. Ayesha, Sattikar “IoT Based
Low-Cost Portable Electrocardiogram (ECG) Based on
SPO2 and Temperature Monitoring Using Arduino Mega and
Arduino-Uno with Bluetooth feature,” AIP Conference
GSM,” 3rd International Online Conference on Emerging
Proceedings, vol. 2193(1), pp. 050019-1- 050019-7, 2019.
Trends in Multi-Disciplinary Research, Jan. 20-22, 2022.
[16] S. Basu, & S. Saha, & S. Pandit, & S. Barman, “Smart Health
[3] D. Fengzhi, & H. Wen, & J. Zhao, & H. Hao, & Qianqian
Monitoring System for Temperature, Blood Oxygen
Zhang, “Design of an Instrument for Measuring Heart Rate
Saturation, and Heart Rate Sensing with Embedded
and Blood Oxygen Based on Arduino,” Journal of Robotics,
Processing and Transmission using IoT Platform,”
422
IJRITCC | August 2023, Available @ http://www.ijritcc.org
International Journal on Recent and Innovation Trends in Computing and Communication
ISSN: 2321-8169 Volume: 11 Issue: 9s
DOI: https://doi.org/10.17762/ijritcc.v11i9s.7437
Article Received: 17 May 2023 Revised: 04 July 2023 Accepted: 30 July 2023
___________________________________________________________________________________________________________________
Computational Intelligence in Pattern Recognition: [19] S. Majumder, & T. Mondal, & M. J. Deen, “Wearable
Proceedings of CIPR, pp. 81-91, 2020. Sensors for Remote Health Monitoring Sensors,” vol.
[17] Mei Chen, Machine Learning for Energy Optimization in 17(130), pp. 1-45, 2017.
Smart Grids , Machine Learning Applications Conference [20] D. N. F. M. Ishak, & M. M. A. Jamil, & R. Ambar, “Arduino
Proceedings, Vol 2 2022. Based Infant Monitoring System,” IOP conference series:
[18] Mr. Kankan Sarkar. (2016). Design and analysis of Low Materials Science and Engineering, vol. 226(1), pp. 012095,
Power High Speed Pulse Triggered Flip Flop. International 2017.
Journal of New Practices in Management and Engineering,
5(03), 01 - 06. Retrieved from
http://ijnpme.org/index.php/IJNPME/article/view/45
423
IJRITCC | August 2023, Available @ http://www.ijritcc.org