GDB
GDB
GDB
UC4F1703ME
SCHOOL OF ENGINEERING
JULY, 2017
1
CHAPTER 1
INTRODUCTION TO STUDY
1.1 Introduction
Health monitoring system of physiological parameters is frequently
important for the assessment of health conditions, diagnostic reasons and the
recognition of life or health threatening events. Especially, for infants, who can't
give any feedback about discomfort or health complaints it is an important issue
to gather target data under everyday conditions. Infant health status is significant
feature and health monitoring system is final solution for that. The new era
wearable technologies can be easily adoptable for monitoring systems the number
of infant deaths occur according to improper care taken. Mothers with newly born
infant have to stay away from their infant due to several reasons. During such
situation, health status of babies is hard to detect. The surprising fall and growth
in physiological parameters may cause sudden infants deaths and may lead to
apparently life-threatening events (Peng and Weng, 2008). Common concern in
the family community members nowadays. The mobile application will help user
to get real time body temperature, motion and remote messaging system to parents
if infant is awake. It will also provide health and report analysis as well as
emergency notifications. The developed baby vest includes fully integrated circuit
for motion, temperature and remote messaging system to family member to shows
the status of infant people, for the continuous monitoring of infants under clinical
and home conditions. It will allow the early detection of potential life-threatening
events calling for rescue as well as the recognition of the development or
progression of diseases at an early stage. Health protection or even life-saving thus
will be enabled in time. A variety of principles for the measurement of the
parameters has been assessed for the integration into garments. In this project,
integrated system monitoring has been proposed according to health issues for
monitoring infant people at home. There are three various methods should be
combined in order to the system works completely. The first method is Graphic
user interface (GUI) which will show the status of the infant person and
2
monitoring as well. The GUI consists of blocks diagram and codes via MATLAB
software. The second method is communication part that is interfaced by using
GSM module with microphone sensor. Finally, Electronics parts consists of
Temperature sensor, motion sensor.
1) To monitor the temperature and sleeping pattern for the kid’s people.
2) To design a suitable GUI for the system in order to shows the status of
kid’s people
3
3) Remote messaging system to parents if baby is awake or if high fever is
monitored
4
The specifications of the Electrical circuit are important to identify the
operation temperature motion and other parameters in order to ensure the system
will work in its optimal condition. The methodology used in the system is
proposed, designed and implemented with proper engineering calculations and the
results are shown. In this chapter, the methodologies and solutions of the other
researchers which work on the same project are compared and analysed from the
respective journals.
Implementation and Enhancement (Ali Zaidhan Zahid TP 030410)
In chapter 6, the implementation of the entire system of this project is
realized and clarified as all section of the project come together to determine the
objective.
Sustainability (Qutibah Ali TP 031163)
In chapter7, the sustainability of the infant health monitoring is analysed
and discussed in detail due to provide a clear understating of how this system will
stand the test of time. The sustainability of the system is explained with respect to
three important aspects of social, economic and environmental in detail
Project Management, Entrepreneurship and Finance (Safwan Sadeq
Mahmood Ali TP031249)
In chapter 8, the individual task of all members regarding the proposed system
is discussed in this report and classified and exposed with help of a Gantt chart.
The cost estimation of the components used as well as discussed in detail.
Moral Professionalism and Ethical Considerations (Qutibah Ali TP 031163)
In chapter 9, the professionalism and ethical matters considered in this
project by its members is discussed based on codes of conduct. The basic concepts
and fundamental principles of right human conduct while morals personal while
ethics stress a social system in which those morals are applied.
Discussion and Conclusions (Ali Zaidhan Zahid TP 030410)
In chapter 10 the results for every individual work done on the project is
discussed in detail with problems faced and solutions provided to solve the
problems with conclusion ending the report.
5
1.6 Summary
In conclusion, this task was introduced an infant health monitoring system
for infant which can enhance the quality of infant-parent communication. With
the help of short range GSM module communication hardware receives data from
hardware device alerts will be made available to the user on the mobile phone
application, Graphic user interface (GUI) which will show the status of the infant
person and monitoring as well and electronics parts consists of temperature sensor,
motion sensor. So, the system can reduce the communication gap between parent
and the infant. In future, extra services like medication reminder, health care
support, health management can be implemented.
6
CHAPTER 2
2.1 Introduction
The graphical user interface was done by connecting the Arduino
microcontroller and the other peripheral devices to MATLAB software.
MATLAB is a program capable of processing large amounts of data at very fast
speeds and moreover, has the capability to work with multiple devices at the same
time. The GUI was designed in such a way that all the sensor readings from the
infant monitor are represented in the form of a graph. The reason for using a visual
representation is that experts who understand the threshold set for readings such
as skin temperature, movement and sound can give expert opinions based on that.
Apart from using the Arduino toolbox in MATLAB, the thingspeak toolbox was
used as well in order to create an IoT application. The IoT capability is important
because this gives the caregiver or parent an opportunity to send the data to
healthcare professionals. Another aspect of using IoT application is that over time
when sufficient amount of data is collected from each individual, the changes seen
in the sensor readings can give a better idea of what the health status is. This will
also give the doctor or healthcare professional a great level of understanding of
the changes from the norm. This could make a difference as it eliminates the time
factor in terms of dealing with a disease or health concern, because it gets
recognized very quickly due to the vast amount of readings available. Another
reason for the data collection and processing via MATLAB is the convenient
interfacing it allows with Thingspeak. Thingspeak is an open source IoT
application which allows users to upload sensory data to channels. The readings
can be sent or received from Thingspeak in 15 second intervals. This is important
as the integrity and functional efficiency of the infant health monitor depends on
the amount of data collection and the ability to build a profile on the infant.
7
2.2 Literature Review
Research was done on the use of Graphical user interface incorporated in
health monitors and the application of IoT in such devices as well. In a conference
proceeding held in Rochester, (Hassanalieragh et al., 2015) discussed that
although the technological capability to use sensors for health readings has existed
for a while now, the impact it has had on the health industry has been minimal.
Furthermore, the paper discussed various possibilities in which cloud based or IoT
based health management can be implemented using up and coming technology.
8
developed and discuessed by (Shelar et al, 2013) which focused on taking heart
rate and temperature readings wirelessly using ZigBee. The research was focused
on reducing the repercusions caused by heart patients not getting healthcare on a
timely manner. The resaerchers were from india where, heart patients die
frequently due to this issue. The main components used were the ZigBee module
for data transmission, LM35D for temeprature acquisition and a custom designed
heartbeat monitoring device using LM358. The device construction, although
simple, gives a treasure trove of data that can help patients to get the required
healthcare in a timely manner.
9
2.3 Methodology
The system design was derived from the research papers reviewed in the
literature review. The concepts used are similar, although some enhancements
were brought about to alleviate the shortcomings seen in the system architecture.
One issue that had to be taken into consideration was the fact that the product was
designed for usage by infants. The program works in such a way that the GSM
module and Bluetooth device send information to a caregiver or parent, and the
parent decides if data acquisition needs to be done in order to send information to
healthcare professional. Once the Arduino device is connected to the computer,
the MATLAB GUI automatically connects itself to the analogue outputs of the
Arduino device.
10
Figure 4: MATLAB block diagram
The range of applications that were available for designing a GUI were
very vast. The best options were MATLAB, labview and Fortran. All three of
these programs are very nuanced in terms of functionality and had the capability
of running the required programming for the infant health monitor. Therefore,
further comparison had to be made in order to decide which program was the most
convenient to use along with the device.
11
processed with relative ease. In contrast, MATLAB programming requires
understanding of the programming syntax and application of mathematics in order
to get the required result. In terms of processing large amounts of data MATLAB
is superior to LabVIEW. Moreover, MATLAB provides a wide range of toolboxes
that allow the programmer to enhance the creativity and efficiency of the system.
Moreover, LabVIEW is more useful for signal processing, whereas MATLAB is
better for receiving multitude of analogue signals at a fast rate, which is the main
requirement for this project.
The final GUI design is illustrated above. In the concept design, the
sensors were connected individually and tested in order to get the best possible
results. This was done so that before combining the whole system together, any
flaws in sensors can be identified. The GUI basically consists of three graphs. The
first graph is the movement sensor. The second graph is the temperature sensor
and the third graph is the sound sensor. All readings are graphically represented.
Once the Arduino is connected and start button is pressed, the user will be asked
to check the Arduino is properly connected. The graphs will become scaled and
properly labelled as well. After each button for the respected sensor is pressed,
the graph will show the required amounts of iterations. The temperature is
represented in degree Celsius. Boih the movement and sound is represented in
millivolts. Processing of these sensor data is not necessary as the only requirement
14
is to see fluctuations in the graph that indication motion or excess sound. Upon
testing the threshold for movement is found when the sensor is not moving. The
sound baseline is also found when the room is quiet. With these thresholds
Identified, user or medical professionals can know if the movement variation is
frequent or less. They can identify the frequency of crying and agitation as well.
Figure 9: Thingspeak
Once the channel id and write key is inserted into the MATLAB program,
the data can be uploaded to the channel. The GUI has an upload button which
immediately sends the data to the thingspeak channels. This is very convenient as
doctors can observe the readings in real-time
2.7 Summary
The program works perfectly and takes all the readings from the sensors
simultaneously. Due to the fast processing in MATLAB, the information is
represented on graph immediately and the data is uploaded to thingspeak in a
matter of seconds as well.
15
CHAPTER3
Communication Part
3.1 Introduction
Firstly, the communication network is the most worldwide mobile
communication nowadays. In this case the GSM is one of popular communication
network that are including the initialization of terminal equipment, sending SMS
to group users, and the management on phonebook of SIM card, furthermore a
flexible solution on real-time reading SMS is proposed (B L, 2015). GSM based
on a health monitoring system for the infant’s project mainly works for allowing
family or relatives of patient to check the status of patient health remotely. The
system monitors the temperature and sleeping pattern for the kid’s people, if it
goes above certain limit then immediate informative alert message will be sent to
the registered number. The system also introduced a function through which a
relative of infants will able to check the status of patient by sending message. The
system efficiently updates a family member about health of patient as well as
accurately calculates the health parameter of patient. In other word, the
microphone system is using to monitor the health situation of human from the
shouting or crying sound generated by the human during attach the system in the
body of the kid’s people. The aims of this part are to develop wearable
technologies for healthcare monitoring purposes by an analysis of the sound
signals generated by kid's. The sensitivity of the microphone is enough to capture
the voice of a human being especially within close range while shouting which
reaches up to 100dB. The microphone is used to capture the voice of the user when
shouting for help and high sensitivity microphone is used (Chen and Ser, 2000).
Remote healthcare monitoring allows people to continue to stay at home rather
than in expensive healthcare facilities. It thus provides an efficient and cost-
effective alternative to monitoring
16
3.2 Literature Review
Several monitoring systems have been developed to monitor the situation
of the people. AlShu’eili, Gupta and Mukhopadhyay, 2011 proposed a monitoring
system that can detect the sound within a room. Home Automation system based
on the recognition of voice command that can fully work according to the speech
commands.
17
to remote monitoring, fast network establishment, long communication distance
and reasonable cost. The remote monitoring system based on SMS of GSM is
obtainable. GSM is a digital mobile communication network which grows rapidly
in recent years. Short Message Service of GSM is a value-added service according
to the data packet switching provided by mobile communication. According to
(Peijiang and Xuehua, 2008), the GSM module is using as method of information
transmission that combine date of the remote monitoring station that used to
transmitted to the people who is monitoring. In this system is aimed to
establishing remote monitoring platform based on a GSM short message mode
that can monitor and control the remote communication between the kid’s people
and the family member who is monitoring. A GSM based health care device was
developed by (Adivarekar et al., 2013). The device had temperature sensor and a
heart rate sensor as the main components. The device consisted
The device schematic is as shown above. The device consists of the gsm
module which allows long distance data transmission as well as an alarm system
to give an alert upon emergency situations. The usage of GSM module had a lot
of advantages according to their research. Apart from the fact that the GSM
module has no negative health impacts, it is of significantly small size and this
allows easy integration. Moreover, the device also was seen to have low power
consumption as well. The device is very low cost as well. The research done by
(Adivarekar et al., 2013) concluded that developing healthcare devices with
remote capabilities would reduce the demand for emergency room trips and
routine checkups. Thus bringing about a lot of convinience to patients, doctors
and also has great economic benefit as well. (Shuvo, 2014) had done a similar
18
research as well. This research incorporated GSM systems as well as GPS. The
idea behind it was to get blood pressure readings and send the information directly
to the physician. This was advantageous due to the fact that medication can be
prescribed by the doctor immediately. Similar to the study done by (Adivarekar et
al., 2013) the same conclusion was reached which was, that such devices are
effective, user-friendly and moreover, the system would provide great help to the
healthcare deprived masses all over the world.
3.3 METHODOLOGY
3.3.1 Introduction
This project is divided to three sections, the first section is the design of
GUI that shows the status of kid’s people, remote messaging system to parents if
baby is shouting, crying is monitored and the last section is detects body
temperature of the infant. The concept design of infant system was suggested for
the analysis as it is easy and quick for being dressed by the kid’s. The project is
to be methodically detailed with proper explanation of the materials selection and
the components that have been selected to build the infant system monitoring for
kid’s people which have been taken on the consideration of ideal materials in order
to get best accuracy and a reliable performance. The components that used in this
project are the necessary components used to control the system of this project
such as GSM module and microphone sensor. According to section the user will
be able to change the device settings via SMS.
19
sending alert message using GSM module to family member. GSM module
connected to the Arduino that are used to send SMS to the user who is monitoring
and the Arduino software is used to control the whole system by sending instructions to
the components according to received data of the microphone. Based on this project, in
few year later will improve the robustness of the monitoring systems and increase
the reliability of the high-level in health care.
20
convert them into electrical signal. Firstly, utilize the voice of an infant if the baby
is crying or shouting the microphone will detecting the sound of the baby if there
is a sound will have captured the voice of the infant, after capture the voice will
start to be sampled and filtered to converted to digital data using an analogue-to-
digital converter. Than the Arduino will start to send the instruction to the GSM
module based on the data that has been received from the microphone. Finally,
the GSM will send SMS to the user who is monitoring or family member about
the situation of their infant. The Programming language that used is C++ language
to Arduino software to establish and control the path of the infant.
22
capacity of charge to provides enough current around 40mA from Arduino to
make sure the system will be enough to charge battery.
Low power
GSM module 900a High Speed 61
consumption
3.4.3 Microphone
In this project, the microphone is used to capture the voice of the infant
when shouting for help and this microphone is high sensitivity, but in this case, it
can adjust the sensitive of the microphone by potentiometer detecting the sound
threshold can be changed and the Clockwise will make module sensitive to sound
while counter unclockwise will make module less sensitive to sound. When the
sound power of external environment surpasses the present threshold, the output
drives to the low and the green LED will turn ON and on the other hand When the
sound intensity of external environment less than the present threshold, the output
goes high, the Green LED will remain turn OFF. The microphone will be attached
23
near to the infant person for to be more easily accessible. The output of the
microphone will be send to the Arduino Analog input which consist of a 10bit
ADC and then the input will be converted to digital output and send to the
computer via serial communication system to send massage to the user who is
monitoring.
Table 3 shows the comparing of different sound sensor and the criteria of
microphone selection among all other sound sensor refers to the sensitivity,
accuracy and small enough to be located on a human body. Also, the sensitivity
of the microphone is enough to capture the voice of a human being especially
within close range while shouting the infant and the last feature the price is
cheaper than other types of the microphone.
24
significant to know the range for keeping the system. To start this progress there
is a microcontroller is using to require for integrated circuit. One of the popular
microcontrollers that used is Arduino. In addition, Arduino is simple and clear
programming that library codes are available. Moreover, it is easy to use and
flexible enough for advance projects. The Arduino progress board easy to
program, due to the Bootloader which is already programmed in the
microcontroller and uploading the program code to the memory since the whole
project is innovative and requires multiple programming of the microcontroller
for every component added in the system until it achieves the required job of
system.
25
26
The work principle of GSM module
28
Microphone is involved three pins which are supplying power within a
region of output voltage from built-in voltage regulator in the Arduino that
supplies 5 voltage DC and the VCC supply of the microphone is connecting
with 5V in Arduino Uno that will charge one of the microphone plates and by
talking to the microphone the capacitance changes hence the change in the
charge output, also the grounded of the microphone is connecting with ground
of Arduino. This microphone is more sensitivity that can capture the voice of a
human being especially within close range while shouting which reaches up to
100dB. When the infant person is crying or shouting the microphone sound will
capture the voice of the infant, after capture the voice will start to be sampled
and filtered to converted to digital data using an analogue-to-digital converter.
Than the Arduino will start to send the instruction to the GSM module based
on the data that has been received from the microphone to send alert message
to family member or to the user who is monitoring the infant.
29
Also, it is most common program for small microprocessors, because it
provides a good trade-off within development effort and program efficiency,
for this reason it will be easier to wide-ranging guides and ways to solve
problems.
30
Figure 5: Initialize variables for GSM module
Figure 5 starts with void setup that used to Initialize the serial
communication between the Arduino and computer for debugging drive of at
communication serial speed. The (void step) is the main function of any system
to make the program processing and all the process repeat many time to finish
the whole process. The second line that is serial communication code 9600Kbps
is the bus speed of the serial communication between the GSM and the Arduino.
31
the GSM and microphone sensors pins. Hence, the function “soundDetectedVal
= digitalRead” allows to detect the sound when its exceeded a set point that has
been selected and when the sound level exceeds the set point, an LED on the
module is illuminated and the output is low. Sound is detected via a microphone
and fed into a GSM module. And (if condition) was used for if the GSM is
working with SIM, the function starts taking place to send SMS when the infant
shouting or crying. Other function is using to show and print the result on the
serial monitoring. Switch statement used when there are more than two option
it allows to choose several discrete option for microphone if the sound its low
will turn on LED and print send message in serial monitor to pass for a person
who is monitoring. Otherwise, in case High when there is no sound just keep
processing will turn the LEDs off and print off in the serial monitor.
32
order in which you sent them and delivery the messages happens
asynchronously, so this method returns immediately. In this code, void send
Message is using to sets the GSM module in the text mode to be ready to send
the message to set phone number for whom can send SMS. Then loop is created
for checking the statutes of the GSM and microphone sensor. After that, (if
condition) was used to checking the statutes of microphone is working. In
addition, if the voice is low print “LOUD, LOUD” which was written for user
that can read the text message.
3.6 Testing
Once the process was finished, the system was setup and design circuit was
tested. The diagrams of PCB in figure 7 shown the connection of the GSM
module and microphone sensor with Arduino controller.
GSM module
34
3.7 Result
The microphone is connected to the digital pin of the Arduino pin 5 and
the other pins one of them is connected to the grouned than the last one is
connected to the power supply for loaded a program. In this secotin, afetr
connected whole system of this task and by the voice or the shouting of infant
person. The computer will receive the data that coming from microphone then
the data start prepares to transfer to the Arduino which will start give the
instruction by the USB port to send the data to the GSM module to send SMS
to the monitor person.
35
Figure 10 shows the message that have been sent by GSM module based
on the number that have put on the programming code. The message that had
written on the program is (LOUD, LOUD). Therefore, the GSM module is done
effectively without any issues.
3.8 Summary
Overall, this part of task is introduced a function through which a relative of
infants will able to check the status of patient by sending SMS message by using GSM
module when the kid’s people shouting or crying the microphone sensor will capture
the voice that generated by the human and this system will attach on behind the kid’s
people. The aims of this part are to develop wearable technologies for healthcare
monitoring purposes by an analysis of the sound signals generated by kid's to updates
a family member about health of patient as well as accurately calculates the health
parameter of patient. The project will carry in finding a suitable monitoring system for
the kid’s people.
36
Chapter 4
Electrical part
4.1 Introduction
The healthcare industry (also called the medical industry or health
economy) is a combination and integration of sectors within the economic
system that provides goods and services to treat patients with curative,
preventive, rehabilitative, and palliative care. It includes the generation and
commercialization of goods and services lending themselves to maintaining and
re-establishing health. The modern healthcare industry is divided into many
sectors and depends on interdisciplinary teams of trained professionals and
paraprofessionals to meet health needs of individuals and populations. In our
project, we focus on the healthcare equipment and services that provide medical
equipment, and medical supplies.
A sensor is a device which has a job to produces a measurable response
to a change in a physical condition, such as temperature or thermal conductivity,
or to a change in chemical concentration. Sensors are particularly useful for
making in-situ measurements such as in industrial process control. A sensor is
used to identify a parameter in one type and report it in another way of power,
often an electrical signal. For example, a pressure sensor might detect pressure
(a technical way of energy) and turn it to power electrical signal for display at
a remote gauge (FARDEN, 2004).
The purpose of this project is to design, developed and test a project
which was able to measure body temperature and motion for infant by using
accelerometer sensor has been created for measuring involuntary human body
motion. Body temperature is one of the key physiological parameters in infant
monitoring. Body temperature are very important parameters that are routinely
measured whenever a patient arrives in a hospital which makes body
temperature one of the very significant property of cardiovascular system the
body temperature also changes from one person to another and varies
37
throughout the day, Body temperature is a measure of your body's ability to
make and get rid of heat.
4.2 METHODOLOGY
This project presents the design of a very low cost and simplified. It can
be measure kid's movement and body temperature the measured data will be
appeared on the LCD display and via Bluetooth send data to android
smartphone application. Evaluation of the device on real signals shows
accuracy in body temperature measurement.
The project should be systematically detailed with a good explanation
of the collection of materials and components used to build an infant monitoring
system that has been taken into consideration from the ideal materials for the
best accuracy and reliable performance. The components used in this project
are the necessary components used to control this project system such as
Bluetooth module, temperature sensors and accelerometer sensors The
methodology for the programming section of the project will be subdivided into
three separate portions where the body temperature will be done using the
Arduino software and the accelerometer and Bluetooth section program will be
explained in detailed including the LCD display used and the desired output of
the system. The analysis of the project breakdown is explained with the aids of
flowcharts to satisfy the objectives of the overall system.
38
needs to measure acceleration along three mutually perpendicular axes to
reconstruct the total acceleration of the system Accelerometer is a measurement
of change in speed, or velocity divided by time,
4.2.2 Flowchart
A flow chart is a graphical or symbolic representation of a process. Each
step in the process is represented by a different symbol and contains a short
description of the process step. The flow chart symbols are linked together with
arrows showing the process flow direction. In this project, the flow chart is
used to show the flow of the project like from the start to what will happen
while carrying out the entire project temperature sensor and accelerometer
sensor how to send data via Bluetooth to show in Android application for infant
monitoring system.
39
Figure 11: Flowchart of system
Fig. 2 shows the system flow chart. Firstly, placing the baby skin and
hand in the infrared sensors the microcontroller gets the Analog reading for
corresponding body temperature. the microcontroller read input voltage from
Analog pin than convert input voltage into temperature in degree Celsius after
that send the value of the body temperature display in LCD the Bluetooth
connection between the processing unit and microcontroller and the Android
device When the signals are digitized by the microcontroller sends the motion
and body temperature to the android “Arduino Bluetooth control” application
through HC-05 Bluetooth module. Through this approach it is now become
very easy for continuous motion detect and body temperature monitoring. The
Programming language that used is C++ language to Arduino software to
establish and control the path of the infant.
40
4.2.3 Block diagram of the system
41
4.3.1 The Microcontroller (Arduino UNO)
Arduino is an open-source platform used for building electronics
projects. Arduino consists of both a physical programmable circuit board
sometimes referred to as microcontroller and a piece of IDE (Integrated
Development Environment) which is responsible of the way the process runs
on your computer, used to write and upload computer code to the physical
board. Arduino is a microcontroller board which has the ability to interact more
of the physical world than the usual PC. Arduino board when connected to the
computer, can be used to control, by taking inputs from sensors, motors, LEDs
and other physical outputs (Arduino, 2014).
42
battery, this voltage is including high capacity of charge to provides enough
current around 40mA from Arduino to make sure the system will be enough to
charge battery.
FEATURES
43
• 5 x 8 dots with cursor
• Built-in controller (KS 0066 or Equivalent)
• + 5V power supply (Also available for + 3V)
• 1/16 duty cycle
• B/L to be driven by pin 1, pin 2 or pin 15, pin 16 or A.K (LED)
• N.V. optional for + 3V power supply
44
Type of sensor Temperature
range
Input voltage Supply current Accuracy
range (typ)
LM35 sensor 5 to 30V
-50 to +300 °F 160µA +/-1 °F
LM34 4 to 30V
-55 to +150°C 114µA +/-0.5°C
4.5 to 10V
LM50 -40 to +125 °C 130µA +/-2 °C
45
Accelerometer ADXL335 Module Specification
Interface 3v/5v microcontroller
Voltage requirement 3-6V DC
Output format Analog output
Measuring rang -/+3g
Measuring values (-3 to +3) X (-274 to +325)
Y (-275 to +330)
Z (-275 to +310)
46
the Bluetooth module and lastly through the serial communication the
Bluetooth module will transmit the data to the computer where the GUI is and
show the result in android application.
4.4.2 Circuit
47
Working principle of Temperature sensor
Circuit:
Connect the temperature sensor to board
Connect the +Vs to +5v on your Arduino board.
Connect Vout to Analog0 or A0 on Arduino board.
Connect GND with GND on Arduino.
I2C_LCD
ARDUINO
SDA A4
SCL A5
GND GND
Vcc 5V
49
Figure 9 : Connecting Arduino with LCD
51
Figure11: final system design
52
Programming Codes
The program structure is separated into two distinct sections; the transmission
section program and the receiver section program. For each section, the program
structure is separately explained by parts, to provide a clear understanding of the
overall program structure. Once the code is written, the Arduino software is used to
test the codes written using the serial monitor. The figure 4.6 below shows the
Arduino software window with the respective features needed to upload and verify
the codes. The flowchart illustrates the sequence at which the program is uploaded
for the testing purpose. As shown, once the electronic circuit is assembled, the
Arduino board is connected to the computer via the USB slot. Once a stable
connection is made, the Arduino codes can be created, altered or deleted. The Arduino
IDE software must include the library functions and the serial connection; otherwise
the board will not be able to communicate with the computer using the serial
connection. Once the connection is established and basic program is written, the
troubleshooting can be done by testing the hardware output response and the serial
monitor output display.
53
Figure13: LM35 and LCD codes
Figure 4 shows codes of LCD connected to the Arduino which are used to
display the body temperature value of the infant and motion to the user who is
monitoring the situation of the infant person. I started by defining the libraries we
need for the LCD. Then we defined the variables needed by the LCD and the LM35
I added the variable temp to display the temperature in Celsius. We define the pin for
reading and assign this constant by pinA0.Our reading will be in Analog pin 0, so we
will use AnalogRead
54
Figure14: read accelerometer axis codes
Using this code we are reading output from X,Y and Z axis od accelerometer during
vibration.
Figure 113: Initialize variables for Bluetooth module and LCD display
Figure 5 starts with void setup that used to Initialize the serial communication
between the Arduino and computer for debugging drive of at communication serial
speed. In the Void setup, I tell the Arduino that I am using a 16X2 LCD, turn on the
back lights and print some lines that will not change. serial communication code
9600Kbps is the bus speed of the serial communication between the Bluetooth and
the Arduino. the setup function will only run once, after each power up or reset of the
Arduino board.
55
Figure114: Arduino code for void loop
Before we can get a Celsius reading of the temperature, the Analog output
voltage must first be read. This will be the raw value divided by 1024 times 5000. It
is divided by 1024 because a span of 1024 occupies 5V. We get the ratio of the raw
value to the full span of 1024 and then multiply it by 5000 to get the millivolt value.
Since the output pin can give out a maximum of 5 volts (1024), 1024 represents the
possible range it can give out. The raw voltage over this 1024 (value) therefore
represents the ratio of how much power the output pin is outputting against this full
range. Once we have this ratio, we then multiply it by 5000 to give the millivolt value.
This is because there is 5000 Millvolts in 5 volts. Once this Analog voltage in
millivolts is calculated reading every 5 seconds.
56
In the first part, we read the accelerometer and keep the numbers within a
range analogWrite wants values from 0 – 255 so this keeps the values returned by
analogRead (sensorXYZ)
57
Testing and code
58
59
Figure 15: The coding of the system
60
Result
.
61
Figure 17: result display on mobile phone
Figure 10 shows the result message that have been sent via Bluetooth module
result show the corresponding android application display for both the motion
function and temperature of the infant. The temperature and accelerometer send via
Bluetooth module is done effectively without any issues. The figure above shows the
testing of the Bluetooth from the Arduino to the Bluetooth module then to the phone.
We download application called Bluetooth Arduino control for testing the receiving
the data. We connected the Bluetooth module to the phone through the serial
communication and did paring for it. However, as it shows in the figure above the
data is received to the phone correctly which means that this Bluetooth is successfully
done.
62
4.5 Summary
In our first article, we have realized a simple circuit for body temperature and
motion by using accelerometer, starting from the components needed, the electrical
diagram of the circuit, to end with the writing of the C++ code and the test application.
In the next article, we will expand the project by entering the threshold values of
temperatures, showing the actions to be done depending on the temperature detected
by the sensor LM35. To sum up, the project objectives have been achieved.
The overall system operating just as expected, we could achieve the required
target with minimum programming, and minimum equipment, when the system is on,
it starts sensing the body temperature and motion than display it on the LCD screen
and showing result with android.
63
CHAPTER 5
5.1 Introduction
Overall, the system consists of three main parts. The GSM module that detects
the sound via analogue signal that is received from the sound sensor. The GSM
module is preprogrammed with a specific number which can be a healthcare
professional or caregiver. The second aspect of the design is the Bluetooth interfacing
with mobile phone. The user can see the temperature and movement of the infant via
the phone as long as the mobile phone is in close vicinity. The third aspect is that of
the GUI and IoT interface. Readings are graphically represented and the user can send
the data to thingspeak channel via a press of the button.
64
The full system works in two separate sections. Firstly, the GSM module sends
information to the user via text message. The second aspect of it is that Bluetooth
module sends the information to the user on the mobile application. This information
is sent to the caregiver or parent. At this point the parent determines if the child
requires medical attention. Once this stage is reached, the user has the choice to
connect the sensors to the MATLAB interface. The GUI shows a graphical
representation of all the data. Moreover, this data can be sent over to the thingspeak
channel immediately as well. This allows a medical professional to look at the
information and determine what the possible issue might be.
65
Figure 10 Bluetooth
The Bluetooth module is also another feature that allows remote
communication to happen. The baby monitor is connected to the mobile application
via Bluetooth signal. The information presented on the interface is done via serial
communication. The data is sent on a loop. The skin temperature is consistently
provided as well as the motion detection. This a great tool as gives information very
directly and can be used in order to get information regarding the baby’s condition
while in nearby vicinity even though out of earshot or sight.
66
Figure 11 GUI results
The GUI shows the graphical representation of the sensor readings. The
volume, movement and the temperature readings are shown. Upon testing to find the
stabilized value for volume and movement, it was determined that there was a specific
baseline when there is either no sound or no movement. This can give an indication
of whether the baby is agitated or having an episode of SIDS.
5.2 Summary
Overall, the system was fully integrated without any major flaws. However,
from time to time an error arises due to the multitude of signals being sent and
received. This issue can be fixed in further improved models of the same device.
Usage of printed circuit boards can be also a good improvement as it would reduce
the space consumed by the whole device. However, the current prototype has a wide
range of capabilities that make it a useful tool for infant health monitoring.
68
CHAPTER 6
SUSTAINABILITY
6.1 Introduction
6.2.1 Environmental:
Environmental sustainability is one of the most important aspects to consider
when proposing an idea as the real-world application, whereby the device or project
must be sustainable in the sense that no negative effect is inflicted towards the
environment in any way to ensure that the future generation is not affected. The
environmental sustainability in terms of the infant health monitoring system designed
does not affect the environment as the system does not produce any harmful by
69
product. The only drawback is the electronic components. However, these
components can be recycled. The construction of the can be recycled and repurposed.
This shows that the project is entirely sustainable in terms of environmental
sustainability.
70
6.3 Summary
In conclusion, the proposed system which is in this project is
environmentally sustainable in the sense that no negative effect is inflicted
towards the environment in any way to ensure that the future generation is not
affected as well as. The system is widely socially accepted and approved by
different nations around the world and would be very useful in populated modern
cities of the globe. The Sustainability should be taken on the consideration for
any project before starting to design or build a system.
71
CHAPTER 7
73
Week
Description
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Electrical System
Title selection
Title Proposal
Components
Prototype Mechanical Part
Literature Review
Assembly
Testing
Communication System
Select the material
Introdution
Literature Review
Proposed methodology
Innovative Idea
Components & Concept Design
Build the Prototype Part of
Communication System
Programming of the Communication
System
Testing
Result 74
Graphical User Interface Integration (GUI)
Literature Review
Idea of GUI for the Project
Innovative Idea of the GUI
Select the Software
Concept Design
System Implementation
Testing the GUI
Mid-Point Presentation
Assembly
Testing
Project Report Writing
Final Presentation
Poster Presentation
Submission report
75
7.3 Estimated Cost Analysis
The estimated cost analysis for the project components used will be done by
components used for the project. Table 8.2 below shows the details of all the
components used, with the respective quantity of each component used for the project
construction and the estimated and actual cost of the entire list of components. The
total cost of the system was a total of RM424.5.
76
CHAPTER 8
77
Clause 3.0: “A Registered Engineer shall issue public statements only in an
objective and truthful manner.”
all workings and information in addition to the topics in the report were
mentioned from reliable sources such as journals, conference papers and reference
from valid sources such as periodic reports and academic reports. Moreover, basic
engineering principles are used. As a result, all results are as accurate as possible.
Clause 4.0: “A Registered Engineer shall act for each employer or clients as
faithful agent or trustee.”
All members of the group were work together as a team in this project to carry
their parts in a responsible and ethical manner. Members share their ideas in order to
ensure all of this under the acceptable conditions set by the administration and the
leader of the group provided sound instructions, and the other members followed and
supported the leader. Discussions were held in the presence of all members and the
idea of each member was respected. Group meetings were held within an appropriate
period to update all members with each other's progress.
Clause 5.0: “A Registered Engineer shall conduct himself honourably,
responsibly, ethically and lawfully to enhance the honour, reputation and usefulness
of the profession.”
All group members are carried out their parts in a responsible and ethical
fashion. with respect to the Code of Professionalism Conduct. All tasks assigned were
completed within the given time period, without violating any professional codes, nor
breaking any laws. The project was finished under the obedience of laws and proper
consideration of ethical as well.
78
8.3 Summary
79
CHAPTER 9
9.1 Discussion
The main system functions were analyzed via routine testing over a long
period of time to ensure the integrity of the baby monitor. This is important as a failure
of the device may result in a catastrophe. The data transmission speed to the
thingspeak channel was also checked. As this would ensure a fast response from the
doctor. The data transmission speed to thingspeak was one data point per every 15
seconds. This was the maximum speed and it was deemed to be sufficient. The full
system consists of a GSM module, Bluetooth module, temperature sensor, movement
sensor and a sound sensor. These devices are integrated in such a manner that it
provides maximum information to the user. The main purpose of the product was to
provide caregivers with a sense of security regarding the health of the infant. The
device focuses on data acquisition and transmission in three main ways. As discussed
before, these methods are via the MATLAB interface, GSM and Bluetooth. The
device also gives the user an option to send information to the health care professional
as well.
Moreover, the economic aspect of the device is impressive as well. The device
takes readings from three different sensors, sends information via three different
communication devices which means that even if one communication portal is
hindered, there will be two other backup devices. This is a great feat to achieve under
the low budget that was decided for the project.
Future enhancements that can be brought to the system include the addition of
more sensors to give more information regarding the patient’s condition. Another
improvement that can be brought is the inclusion of wireless transmission to the
thingspeak channel. The existing design concept can be further developed without
bringing any changes to the existing code or the system infrastructure.
80
The development of printed circuit boards could also make the device more
marketable. However, the current device is designed for fitting into a vest. Therefore,
further improvement was not required in terms of size reduction. However, this
improvement can be brought about to later models of the infant health monitor. The
LCD display can also be programmed to show more information and real-time data
that can give a better idea of the health condition.
9.2 Conclusion
In conclusion, all the objectives that were set before hand in the project were
achieved. The device was required to detect temperature and movement. An
additional feature was added in the form of sound detection. Moreover, the system
was modified to make it more sensible in terms of functionality. This was done so by
making parts of the system working independently to each other. This gives an
advantage to the user as this essentially means the device has failsafe mechanisms in
place. This is done so to ensure the purpose of the product, which is to give a sense
of security to the parent or caregiver.
81
REFERENCES
PENG, Y. AND WENG, X. (2008). 7th Asian-Pacific Conference on Medical and Biological
Engineering. 19(1). p. 225–228.
SHELAR, M., SINGH, J. AND TIWARI, M. (2013) Wireless Patient Health Monitoring
System. International Journal of Computer Applications. 62(6). p.1-5.
HASSANALIERAGH, & PAGE. (2015) Health Monitoring and Management Using IoT
Sensing Using Cloud Based Processing. IEEE International Conference on Services
Computing. USA and 27th June-2th July 2015. pp. 285-292.
Gantt.com, (2015). What is a Gantt Chart? Gantt Chart Information, history and Software.
[online] Available at: http://www.gantt.com/ [Accessed 25 JULY. 2017].
ALSHU’EILI, H., GUPTA, G. SEN AND MUKHOPADHYAY, S. (2011) Voice
Recognition Based Wireless Home Automation System. In IEEE International Conference
on Mechatronics (ICOM). Malaysia and 17th-19th May 2011. pp. 1–6.
PEIJIANG, C. P. C. AND XUEHUA, J. X. J. (2008) Design and Implementation of Remote
Monitoring System Based on GSM. In IEEE Pacific-Asia Workshop on Computational
Intelligence and Industrial Application. China and 19th-20th Dec 2008. pp. 4663–4667.
82
B L, R. (2015) Voice Call Using Arduino and GSM Module. International journal of
Emerging Trends in Science and Technology. 02(08). p. 5305-5309
Miao Yu, Yuanzhang Yu, Rhuma, A., Naqvi, S., Liang Wang, and Chambers, J. (2013). An
Online One Class Support Vector Machine-Based Person-Specific Fall Detection System for
Monitoring an Elderly Individual in a Room Environment. IEEE J. Biomed. Health Inform.,
17(6), pp.1002-1014.
83