Iot Based Automatic Critical Health Monitoring System Using Arm - 7
Iot Based Automatic Critical Health Monitoring System Using Arm - 7
PROJECT REPORT
ON
IOT BASED AUTOMATIC CRITICAL HEALTH MONITORING
SYSTEM USING ARM -7
BACHELOR OF TECHNOLOGY
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
SUBMITTED BY
N. MANASA 15D31A0450
R. RAJINI 15D31A0453
N. MANASA 15D31A0450
R. RAJINI 15D31A0453
We grateful to our principal Dr. RATNAKAR PANDU for his moral support
and also for granting us permission to utilize the labs.
We would also like extend our thanks to the faculty of the department of
electronics and communication Engineering, the office staff and other technical and
non-technical for their support, help and encouragement.
We truthfully acknowledge the help and moral support rendered by our parents.
Last, but not the least, we thank all our friends for their moral support in making this
project lead to a successful completion.
N. MANASA 15D31A0450
R. RAJINI 15D31A0453
i
ABSTRACT
Information and communication technologies and transforming our social
interactions, lifestyle and work space one of the most promising application of
information technology is healthcare and wellness management. The current trend
places an emphasis on the monitoring of health conditions and management of wellness
a significant contributor to individual healthcare and wellbeing.
Health monitoring is the major problem in today’s world. Due to lack of proper
health monitoring, patient suffer from serious health issues. There are lots of IoT
devices now days to monitor the health of patient over internet. Health experts are also
taking advantage of these smart devices to keep an eye on their patients. With tons of
new healthcare technology start-ups, IoT is rapidly revolutionizing the healthcare
industry.
Here in this project, we will make an IoT based automatic critical Health
Monitoring System which records the patient heart beat rate and body temperature,
humidity, and motion of body also data will be updating in website/page continuously.
Pulse rate and body temperature readings are recorded. so that patient health can be
monitored from anywhere in the world over internet.
ii
INDEX
ACKNOWLEDGEMENT i
ABSTRACT ii
LIST OF FIGURES v
LIST OF TABELS v
CHAPTER 1 1
INTRODUCTION 1
1.3 Methodology 2
CHAPTER 2 3
LITERATURE REVIEW 3
2.1 Origin 3
CHAPTER 3 6
ARCHITECTURE 6
iii
3.6 SCHEMATIC DIAGRAM DESCRIPTION 9
CHAPTER 4 12
HARDWARE DISCRIPTION 12
SPECIFICATIONS 26
4.7 BUZZER 35
CHAPTER 5 41
SOFTWARE DESCRIPTION 41
5.1 µVISION4 41
RESULT 49
ADVANTAGES 52
APPLICATIONS 52
CONCLUSION 53
FUTURE SCOPE 54
iv
REFERENCES 55
APPENDIX 56
LIST OF FIGURES
LIST OF TABELS
TABLE 4. 1 LCD DISCRIPTION 29
TABLE 4. 2 FUNCTIONS OF AT COMMAND 35
TABLE 4. 3 FUNCTION OF AT COMMANDS 38
v
IOT BASED AUTOMATIC CRITICAL HEALTH MONITORING SYSTEM USING ARM -7
CHAPTER 1
INTRODUCTION
1.1INTRODUCTION
Internet of things is a technology of the future that has already started to touch
Our homes. We proposed an IoT based automatic critical Health Monitoring System
using ARM-7. In this model we are monitoring the patient condition about the health
i.e., heartbeat, temperature, humidity, moisture sensor when patient required. This
model is useful to patients to know about his/her health without going hospitals.
1.3 Methodology
In this project we have temperature, humidity, moisture and heart beat readings
which are monitored using microcontroller. These sensors signals are send to
microcontroller Here patients body temperature, heart rate, humidity &moisture is
measured using respective sensors and it can be monitored in the screen of mobile using
micro controller as well as monitoring through anywhere in the world using internet
source.
In this project is to monitor the health condition of the patient thorough the
sensing the data from different sensors to the micro controller. These working
procedures can be explained through
CHAPTER 2
LITERATURE REVIEW
2.1 Origin
The main goal of this project to the exponentially growing healthcare costs
coupled with the increasing of patients in receiving care in the consolation of their own
homes have prompted a serious need to revolutionize patient healthcare system. The
existing work lacks flexibility, scalability and energy efficiency. This study addresses
this challenge by augmenting healthcare system with inexpensive but flexible and
scalable pervasive technologies that long-term remote health monitor. The Pervasive
Patient Health Monitoring is based on integrated cloud computing and Internet of
Things technologies. To demonstrate the suitable of the proposed infrastructure, a case
study for real- time monitoring of a patient suffering from heart failure using ECG is
presented. The experimental evaluation of the proposed Patient Health Monitoring is a
flexible, scalable and energy efficiency remote patient health monitor system. The
increased use of mobile technologies and smart devices in the area of health caused
impact on universe. Health experts are increasingly taking the advantages of
technologies brings together generating a significant improvement in healthcare
monitoring system in clinical settings and out of them. The greater number of users are
being served from the advantages of mobile health application and healthcare support
to improve, help their health. The applications have a major for these users, so intuitive
environment. The Internet of Things is increasingly allowing devices connecting to the
Internet and provides information of patient health status. And provide information in
real time scenario to doctor assist. Diseases such as heart, pressure among others are
remarkable in the world problem. The aim of this article is to develop an architecture
based on ontology capable of monitoring the health and workout routine
recommendations to patients.
In this project a patient healthcare monitoring system with mobile phone and
web service capabilities. It provides end to end solutions. Specifically, physiologic
parameters are including respiration rate , heart rate are measured by sensors and
recorded by a mobile phone which presents the graphical interface for the user to
observe his/her health status more easily; it provides doctors and family members with
necessary data through a web interface and enables authorized personnel to monitor the
patient’s condition and to facilitate remote diagnosis; and it supports real-time alarming
and positioning services during an urgent situation, such as a tumble or a heart attack,
so that unexpected events can be handled in a timely manner. To meet the requirement
of emergency situations, a Wi-Fi based localization method was proposed for indoor
environment. Experimental results showed the stable performance of the proposed
Remote Health Monitoring system. The main limitation was the system was capable of
only real-time monitoring of the patient’s status, not professional analysis and
instruction.
Patient healthcare monitor represent most attractive application areas for the
IoT. The IoT has the potential to offer rise to several medical applications like remote
health observance, chronic diseases, and older care. Compliance with treatment and
medication at home and by healthcare providers is another important potential
application. Therefore, varied medical devices, sensors and diagnostic and imaging
devices are often viewed as good devices or objects constituting a core a part of the
IoT. IoT based care service area unit expected to scale back prices, increase the standard
of life and enrich the user’s expertise. From the attitude of healthcare suppliers, the IoT
has the potential to scale back device time period through remote provision. IoT
provides for the efficient scheduling of limited resources by ensuring their best use and
service for patients. Ease of cost-effective interactions through seamless and secure
connectivity across individual patients, clinics, and healthcare organizations is an
important trend. Up-to-date healthcare networks driven by wireless technologies are
expected to support chronic diseases, early diagnosis, real-time monitoring, and
medical emergencies. Gateways, medical servers, and health databases play vital roles
in creating health records and delivering on-demand health services to authorize
stakeholders. The use of wearable device for observation physical health aspects of
dementedness patients can benefits formal home-based care, by providing formal
caregivers with further, vital important information concerning important, health-
related events that will have happened throughout the non-visit home care hours.
Wearable devices able to automatically recognize the user’s activity state without the
user pressing any button to mark the start or end time of the activity.
CHAPTER 3
ARCHITECTURE
START
No
If
Abnormal ?
YesY
Buzzer alert
Stop
2.Temperature sensor
3.Humidity sensor
5.Motion sensor
6.Wi-Fi module
7.LCD
8.Buzzer
9.Power supply
1. Keil u-vision
2. Proteus
3. Flash magic
To operate IOT based health monitoring system project, you need a Wi-Fi
connection. The microcontroller connects to the Wi-Fi network using a Wi-Fi module.
This project will not work without a working Wi-Fi network. You can create a Wi-Fi
zone using a Wi-Fi zone using Hotspot on your smartphone. The microcontroller board
continuously reads input from these 4 sensors, Then it sends this data to the cloud by
sending this data to a particular URL/IP address. Then this action of sending data to IP
is repeated after a interval of time. For example, in this project, we have sent data after
every 30 seconds
The usage of LCD is an output device to know the status of the system. Here
LCD is interfaced to the port1 of the microcontroller in 8bit mode data pins
(D4,D5,D6,D7) are connected to P1.18,P1.19,P1.20,P1.21 respectively and remaining
data pins are connected to the ground. The register selective (RS)&enable (EN) pins
are connected to the contrast adjustment using a 1K variable resistor through power
supply.
As a prototype heartbeat sensor are used to counts the normal heartrate and it is
connected to the pin P0.5. If the heart rate is above the normal heart beat(75).Then the
microcontroller get logic1,hence the buzzer will be blown.
Humidity sensor is used to measure the body humidity and it is connected to pin
P0.3 of microcontroller. If the logic 0 humidity in ON and when the logic is 1 then the
humidity is OFF. If the logic 0 received from the humidity sensor then the buzzer will
be blown.
Moisture sensor is detecting the level content of water and it is connected to the
pin P0.4. If the logic 0 then MOS is wet and when the logic 1 then MOS is dry. If the
logic 0 is received from the moisture sensor then the buzzer will be blown.
The information about the sensors can be passed to the other user through Wi-
Fi module. The Wi-Fi module interfaced to the microcontroller using UART pin having
a intermediate max 232 along a switch the switching concept is used to make circuit
simpler.
Finally, here we using Wi-Fi module for monitoring purpose through this client
will get knowledge about health TX & RX pins of Wi-Fi module. Power supply pins of
Wi-Fi module pins connected into power supply and ground pin will be grounded.
“WAITING FOR CONNECT”. After connecting the server, LCD displays that
“CONNECTED”. After getting connected it will be displayed on LCD as “IOT BASED
HEALTH”. After this initialization the LCD displays HB, T, H, M.
Where,
When the person wants to check about his/her health status. when he requires
then the heartbeat sensor is connected to the person. Then it counts the heart rate .If it
is above the normal heartbeat(75) then the particular value will be displayed on LCD.
Buzzer will be blown and then it will be updated in the telnet app and displays that HB
is high.
Moisture sensor is used to detects the content of water level. If the moisture is
high, then the buzzer will be blown, and it will display on the LCD as M is wet. It will
be updated in the telent app and displays as MOS is wet.
CHAPTER 4
HARDWARE DISCRIPTION
4.1 INTRODUCTION TO ARM
ARM is the industry's leading provider of 32-bit embedded RISC
microprocessors. ARM processors are licensed by the majority of the world's leading
semiconductor manufacturers, who together have shipped in excess of 25 billion
processors since the company was formed in 1990. ARM offers a wide range of
processor IP based on a common architecture delivering high performance together
with low power consumption and system cost. This energy-efficient performance is
enhanced by ARM Physical IP, development tools and the largest ecosystem in the
industry. The ARM Connected Community is comprised of over 850 companies
including third party systems, design support, software and training providers which
combined provide a complete solution for products based on the ARM Architecture.
Priority encoder The encoder is used in the multiple load and store instruction
to point which register within the register file to be loaded or kept.
1. User mode
3. Interrupt mode
4. Supervisor mode
5. Abort mode
6. System mode
7.Undefined mode
Due to their tiny size and low power consumption, LPC2141/2/4/6/8 are ideal
for applications where miniaturization is a key requirement, such as access control and
point-of-sale. A blend of serial communications interfaces ranging from a USB 2.0 Full
Speed device, multiple UARTs, SPI, SSP to I2Cs, and on chip SRAM of 8 kB up to 40
kB, make these devices very well suited for communication gateways and protocol
converters, soft modems, voice recognition and low-end imaging, providing both large
buffer size and high processing power. Various 32-bit timers, single or dual 10-bit
ADC(s), 10-bit DAC, PWM channels and 45 fast GPIO lines with up to nine edge or
level sensitive external interrupt pins make these microcontrollers particularly suitable
for industrial control and medical systems.
PINSEL 2 It is a special case, and is used to control whether pins 1.16 to 1.31 are used
as GPIO pins, or as a debug port in combination with a hardware JTAG debugger. These
pins will not be available to use as GPIO during testing and development.
Essentially, the ARM7TDMI processor has two instruction sets The standard 32-bit
ARM set
The THUMB set’s 16-bit instruction length allows it to approach twice the
density of standard ARM code while retaining most of the ARM’s performance
advantage over a traditional 16-bit processor using 16-bit registers. This is possible
because THUMB code operates on the same 32-bit register set as ARM code.
THUMB code is able to provide up to 65% of the code size of ARM, and 160%
of the performance of an equivalent ARM processor connected to a 16-bit memory
system.
THUMB also has a major advantage over other 32-bit architectures with 16- bit
instructions. This is the ability to switch back to full ARM code and execute at full
speed.
4.2.1 Description
• Manual Way Heart beat can be checked manually by checking one’s pulses at two
locations- wrist (the radial pulse) and the neck (carotid pulse). The procedure is to
place the two fingers (index and middle finger) on the wrist (or neck below the
windpipe) and count the number of pulses for 30 seconds and then multiplying that
number by 2 to get the heart beat rate. However pressure should be applied minimum
and also fingers should be moved up and down till the pulse is felt.
• Using a sensor Heart Beat can be measured based on optical power variation as
light is scattered or absorbed during its path through the blood as the heart beat
changes.
Transmission Light emitted from the light emitting device is transmitted through
any vascular region of the body like earlobe and received by the detector.
Reflection Light emitted from the light emitting device is reflected by the regions.
The basic heartbeat sensor consists of a light emitting diode and a detector like
a light detecting resistor or a photodiode. The heart beat pulses causes a variation in the
flow of blood to different regions of the body. When a tissue is illuminated with the
light source, i.e. light emitted by the led, it either reflects (a finger tissue) or transmits
the light (earlobe). Some of the light is absorbed by the blood and the transmitted or the
reflected light is received by the light detector. The amount of light absorbed depends
on the blood volume in that tissue. The detector output is in form of electrical signal
and is proportional to the heart beat rate.
This signal is actually a DC signal relating to the tissues and the blood volume
and the AC component synchronous with the heart beat and caused by pulsatile changes
in arterial blood volume is superimposed on the DC signal. Thus the major requirement
is to isolate that AC component as it is of prime importance.
Practical heartbeat Sensor examples are Heart Rate Sensor (Product No PC-
3147). It consists of an infrared led and an ldr embedded onto a clip like structure. The
clip is attached to the organ (earlobe or the finger) with the detector part on the flesh.
Pin2 and 3 are grounded. Pin 4 is the output. Pin 1 is also the enable pin and pulling it
high turns the LED on and the sensor starts working. It is embedded on a wearable
device which can be worn on the wrist and the output will be sent wirelessly (through
WI-FI MODULE) to the computer for processing.
As described above regarding the principle of heart beat sensor, when the finger tissue
or the earlobe tissue is illuminated using a light source, the light is transmitted after
getting modulated i.e. a part getting absorbed by the blood and the rest being
transmitted. This modulated light is received by the light detector.
Here a Light Dependent Resistor (LDR) is used as a light detector. It works on the
principle that when light falls on the resistor, its resistance changes. As the light
intensity increases, the resistance decreases. Thus, the voltage drop across the resistor
decreases.
Here a comparator is used which compares the output voltage from the LDR to
that of the threshold voltage. The threshold voltage is the voltage drop across the LDR
when the light with fixed intensity, from the light source falls directly on it. The
inverting terminal of the comparator LM358 is connected to the potential divider
arrangement which is set to the threshold voltage and the non-inverting terminal is
connected to the LDR.
When a human tissue is illuminated using the light source, the intensity of the
light reduces. As this reduced light intensity falls on the LDR, the resistance increases
and as a result the voltage drop increases. When the voltage drop across the LDR or the
non-inverting input exceeds that of the inverting input, a logic high signal is developed
at the output of the comparator and in case voltage drop being lesser a logic low output
is developed. Thus the output is a series of pulses. These pulses can be fed to the
Microcontroller which accordingly processes the information to get the heart beat rate
and this is displayed on the Display interfaced to the Microcontroller.
Features
Applications
4.3.1 Description
Humidity Sensor is one of the most important devices that has been widely in
consumer, industrial, biomedical, and environmental etc. applications for measuring
and monitoring Humidity.
Humidity is defined as the amount of water present in the surrounding air. This
water content in the air is a key factor in the wellness of mankind. For example, we will
feel comfortable even if the temperature is 00C with less humidity i.e. the air is dry.
But if the temperature is 100C and the humidity is high i.e. the water content of
air is high, then we will feel quite uncomfortable. Humidity is also a major factor for
operating sensitive equipment like electronics, industrial equipment, electrostatic
sensitive devices and high voltage devices etc. Such sensitive equipment must be
operated in a humidity environment that is suitable for the device
Domestic-
Industrial
Agriculture
Irrigation techniques like drip irrigation need accurate moisture content for
plants. Also, the moisture in the soil plays an important role in the proper growth of the
plant. Other areas where humidity control is required is indoor vegetation.
Almost all electronic devices are rated with a range of humidity values in which
they work as expected. Generally, this value will be something like 10% – 50%
Humidity. Semiconductor Fabs (Fabrication Plants) should maintain very precise
temperature and humidity values as even minute difference can show a huge impact in
the production.
Medical
All the above mentioned and many other applications need sensing of Humidity
and is done using Humidity Sensors. Before discussing about Humidity Sensors, its
types and working principle, we will first see some important terms and definitions
related to Humidity.
Moisture
Generally, the term Moisture means water content of any material or substance.
But practically, the term Moisture refers to the water content in solids and liquids. The
term Humidity refers to the water content in gases (air).
Absolute Humidity Absolute Humidity (AH) is the ratio of mass of the water
vapour to the volume of the air. If m is the mass of the water vapour and V is the total
volume i.e. volume of air and water vapour mixture, then Absolute Humidity AH is
given by
AH = m/V
Relative Humidity or RH is the ratio of the actual water vapour pressure present
in the air at a temperature to the maximum water vapour pressure present in the air at
the same temperature.
NOTE
Specific Humidity Specific Humidity (SH) is the ratio of mass of the water
vapour to the total mass of the air. Mixing Ratio or Humidity Ratio Mixing Ratio is the
ratio of mass of the water vapour to mass of the dry air.
Dew Point Temperature Dew Point Temperature is the temperature at with the
water vapour content is saturated in the air. At Dew Point temperature, the Relative
Humidity RH is 100%. In other words, for the air to hold maximum amount of water
vapor (or moisture), it has to reach Dew Point Temperature.
Resistive Humidity Sensors are another important type of Humidity Sensors that
measure the resistance (impedance) or electrical conductivity. The principle behind
resistive humidity sensors is the fact that the conductivity in non – metallic conductors
is dependent on their water content.
The electrodes are placed in inter digitized pattern to increase the contact area.
The resistivity between the electrodes changes when the top layer absorbs water and
this change can be measured with the help of a simple electric circuit.
Some of the commonly used materials are salt, specially treated substrates, solid
polyelectrolytes and conductive polymers. Modern Resistive Humidity Sensors are
coated with ceramic substance to provide extra protection. The electrodes in the sensor
are usually made of noble metals like gold, silver or platinum.
• Low cost
• Small Size
• The distance between the sensor and signal circuit can be large (suitable for
remote operations).
• Highly interchangeable as there are no calibration standards.
Resistive or Electrically Conductive Humidity sensors are low cost sensors with
relatively small size. They are often used in several industrial, domestic or residential
and commercial applications
The following are some of the factor that must be taken into consideration when
selecting a Humidity Sensor.
• Output repeatability
• Circuit complexity
• Resistance to contamination
• Reliability of the sensor
4.4.1 Description
The Moisture sensor is used to measure the wet condition of the baby’s bed also
for old peoples. It is fixed in the bed of the baby or old people and measure the values.
The probe can be powered with an DC supply or batteries in the range of 3.5 to 20 volts.
The output is a voltage in the range of 0 to 3v, so any multimeter can be used to measure
the moisture level.
SPECIFICATIONS
• Working Voltage5V
• Working Current<20mA
• Interface type Analog
• Working Temperature10°C~30°C
This sensor can be connected in two modes; Analog mode and digital mode. First,
we will connect it in Analog mode and then we will use it in Digital mode.
A0 Analog output
D0 Digital output
GND Ground
The Module also contains a potentiometer which will set the threshold value
and then this threshold value will be compared by the LM393 comparator. The output
LED will light up and down according to this threshold value.
• Vcc to 5V.
• GND to GND.
• A0 to Analog 0 of microcontroller.
A program must interact with the outside world using input and output devices
that communicate directly with a human being. One of the MOSt common devices
attached to an controller is an LCD display. Some of the MOSt common LCDs
connected to the controllers are 16X1, 16x2 and 20x2 displays. This means 16
characters per line by 1 line 16 characters per line by 2 lines and 20 characters per line
by 2 lines, respectively.
Most LCDs with 1 controller has 14 Pins and LCDs with 2 controller has 16
Pins (two pins are extra in both for back-light LED connections).
EN Line is called "Enable." This control line is used to tell the LCD that you are
sending it data. To send data to the LCD, your program should make sure this line is
low (0) and then set the other two control lines and/or put data on the data bus. When
the other lines are completely ready, bring EN high (1) and wait for the minimum
amount of time required by the LCD datasheet (this varies from LCD to LCD), and end
by bringing it low (0) again.
RS Line is the "Register Select" line. When RS is low (0), the data is to be treated as a
command or special instruction (such as clear screen, position cursor, etc.). When RS
is high (1), the data being sent is text data which should be displayed on the screen. For
example, to display the letter "T" on the screen you would set RS high.
RW Line is the "Read/Write" control line. When RW is low (0), the information on the
data bus is being written to the LCD. When RW is high (1), the program is effectively
querying (or reading) the LCD. Only one instruction ("Get LCD status") is a read
command. All others are write commands, so RW will alMOSt always be low. Finally,
the data bus consists of 4 or 8 lines (depending on the mode of operation selected by
the user). In the case of an 8bit data bus, the lines are referred to as DB0, DB1, DB2,
DB3, DB4, DB5, DB6, and DB7.
It employs a 32-bit RISC CPU based on the Tensilica Xtensa L106 running at
80 MHz (or overclocked to 160 MHz). It has a 64 KB boot ROM, 64 KB instruction
RAM and 96 KB data RAM. External flash memory can be accessed through SPI. It is
with the range of 100 to 1000 feets. ESP8266 module is low cost standalone wireless
transceiver that can be used for end-point IoT developments. To communicate with the
There are many third-party manufacturers that produce different modules based
on this chip. So, the module comes with different pin availability options like,
• ESP-01 comes with 8 pins (2 GPIO pins) – PCB trace antenna. (shown in above
figure)
• ESP-02 comes with 8 pins, (3 GPIO pins) – U-FL antenna connector.
• ESP-03 comes with 14 pins, (7 GPIO pins) – Ceramic antenna.
• ESP-04 comes with 14 pins, (7 GPIO pins) – No ant.
GPIO0 & GPIO2 - General Purpose I/O Pins. These pins decide what mode (boot or
normal) the module starts up in. It also decides whether the TX/RX pins are used for
Programming the module or for serial I/O purpose.
To program the module using UART, Connect GPIO0 to ground and GPIO2 to
VCC or leave it open. To use UART for normal Serial I/O leave both the pins open
(neither VCC nor Ground).
Working AT OK
Restart AT+RST OK
.......
Ready
Configuration OK
of software AT+CWSAP
mode ERROR
Set AT+CIPMUX=<mode> OK
TCP/UDP
Mode -
Connection
0 = Single Connection
1 = Multiple Connection
2 Got IP
3 Connected
4 Disconnected
SEND OK
0 Delete server
1 Create server
4.7 BUZZER
A buzzer or beeper is an audio signaling device, which may be mechanical,
electromechanical, or piezoelectric. Typical uses of buzzers and beepers include alarm
devices, timers and confirmation of user input such as a mouse click or keystroke.
FIGURE 5. 4 Buzzer
Specifications
• On-board passive buzzer
• On-board 8550 triode drive
• Working voltage 5V
Pin Configuration
1. VCC
2. Input
3. Groud
Frequency Response
Sound pressure level, SPL, is the deviation from atmospheric pressure caused
by the soundwave expressed in decibel Pascals. It is generally proportional to input
voltage and decays by 6 dB's when doubling the distance from the buzzer.
All things have a specific frequency at which they tend to vibrate. This
frequency is called the resonant frequency. For buzzers, the resonant frequency is the
frequency at which they will be the loudest.
The drivers provide RS-232 voltage level outputs (approx. ± 7.5 V) from a
single + 5 V supply via on-chip charge pumps and external capacitors. This makes it
useful for implementing RS-232 in devices that otherwise do not need any voltages
outside the 0 V to + 5 V range, as power supply design does not need to be made more
complicated just for driving the RS-232 in this case.
Pin description
15 GND Ground
CHAPTER 5
SOFTWARE DESCRIPTION
5.1 µVISION4
µ Vision is an IDE (Integrated Development Environment) that helps you
write, compile and debug embedded programs. It encapsulates the following
components
1. A project manager.
2. A make facility.
3. Tool configuration.
4. Editor.
5. A powerful debugger.
To help you get started, several example programs (located in the
\C51\Examples, \C251\Examples, \C166\Examples, and
1. HELLO is a simple program that prints the string "Hello World" using the
Serial Interface.
5.Save the Project by typing suitable project name with no extension in u r own folder
sited in either C\ or D\
12.Now double click on the Target1, you would get another option “Source
group 1” as shown in next page.
13.Click on the file option from menu bar and select “new”
14.The next screen will be as shown in next page, and just maximize it by double
clicking on its blue boarder.
16.For a program written in Assembly, then save it with extension “. asm” and
for “C” based
18.Now right click on Source group 1 and click on “Add files to Group Source”
19.Now you will get another window, on which by default “C” files will appear.
20.Now select as per your file extension given while saving the file
22.Now Press function key F7 to compile. Any error will appear if so happen.
26.Now Click on the Peripherals from menu bar, and check your required port
as shown in fig below
RESULT
Above FIGURE 6.1 is the over view of our project which consists of
microcontroller, sensors, communication parts. If power is applied to the system ,then
it’s initialize the sensors ,LCD and communication devices
At start initializing the Wi-Fi get initialized as shown in FIGURE 6.2,then the
used get connected to the Wi-Fi using android application called TELNET.
After connecting the Wi-Fi with android mobile, then the LCD displays
CONNECTED, By using this we can know the system status whether system is
connected or not.
As shown below FIGURES 6.3 the sensor sense the data and transfer to the
microcontroller, then the micro controller displays the data through LCD.
As shown in FIGURE 6.3, All sensors values are displayed in the LCD.
T indicates TEMPERATURE
H indicates HUMIDITY
M indicates MOISTURE
ADVANTAGES
• Continuous monitoring It can be used in hospitals on operated patients for
monitoring their vital parameters.
• Record Keeping This system contains GUI which maintains the history of
patients.
• Increased Efficiency The number of nurses required for keeping a check on
patients can be reduced to large extent.
• More accurate Chance of human error in checking health parameters are also
reduced.
APPLICATIONS
• The staying of specialist is eliminated.
• It is multipurpose so that overall conditions are easily measured.
• Easy to operate.
• Compare with compact sensors it gives better performance.
• Easy and reliable for doctors.
• Increases efficiency.
CONCLUSION
In this project, we are developed and designed health monitoring system using
ARM7 for the critical as well as normal patients. For monitoring the continually
physical data of the patients, the device cans regular monitoring the condition of the
patients. This device is easy to handle every one. Its connectivity through the server by
using Wi-Fi module and ARM-7 can stored as well as display the data into digital form.
The data can be transmits and receives form long distance using IOT, and gives the
solution for villager area hospitals and patients for easy to communicate with the
superior options. Its use less power consumption and fast to communicate to the other
devices because using ARM-7 possessor, that’s why analyse the correlation between
collected data to calculate more reliable conclusions for the device technology.
FUTURE SCOPE
We can add a GPS module in IOT patient monitoring using Arduino Uno and
Wi-Fi module project. This GPS module will find out the position or the location of the
patient using the longitude and latitude received. Then it will send this location to the
cloud that is the IOT using the Wi-Fi module. Then doctors can find out the position of
the patient in case they have to take some preventive action
REFERENCES
1. Mrudula Borkar, Neha Kenkre and Harshada Patke, “An Innovative approach for
Infant Monitoring System using Pulse Rate and Oxygen level”, International Journal of
Computer Applications (0975 – 8887) Volume 160 – No 5, February 2017.
December 2015.
and K.A.M. Annuar, “Temperature Monitoring System for Infant Incubator Using
6. Prof. Kranti Dive and Prof. Gitanjali Kulkarani, “Design of Embedded Devicefor
7. Faruk AKTAS, Emre KAVUS and Yunus KAVUS, “A Real-Time Infant Health
APPENDIX
#include <lpc214x.h>
#include <stdio.h>
#include <string.h>
#include "lcd.h"
#include "serial.h"
//#include "gsm.h"
#include "gpio.h"
#define ON '1'//0x31
#define OFF '0' //0x30
#define heart P0_5
#define MOS P0_4
#define hum P0_3
#define buzzer P0_16
void Wi-Fiinit()
{
stringlcd(0x80,"Wi-Fi Initilizing");
string_0("AT\r\n"); delay(1500);
//okc();
string_0("ATE0\r\n");
okc();
string_0("AT+CWMODE=3\r\n");
delay(1500);
// string_0("AT+CWSAP=\"org_6547\",\"connectnow\",5,0\r\n");
delay(1500);
string_0("AT+CIPMUX=1\r\n");
delay(1500);
string_0("AT+CIPSERVER=1,23\r\n");
delay(1500);
stringlcd(0x80,"WAITING FOR CONNCT");
}
{
while(receive_1()!='C');
for(count=0;count<14;count++)
{
receive_1();
}
for(count=0;count<24;count++)
{
gps_location[count]=receive_1();
}
}
void lcdbasic()
{
clcd(1);
stringlcd(0x80,"HB");//0x83,4,5
stringlcd(0x88,"T"); //0x8A,9,a
stringlcd(0xc0,"M"); //0xc2,3,4
stringlcd(0xc6,"L"); //0xc8,9,a
stringlcd(0xcb,"H"); //0xcd,e,f
}
void beep()
{
IOSET0=buzzer;delay(2000);IOCLR0=buzzer;
}
void main() //gsm modem is connected to serial0 and system is connected to serial1
{
unsigned char rec='X',rec1='x',p;
unsigned long int cnt=0,hc=0,ht=0;
unsigned int temp=0,hb;
for(p=0;p<14;p++){rfid_t[p]=0;}
pin();
IOCLR0=buzzer;
ser_init_0(0x61,0x00);
ser_init_1(0x61,0x00); //serial initilization
initlcd();
hb=66+cnt%10;
clcd(0x8b);conv(hb);
if(hb >= 76)
{ beep();
string_0("AT+CIPSEND=0,15\r\n");delay(1500);
string_0("High H.B");conv_serial_0(temp);string_0("\r\n");delay(2000);
}
if(inp0(hum) == 0)
{
stringlcd(0xc2,"ON ");
beep();
string_0("AT+CIPSEND=0,10\r\n");delay(1500);
string_0("High Hum\r\n");delay(2000);
}
if(inp0(hum) == 1)
{
stringlcd(0xc2,"OFF");
}
if(inp0(MOS) == 0)
{
stringlcd(0xca,"Wet");
beep();
string_0("AT+CIPSEND=0,9\r\n");delay(1500);
string_0("MOS Wet\r\n");delay(2000);
}
if(inp0(MOS) == 1)
{
stringlcd(0xca,"Dry");
}
}//end of while
}