Professional Documents
Culture Documents
Capstone Project by
Beirut, Lebanon
Approved By
Dr Mohammad HajjHassan
Dr Hussein HajjHassan
This is a tremendous opportunity for us and all those involved in the care of
mothers and babies. Although having babies in hospitals is routine in this country, we
understand that there are unnecessary risks especially during the Covid pandemic
when we enter a complex healthcare system. Patient safety has to be our No. 1
priority. This dedication is for all the pregnant women who are struggling during their
pregnancy and want to make sure that their babies are in good health without having
to visit the Doctor frequently. We are proud to initiate this project that helps to fulfill
ii
ACKNOWLEDGEMENTS
It is our genuine gratefulness and warmest regard that we dedicate this work
to our higher university management, our project supervisor Dr. Mohammad Hajj
Hassan for his advice, and support. Despite the fact that this is an independent project
however we couldn’t have fulfilled it without the support and guidance of our advisor
Dr. Mohammad Hajj Hassan and Dr. Soumaya Berro. A special thanks to the
Biomedical Engineer Jad Masri for his continuous support and follow up, he provided
us with all the information we needed and more in order to complete our project.
Thanks to the hospital staff who were responsible of giving us proper training for the
teachers, they all gave us education that can least be said to be perfect, educating
Last but not least, most gratitude and appreciation to our dear families for their
unparalleled love and support all these years. We wouldn’t be who we are now
iii
ABSTRACT
services. There is a limitation on how often expectant mothers are able to check on
their baby's health since they rely on hospital equipment like ultrasound machines. A
baby’s heart rate can help doctors determine if pregnancy and labor are progressing
normally. Changes in the baby’s heart rate can be a sign of a potential problem. Fetal
monitoring during labor is especially helpful for high-risk pregnancies. It can help the
ambulatory fetal monitoring system that will be worn continuously and track fetal
iv
TABLE OF CONTENTS
DEDICATION............................................................................................................II
ACKNOWLEDGEMENTS......................................................................................III
ABSTRACT...............................................................................................................IV
TABLE OF CONTENTS............................................................................................V
LIST OF FIGURES................................................................................................VIII
LIST OF TABLES.....................................................................................................IX
CHAPTER 1. INTRODUCTION...............................................................................1
1.1. Background.......................................................................................................1
1.3. Objective...........................................................................................................3
2.3. Comparison.......................................................................................................7
CHAPTER 4. DESIGN..............................................................................................11
4.1.5 LED............................................................................................................20
4.2 Assembly....................................................................................................22
5.1 Introduction................................................................................................25
5.2 Economical/Financial................................................................................25
5.6 Standards....................................................................................................28
6.2 Testing........................................................................................................31
6.3 Results........................................................................................................33
CHAPTER 7. CONCLUSION..................................................................................36
7.1 Summary....................................................................................................36
7.2 Challenges........................................................................................................36
vi
vii
LIST OF FIGURES
viii
LIST OF TABLES
ix
LIST OF SYMBOLS AND ABBREVIATIONS
o EMG: Electromyography
x
CHAPTER 1. INTRODUCTION
1.1. BACKGROUND
continuous ambulatory monitoring of human vital signs during daily life (during
work, at home, during sport activities, etc.) or in a clinical environment, with the
The use of WHDs allows the ambulatory acquisition of vital signs and health status
This feature allows acquiring vital data during different daily activities, ensuring a
better support in medical diagnosis and/or helping in a better and faster recovering
In the last two decades, research has been very active in developing wearable devices
monitoring patients in their environment and during daily life activities. The need is a
sustainable health system that can manage acute care (in hospital or emergency
during their normal life, in order to prevent possible diseases by means of tele-
deliveries has remained static in the United Kingdom, at approximately 5 per 1000
births, over the past two decades [2]. Thus, continuous fetal monitoring of
related to the fetus or the mother's health. The available conventional methods of
1
monitoring mostly perform off-line analysis and restrict the mobility of subjects
within a hospital or a room and requires the supervision of expert personnel, as shown
in figure 1-1. For this reason, a wearable system able to continuously monitor Fetal
Heart Rate (FHR) would be a noticeable step towards a personalized and remote
pregnancy care [3]. Figure 1-2 shows a portable device for fetal monitoring.
2
1.2. PROBLEM STATEMENT
combined with medical background, we saw that there is a limitation on how often
expectant mothers are able to check on their baby's health since that doctor visits are
limited to once a month at the early stages of pregnancy, to once a week at the later
stages. Meanwhile, mother purely rely on perception of their baby's movement for
months as indication of health status, all these circumstances may not result in optimal
fetal well-being. Figure 1-3 shows the facility provided by the portable fetal
monitoring system.
1.3. OBJECTIVE
lightweight device that can be worn continuously and track fetal heart rate and
contractions which are the parameters needed to indicate the health status of a baby.
3
1.4. PROJECT OVERVIEW
The current project consists of a set of sensors that continuously track the
fetal heart rate and contractions. Moreover, it consists of an alert system responsible
for giving an alarm once identifying unusual patterns that are not confirmed to the
expected behavior where an SMS message will be sent to the maternal partner once a
contraction is conducted.
overview about similar devices that serve the same purpose of our project. Chapter 3
shows the methodology followed and the design of this project. Moving on to chapter
4 which includes the diagram and schematic of the circuit as well as for the
components used where we mentioned in details their data sheets and functions. The
economic studies about the Ambulatory fetal monitor will be represented in details in
chapter 5 as well as for the main financial aim and benefits in consuming in this
system Ethical studies and standards are also settled in chapter 5. In chapter 6, circuit
testing is performed and results are formed. Finally, in chapter 7, a summary about the
monitor is presented provoking the challenges faced and the future expectation or
4
CHAPTER 2. LITERATURE REVIEW
system that seems to be similar to our project. Each one represents a technique to
Maternal/Fetal Monitor that non-invasively measures and displays fetal heart rate
(FHR), maternal heart rate (MHR) and uterine activity (UA) [7]. The Novii acquires
and displays the FHR tracing from abdominal surface electrodes (Novii Patch) that
pick up the fetal ECG (fECG) signal. Using the same surface electrodes, the Novii
also acquires and displays the UA tracing from the uterine electromyography (EMG)
signal and the MHR tracing from the maternal ECG signal (mECG). Novii detects the
Fetal ECG and Maternal ECG rather than fetal heart rate through ultrasound Doppler
measures the fetal heart rate of twins and triplets along with maternal NBP and SpO2
and uterine activity from the abdomen. Built-in Avalon Smart Pulse provides a
convenient source for maternal pulse, enabling constant coincidence detection and
provides reliable information on the patient’s state [8]. The beltless solution uses ECG
and EMG signals to extract fetal and maternal heart rates and uterine activity from the
mother’s abdomen.
6
2.3. COMPARISON
The comparison table 2-1 shows the advantages and disadvantages of each
system, the Novii Wireless Patch System and the Avalon CL in addition to their costs.
d) Monitors twins,
triplets and mom
7
CHAPTER 3. PROJECT SPECIFICATIONS
Most babies who measure small during pregnancy are born healthy.
However, some are small because they are not growing as expected, usually because
the placenta (the baby's 'life support' system) is not working properly [11]. These
babies are at greatly increased risk of dying before birth, and need to be delivered
before they become poorly. Scans and electronic heart rate monitoring are currently
used to monitor these babies. But they can only be used for short periods and don't
always provide enough information to show when to deliver the baby. A small light
monitor has been developed that safely records the baby's heart rate by measuring
electrical activity through sticky patches on the mum's skin (like a normal ECG). The
woman carries on with her daily activities while wearing it. Monitoring the heart rate
over a longer time may help with decisions about the timing of the delivery and could
prevent stillbirth. The customer requirements for our device is that it should be
and rechargeable to maintain continuous monitoring for the patient and baby’s health.
Two parameters will be represented the heart rate and contractions as well as
implementing an alert system for situations where the baby could be in distress so the
it will be connected directly through the application and inform the healthcare
8
Figure 3-6: Electronic fetal monitoring [2].
Arduino microcontroller and heart rate sensor AD8232. The electrical signals are
picked up from the electrodes which are transported through the leads and then go to
the heart rate sensor directly into the Arduino Uno which will analog the reading from
the sensor. The code of Arduino is able to extract the ECG signal from sensor and
convert them into heart rate readings. The average fetal heart rate is between 110 and
160 beats per minute. It can vary by 5 to 25 beats per minute. The fetal heart rate may
change as your baby responds to conditions in your uterus as shown in table 3-1. An
abnormal fetal heart rate may mean that your baby is not getting enough oxygen or
9
Table 3-2:Fetal heart rate ranges [12].
10
CHAPTER 4. DESIGN
This chapter presents the design itself in terms: block diagrams in figure 4-1,
Arduino
SIM 900A LCD
Uno
LED
consists of an On/Off switch so that the device can be powered as needed. The system
also includes 3M foam electrodes to be able to detect the electrical activity of the
heart of the baby, it also includes one LED and an LCD screen to display the heart
rate readings as well as the contractions that need to be detected. The device also
the leads and then pass to the HR sensor directly to the Arduino Uno. Then the
Arduino Uno is connected to the LCD display so we can display the analog readings
from the sensor. For the coding we used the Arduino IDE software. This code is able
to extract the ECG signals from the sensor and convert them into heart rate readings.
The data collected from the sensor will be analyzed and calculated hence displayed on
the LCD as Heart Rate and identifying the contractions set as well. Besides, an SMS
message will be sent to the mother partner in case of an irregular heart rate or
contractions. A switch will be also placed to reset the program and send a message in
The AD8232 Spark Fun single lead heart rate monitor is a cost-effective
board used to measure the electrical activity of the heart. This electrical activity can
can be extremely noisy, the AD8232 single lead heart rate monitor acts as an op amp
to help obtain a clear signal from the PR and QT Intervals easily. The key feature of
this sensor is that it has a built-in signal filtering and amplification, it also breaks out
nine connections from the IC that you can solder pins, wires, or other connectors to
SDN, LO+, LO-, OUTPUT, 3.3V, GND provide essential pins for operating this
monitor with an Arduino or other development board. Also provided on this board are
RA (Right Arm), LA (Left Arm), and RL (Right Leg) pins to attach and use your own
custom sensors.
12
GND = Ground
Additionally, there is a LED indicator light that will pulsate the rhythm of a heartbeat.
These pins are shown in figure 4-1. The package of the sensor includes AD8232 heart
rate monitor module, 3 cable leads, and 3 adhesive foam electrodes as shown in figure
4-2. The measurements of electrical activities are done through sticky patches on the
mom's skin, these activities are then carried to our sensor by the cable leads.
13
Figure 4-8: AD8232 sensor package [13].
shown in figure 4-3, it has 20 digital input/output pins (of which 6 can be used as
PWM outputs and 6 can be used as analog inputs), a 16 MHz resonator, a USB
battery to get started. You can tell your board what to do by sending a set of
programming language (based on Wiring), and the Arduino Software (IDE), based on
Processing [14]. The key features for the Arduino Uno are:
microcontroller platforms.
14
Cross-platform: The Arduino Software (IDE) runs on Windows, Macintosh OSX,
and Linux operating systems. While most microcontroller systems are limited to
Windows.
use for beginners, yet flexible enough for advanced users to take advantage of as
well.
Open source and extensible software: The Arduino software is published as open
can be expanded through C++ libraries, and people wanting to understand the
technical details can make the leap from Arduino to the AVR C programming
language on which it's based. Similarly, you can add AVR-C code directly into
Open source and extensible hardware: The plans of the Arduino boards are
make their own version of the module, extending it and improving it. Even
relatively inexperienced users can build the breadboard version of the module in
15
Figure 4-9: Arduino Uno chip [15].
has a wide range of applications. 16×2 LCD has two registers like data register and
command register. The RS (register select) is mainly used to change from one register
to another. When the register set is ‘0’, then it is known as command register.
Similarly, when the register set is ‘1’, then it is known as data register. The main
function of the command register is to store the instructions of command which are
given to the display. So that predefined tasks can be performed such as clearing the
display, initializing, set the cursor place, and display control. Here commands
processing can occur within the register. The main function of the data register is to
store the information which is to be exhibited on the LCD screen. Here, the ASCII
LCD. Whenever we send the information to LCD, it transmits to the data register, and
16
then the process will be starting there. When register set =1, then the data register will
be selected. Figure 4-4 shows the pins of the 16*2 LCD [16].
Pin1 (Ground/Source Pin): This is a GND pin of display, used to connect the
Pin2 (VCC/Source Pin): This is the voltage supply pin of the display, used to
Pin3 (V0/VEE/Control Pin): This pin regulates the difference of the display, used
Pin4 (Register Select/Control Pin): This pin toggles among command or data
register, used to connect a microcontroller unit pin and obtains either 0 or 1(0 =
17
Pin5 (Read/Write/Control Pin): This pin toggles the display among the read or
Pin6 (Enable/Control Pin): This pin should be held high to execute Read/Write
process, and it is connected to the microcontroller unit & constantly held high.
Pins7-14 (Data Pins): These pins are used to send data to the display. These pins
are connected in two-wire modes like 4-wire mode and 8-wire mode. In 4-wire
mode, only four pins are connected to the microcontroller unit like 0 to 3, whereas
Its display can work on two modes like 4-bit & 8-bit.
18
4.1.4 ON/OFF SWITCH
the conducting path in an electrical circuit. It consists of 3 pins as shown in figure 4-5.
Power This is the pin where the switch receives its voltage
Accessories This is the pin that connects to the load of the circuit,
circuit
19
4.1.5 LED
source that emits light when current flows through it, so as the device is turned on it
4.1.6 SIM900
available GSM/GPRS module, which can provide the network connectivity. It can do
all the work as the mobile phone would do like making a call, receive a call, send a
message, connect to the internet using GPRS. SIM900A GSM Module is a dual-band
GSM/GPRS engine that works on frequencies EGSM 900MHz and DCS 1800MHz.
SIM900A features GPRS multi-slot class 10/ class 8 (optional) and supports the
GPRS coding schemes CS-1, CS-2, CS-3 and CS-4. This module can be used in your
IoT based projects and embedded systems. This is used in Automobiles, robotics,
servers, etc.
20
Figure 4-8: GSM SIM 900A pin configuration [21].
The physical interface to the mobile application is a 68-pin SMT pad, which provides
The SIM900A is designed with power saving technique so that the current
commands are developed for customers to use the TCP/IP protocol easily, which is
very useful for those data transfer applications. Table 4-2 the symbolization of the
TX
2 D Transmit data [Serial port ]
RX
3 D Receive data [Serial port ]
21
4.2 ASSEMBLY
The system contains three main components the Arduino Uno, AD8232, and
SIM900A. The output calculated which is the heart rate and contractions is
Place the LCD on a Breadboard where shield pins are plugged into the LCD
Connect pins (rs, en, d4, d5, d6, d7) of LCD to pins (12, 11, 16, 17, 18, 19)
respectively.
A resistor of 2.7 k is connected between the anode pin of LCD and 5v pin of
Arduino in order to the backlight of the LCD while the cathode pin is connected to
ground.
The VDD pin of the LCD is connected to +5v of the Arduino board and RW to
ground.
VO (LCD Contrast) controls the contrast and brightness of the LCD. Using a
simple voltage divider with a potentiometer (5K ohm), we can make fine
Supply the AD8232 with 3.3 V through the Arduino pin (3.3 V).
22
Connect the red led to pin 13 (built-in led of Arduino board) in order to blink
according to the Heart beat that has been identified by AD8232 sensor. The red
Figure 4-9 illustrates the connection of the AD8232 sensor to the Arduino Uno board.
Connect a green led to resistor 220 ohm and then to digital pin 3 of Arduino board
Figures 4-10 and 4-11 show the SIM900A and switch connections respectively.
positive terminal connected to switch and then to Arduino board and the negative pin
to the switch.
23
Figure 4-10: SIM900A connections [24].
24
CHAPTER 5. NON-TECHNICAL ASPECTS
5.1 INTRODUCTION
Every Capstone Project report must include sections that cover non-technical aspects.
These sections can form one chapter or can be explicitly embedded in the report
chapters. The following sections present the recommended aspects with brief
5.2 ECONOMICAL/FINANCIAL
Compared to the facilities offered by our project, the total cost shown in
table 5-1 is considered to be unassuming. Since that the pregnant woman will be
saving her time, transportation cost, examination cost. Moreover, as we all know in
the past two years the world has been facing the pandemic of coronavirus disease, and
infections and diseases. By using the portable fetal monitoring system, only in urgent
cases the woman will have to go to see her consultant, otherwise she will be checking
25
2 Variable resistor (5 k ohm) 1 0.5 0.5
4 Ad8232 sensor 1 12 12
7 Arduino Uno 1 15 15
10 SIM900A 1 17 17
(9V)
Total 68.4
monitoring system that monitors the baby’s health by measuring the heart rate and
contractions. This project should be delivered within 11 weeks from the starting time.
should be successfully made and tested. Based on this, we organized our work as
26
Regarding our stakeholders, this project is mainly for pregnant women in order to
facilitate their pregnancy period and to ensure a continuous tracking for the baby’s
health.
27
5.4 ETHICAL AND SOCIAL
When talking about ethics and social in research report it should include the
and not falsifying work. Where every sentence or picture copied from an article,
web page, date published, and date accessed. This project uses concepts and ideas
Moreover, all the data and results found in this report are written honestly,
objectively, and with integrity. Taking into consideration the safety of patient as
priority, where all components used are safe and isolated. The aim of this project was
to create an ambulatory fetal monitoring system which is portable and can be used
daily by the mother in order to track her baby’s heart rate and contractions.
large. Our aim is to help mothers track their baby’s heart rate and apply safety for the
mother and baby with best ethical and safe way. Where we aim to have a safe
prototype for patient and environment therefore, all the components’ material used are
conserved
28
5.6 STANDARDS
the Arduino platform is open source, and is legal to commercially sell in a product,
such as this home automation system, there are still a few licensing issues that need to
take into consideration. If the device is a derivative of the Arduino platform (i.e.
[26].
apply certain standards and norms to their products in order to be approved. Our
project has been restricted to obey those standards by achieving the following:
2. As for the design and development stage, we have taken into consideration the
safety measures required by the standards. In addition, we made sure that our
output has matched the development input put in the beginning by applying
certain regulations when needed, and benefiting from information taken from
similar devices.
3. Finally, when problems were detected upon testing proper changes were made
executed by the ISO and to licensing and restrictions of the Arduino platform.
29
CHAPTER 6. TESTING AND RESULTS
ECG system: After connecting the AD8232 board to the Arduino the ECG leads
will be connected to disposable pads through the patient. A code will be se for the
ECG sensor in order to calculate the heart rate and identify the contractions.
Indicator System: Two indicators are set in the circuit. First indicator is the red
led which will be blinking according to the beats of the baby. The second
indicator is the green led which indicates whenever an SMS message is sent to the
will be designated for the functionality of the module including its library.
30
LCD system: Messages are displayed on the screen upon writing the Arduino
code. The Arduino code must include the library of the lcd and all pins must be
6.2 TESTING
ECG system: Upon writing the Arduino code for the sensor, an ECG stimulator
will be connected to the leads in order to adjust the accuracy of the sensor and
make sure that the code is error-free. The BPM equation must be calculated
precisely “BPM = (1.0/Pulse Interval) * 60.0 * 1000;”as well as for the upper
threshold and lower threshold which has been set according to the analog values
represented for the ECG values. The small bi-potential signal will be detected
representing the baby’s heartbeat. This small signal will be integrated, amplified
and filtered through the chip of the AD8232 chip transmitted through the Arduino
as analog values. Through this signal we are able to find the Heart rate of the baby
and compare with the reference range. These connections are shown in figure 6-1.
31
Indicator System: Both leads are tested. As shown in figure 6-2, the red led
represents the heart beats depends on the functionality of the AD8232 sensor.
Hence if the AD8232 code and sensor are working then the Led will be set high
blinking according to the beats. However, the green lead functionality depends on
Transmitter and Receiver system: The SIM900A code will send a message only
in case of an alarm. This module will receive serial data from monitoring devices
which is the Arduino with ECG sensor and transmit the data as text SMS to a host
server which is the phone of her partner. This message is sent whenever a low
heart rate value is detected for five repetitive times and similarly in case of a high
LCD system: Once the switch is set on, the LCD code must represent the title of
the monitor and it will later print the values of the Heart Rate after calculating the
“message.
32
Figure 0-14: Circuit connection [17].
6.3 RESULTS
After connecting all the system, the LCD code shown in figure 6-4 will first
Then, the AD8232 sensor will transmit the signal which is integrated to through the
Arduino. Few beats are counted to display only 1 every 5 beats. Each pulse rate is
compared with the upper and lower threshold before moving on to the second pulse
33
interval. The red led will also blink upon each beat. The code written is shown in
figure 6-5.
After, comparing the beats with the ECG analog thresholds, the heart rate will be
displayed on the LCD and the AD8232 will compare it with the ranges of the neonatal
BPM which must be between 110 and 160. In case it was below 110 and SMS alarm
message will be sent. Similarly, an SMS message will be sent indicate high rate and
34
thus leading to contraction. The code written to set the ranges is represented in figure
6-6 below.
Once an SMS message is sent the green led will turn on and the SMS will be sent only
after 5 repetitive values. Figure 6-7 shows how our project was designed and
finalized.
35
Figure 0-18: Ambulatory fetal monitor connected to and ECG stimulator.
CHAPTER 7. CONCLUSION
7.1 SUMMARY
During late pregnancy and labor, the physician may recommend monitoring
the fetal heart rate and other functions. The average fetal heart rate is between 110 and
160 beats per minute, and can vary five to 25 beats per minute [27]. The fetal heart
rate may change as the fetus responds to conditions in the uterus. An abnormal fetal
heart rate or pattern may indicate that the fetus is not getting enough oxygen or that
there are other problems. Here comes the purpose of our project which is designed to
monitor passively the well-being of the fetus in the antenatal period. Our system is a
portable, battery powered device, developed using Arduino Uno board and attached
via a cable assembly which in turn is attached to three standard disposable electrodes
36
The systems was developed and tested successfully, using different testing techniques.
By that, the design is ready to function properly and serve the user at its best.
7.2 CHALLENGES
coding part, it was really challenging to write a code for two modules that we barely
found any similar codes on internet. Besides, we had to search for the ECG limited
threshold of the analog values. As for the hardware part, at first, we struggled to find a
heart sensor able to give us and amplified and filtered ECG signal. Besides the
AD8232 sensor is very sensitive to humidity therefore setting the accurate heart rate
was a challenge and it won’t also work in such medium; hence, we had to check
continuity, short circuit, and current of the sensor. Moreover, the connections between
the Arduino and SIM boards and all the components distributed in the system was
very risky to avoid detaching any wire or unplugging any pin from the boards.
After conducting this project, new skills have been gained. Finalizing this
project required time management especially that we were really limited in time. It
skills and abilities. The project has turned out into success. Furthermore, dealing with
a sensitive sensor like the AD8232 module has allowed us to gain more skills in
37
system. Upon connecting the monitor to a GSM module and using new equipment, we
system. One of our aims is to make an application that could show the ECG rhythm
and the values and it could be remotely connected through the doctor’s clinic as well
as her beloved ones. Another aim is having the ability to collect the signal at different
stage of pregnancy and a sounding system to the beats instead a blinking led. This will
help the mother to improve her communication with her baby and keep her in peace.
As for its design, a smaller version could be created in order to provide ease and
38
APPENDIX A. TITLE OF APPENDIX A
#include <LiquidCrystal.h>
39
int HighCount=0; //counter for delaying SMS (avoiding Spam)
void setup(){
Serial.begin(baudRate);
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.setCursor(0,1);
delay(2000);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("BPM: ");
lcd.setCursor(0,1);
lcd.print("Contractions:");
void loop(){
40
while(GPRS.available()) //make sure of comm of sim module
Serial.write(GPRS.read());
// First event
reading = analogRead(0);
if(FirstPulseDetected == false)
FirstPulseTime = millis();
FirstPulseDetected = true;
else{
SecondPulseTime = millis();
FirstPulseTime = SecondPulseTime;
IgnoreReading = true;
digitalWrite(LED_BUILTIN, HIGH);
41
}
IgnoreReading = false;
digitalWrite(LED_BUILTIN, LOW);
// Second event
Serial.print(reading);
Serial.print("\t");
Serial.print(PulseInterval);
Serial.print("\t");
Serial.print(BPM);
Serial.println(" BPM");
Serial.flush();
42
}
if (count == 5){
lcd.setCursor(0,0);
lcd.print("BPM: ");
lcd.print(BPM);
lcd.setCursor(13,1);
lcd.print("Yes");
HighCount++;
if(HighCount==5){HighCount=0;}
lcd.setCursor(13,1);
lcd.print("No ");
if(LowCount == 0){
LowCount++;
if(LowCount==5){LowCount=0;}
43
}
else{
lcd.setCursor(13,1);
lcd.print("No ");
1;}
else{return 0;}
currentMillis;return 1;}
else{return 0;}
GPRS.println("AT+CMGS=\"+96176013438\"");
delay(500);
44
GPRS.print(BPM);
GPRS.println("AT+CMGS=\"+96176013438\"");
delay(500);
GPRS.print(BPM);
45
REFERENCES
[1] A. Papineau, "Sickkids Health," The Hospital for Sick Children., 2021.
[Online]. Available: https://www.aboutkidshealth.ca/Article?
contentid=402&language=English.
[2] "NationalLibraryofMedicine,"USA.gov,2007.[Online].Available:
https://pubmed.ncbi.nlm.nih.gov/17347753/. [Accessed 20 Aug. 2021].
[3] SparkFun,"SparkFun,"SparkFunElectronics,[Online].Available:
https://cdn.sparkfun.com//assets/parts/9/3/4/4/12650-01.jpg. [Accessed 15 Aug.
2021].
[5] M. Kenny Lin, " AFP," American Academy of Family Physicians. , 2020.
[Online]. Available:https://www.aafp.org/afp/1999/0501/p2487.html. [Accessed
2021].
[6] E. O. D., "Fetal ECG monitoring device," Research Gate, vol. 3, no. Home
Labour Induction with Retrievable Prostaglandin Pessary and Continuous
Telemetric Trans-Abdominal Fetal ECG Monitoring, p. 202, 2011.
[9] N. w. technology, "NICE National Institute for Health and Care Ecellence,"
NICE,23Sep.2020.[Online].Available:
https://www.nice.org.uk/advice/mib228/chapter/The-technology. [Accessed 20
Aug. 2021].
[10] phillips,"Phillips,"phillips,2021.[Online].Available:
https://www.philips.com.lb/en/healthcare/resources/feature-detail/smart-pulse.
46
[Accessed 15 August 2021].
[14] D.Cuartielles,"Medea,"5Apr.2013.[Online].Available:
http://medea.mah.se/2013/04/arduino-faq/. [Accessed 16 Aug. 2021].
[17] Electronics101.,30May.2021.[Online].Available:
https://components101.com/displays/16x2-lcd-pinout-datasheet..[Accessed15
Aug. 2021].
[19] "ArduinoProjectHub.,"Hackster,2021.[Online].Available:
https://create.arduino.cc/projecthub/rowan07/make-a-simple-led-circuit-
ce8308..
[20] TutortialPoints.,2021.[Online].Available:
https://upload.wikimedia.org/wikipedia/commons/c/cb/RBG-LED.jpg..
[Accessed 2021].
47
15 Aug. 2021].
[22] "Electronics101,"10Sep2021.[Online].Available:
https://i.pinimg.com/originals/b0/c3/ec/b0c3ec98d0e28da0e04b126dbd928aae.j
pg. [Accessed 15 Aug. 2021].
[24] "Arduinoprojecthub,"Hackster,[Online].Available:
https://i.pinimg.com/originals/b0/c3/ec/b0c3ec98d0e28da0e04b126dbd928aae.j
pg.
[25] "Components101,"3Sep.2021.[Online].Available:
https://components101.com/microcontrollers/arduino-uno. [Accessed 15 Aug.
2021].
[27] "External and Internal Heart Rate Monitoring of the Fetus," University of
RochesterMedicalCenterRochester,2021.[Online].Available:
https://www.urmc.rochester.edu/encyclopedia/content.aspx?
contenttypeid=92&contentid=P07776. [Accessed 15 Aug. 2021].
[30] https://www.electronicwings.com/arduino/lcd-16x2-interfacing-with-arduino-
uno, "ElectronicsWings," ElectronicsWings, 2021. [Online]. Available:
https://www.electronicwings.com/arduino/lcd-16x2-interfacing-with-arduino-
uno.
48
49