Advance Telemedicine Application Using Iot With Android Os
Advance Telemedicine Application Using Iot With Android Os
Advance Telemedicine Application Using Iot With Android Os
ABSTRACT
contents
1.INTRODUCTION
1.1 General introduction 1
1.2Parameters of measurement 2
1.3 Motivation 3
1.4 Objective 4
1.5 Target specification 5
1.6 Organization of project report 6
2.LITERATURE SURVEY
2.1 Background Theory 7
2.2 Introduction to project tittle 8
3.SYSTEM ANALYSIS
3.1 Existing System 9
3.2 Proposed System 10
3.3 Feasibility study 11
4.REQUIREMNT SPECIFICATION
4.1 Hardware requirements 12
4.2 Software requirements 13
5.SYSTEM DESIGN
5.1 Waterfall Model 14
5.2 System architecture 15
5.3 Data flow diagram 16
5.4 Block diagram 17
5.5 Design model 18
5.6 Design Consideretion 19
5.7 Module 20
6.TESTING
6.1 Introduction
6.2 Unit testing
6.3 Integration testing
6.4 System testing
6.5 acceptance testing
7.RESULT 20
6.1 Project Working 21
6.2 Merits and Demerits 22
6.3 Application or users 23
8.CONCLUSION 24
9.FUTURE ENHANCEMENT 25
10.BIBLIOGRAPHY
CHAPTER - 1
INTRODUCTION
INTRODUCTION
In this chapter, we discuss about the following:
Introduction
Parameters of measurements
Motivation
Objective
Target specification
Organization of project report.
1.1 INTRODUCTION
For example, at the criticality pertaining to Patient health wise issues where
monitoring play a vital role. Keeping in the same constraint the project enables
the monitoring of multiple patients concomitantly.
1.3 MOTIVATION
1.4 OBJECTIVE
The project objective is to provide a system that helps monitoring the patient’s
health condition continuously using biomedical signals like heart beat rate and
body temperature. The signals that are acquired by patients are processed and
transferred to recording and monitoring system like computer. The computer
maintains the medication and doctor schedule as well.
CHAPTER – 2
LITERATURE SURVEY
LITERATURE SURVEY
D.J.R. Kiran Kumar, Nalini Kotnana has discussed about the health
monitoring system2
, explained with the wireless sensor network for monitoring various parameters,
this paper was implemented using zigbee. This paper supports my project in the
implementation of Bluetooth technology in my project.
2.2BACKGROUND THEORY
Currently, there must be a person next to the patient to monitor their condition.
But in this project, there is no need for a person to monitor continuously. An
alarm is generated and a message will be sent to the monitoring person in case
of any abnormal condition is encountered. Also, condition of the patient is sent
every minute.
Heart rate can be taken at any spot on the body at which an artery is close to the
surface and a pulse can be felt. The most common places to measure heart rate
using the palpation method is at the wrist (radial artery) and the neck (carotid
artery). Other places sometimes used are the elbow (brachial artery) and the
groin (femoral artery). Fingers are used to take a pulse, not thumb, particularly
when recording someone else's pulse, can sometimes feel your own pulse
through your thumb.
Carotid Pulse (neck) - To take heart rate at the neck, place first two fingers on
either side of the neck. Be careful not to press too hard and then count the
number of beats for a minute.
Radial Pulse (wrist) - place index and middle fingers together on the opposite
wrist, about 1/2 inches on the inside of the joint, in line with the index finger.
Once you find a pulse, count the number of beats you feel within a one minute
period.
Can estimate the per minute rate by counting over 10 seconds and multiplying
this figure by 6, or count over 15 seconds and multiply by 4, or over 30 seconds
and doubling the result. There are obvious potential errors by using this
shorthand method. Having a heart rate monitor, will usually give an accurate
reading.
In this method of measuring the sensor module is clipped to the patient finger.
The sensor is made up of infrared light emitting diode as a transmitter &
infrared photo detector as Receiver. Infrared light enters through the tissues.
Various changes in the volume of blood in the finger varies the total amount of
light incident on infrared detector.
Mouth -- place the thermometer under the tongue and close the mouth.
Breathe through the nose, and use the lips to hold the thermometer tightly in
place. Leave the thermometer in the mouth for 3 minutes or until the device
beeps.
Rectum -- this method is for infants and small children who are not able to
hold a thermometer safely in their mouths. Place petroleum jelly on the bulb of
a rectal thermometer. Place the small child face down on a flat surface or lap.
Spread the buttocks and insert the bulb end of the thermometer about 1/2 to 1
inch into the anal canal. Be careful not to insert the thermometer too far. Prevent
the child from struggling, since this can accidentally push the thermometer in
further. Remove the thermometer after 3 minutes or when the device beeps.
Armpit -- place the thermometer in the armpit, with the arm pressed against
the body for 5 minutes before reading. This is the least accurate method for
using a glass thermometer.
This thermometer is placed on the forehead of the patient. This are made up of
heat sensitive liquid crystals made on a plastic strip. Different temperature is
indicated with different colours. Temperature changes affect the liquid crystal of
various colours. This plays a major role in temperature measurement. These
thermometers are safer than the glass thermometers.
CHAPTER-3
SYSTEM ANALYSIS
SYSTEM ANALYSIS
EXISTING SYSTEM
family offers high performance at very low-power consumption and gate count.
PROPOSED SYSTEM
parameters like body temperature, heart beat rate,drip level sensor and
This system uses Wireless technology which enables the viewing of all
FEASIBILITY STUDY
3.3.1 TECHNICAL
When there is a whole range of desirable new high end features to the scene, the
new features interact in cleverer way of using RISC.
3.3.2 ECONOMICAL
The components like Atmega8L, Max232 level converter, UART costs low.
From economical point of view the cost of purchasing software is low.
Ultimately, the implementation of this project will reduce the expenditure of
power supply board.
3.3.3 OPERATIONAL
The module provides very user friendly interface and does not need extra
CHAPTER – 3
SYSTEM DESIGN
SYSTEM DESIGN
The Software Development Life Cycle process is the set of activities and
associated results, which produce a software product. The “Waterfall” model
has been followed for the development of this project. This model is best, only
when all the requirements are known. This model is easy to understand by
system developers as well as users and this model is more visible, as it produces
deliverables at the end of each phase. Visibility is one of the processes
characteristics that are looked while selecting a Software Life Cycle model for a
project.
The Waterfall model has four phases. They are as given below:
1) ANALYSIS
The system’s services, constraints and goals are established by consulting
system users.
2) DESIGN
The system’s design process, divides the requirements to either hardware or
software systems. It establishes overall system architecture. Software design
involves representing the system software functions in a form that may be
transformed into one or more executable programs.
3) IMPLEMENTATION
During this stage, the software design is implemented as a set of programs or
program units.
4) TESTING
The individual program units or programs are tested. Then they are integrated
and tested as a complete system to ensure that the software requirements have
been met. After testing, the software system is delivered to the customer.
ADVANTAGES:
The development process is more visible, i.e. deliverables are produced after
each phase. This will help knowing the status of the project at any time.
This is best suitable for projects in which all the requirements are known in
advance and projects changes are not required.
DISADVANTAGES:
It is not possible to go to previous phase to accommodate any changes in it.
In this topic it is discusses about the purpose of design, design features, block
diagram of system & its description.
The available systems designed for remote accessing about industrial security
wirelessly from far away distance using BLUETOOTH technology.
Architecture Design
SCREENSHOTS:
DESIGN FEATURES:
Temperature Sensor and Heart Beat Sensor are attached to patient’s body to
sense the body temperature and heart pulse rate respectively. The inputs from
these sensors are provided to Microcontroller where they will be processed.
Microcontroller communicates two types of messages with the monitoring
system via Bluetooth Communication.
Two types of messages are:
a) Regular update: About patient’s disease, prescription, sensor values and
Doctor in charge.
b) Abnormal update: Abnormal sensor values with the alert messages.
indicating the patient needs to be served at that time and also on a periodic
basis. This module will also guide the nurse for the medication schedule for
maintaining the proper medicines at proper time by giving alert through
message on the server.
MODULES:
CHAPTER 4
REQUIREMENT SPECIFICATION
REQUIREMENT SPECIFICATION
• Atmega8L Microcontroller
• LM7805C Voltage Regulator
• Crystal Oscillator
• Bluetooth
• Heart Beat Sensor
• LM35 Temperature Sensor
• Siren
• Bluetooth Enabled Laptop / Desktop
• Abnormal L.E.D Indicator
The microcontroller is at the core of every embedded module. Hence, great care
must be taken in choosing the right microcontroller without compromising on
functionality. Keeping in view many factors that governed the correct
implementation of project the Atmega8L microcontroller from Atmel
Corporation’s AVR microcontroller family was chosen. Few crucial reasons
may be cited so as to justify my choice of this microcontroller. The first being,
that all AVR microcontrollers are designed to deliver more performance at lesser
power consumption. It is compatible with popular protocols like I2C and SPI. It
also has advanced features like an on chip analog to digital converter, six pulse
width modulation channels, and data retention is supported up to a hundred
years at 25º C. Also compilers for the Atmega8L are available free of cost from
the manufacturer. An added advantage is that the AVR series can be
programmed using the AVRGCC (GNU C compiler), thus making it an
undisputed choice for even GNU/Linux based programmers. The Atmega8L
microcontroller has execution speeds of up to one MIPS per MHz of clock
frequency. Elucidating the specifications of the CPU of the AVR, it is an 8 bit
microcontroller with advanced RISC architecture. The CPU is designed for the
stellar combination of parallelism and performance. Thus the CPU uses the
Harvard architecture (separate memories and buses for program and data). The
CPU also accommodates a 32 general purpose 8-bit registers.
This section discusses the AVR core architecture in general. The main function
of the CPU core is to ensure correct program execution. The CPU must
therefore be able to access memories, performance calculations, control
peripherals, and handle interrupts.
3.5.2.2 ADDRESSING
This enables efficient address calculations. One of the address pointers can also
be used as an address pointer for look up tables in Flash program memory.
These added function registers are the 16-bit X-, Y-, and Z-register, described
later in this section.
The ALU supports arithmetic and logic operations between registers or between
a constant and a register. Single register operations can also be executed in the
ALU. After an arithmetic operation, the Status Register is updated to reflect
information about the result of the operation.
PIN DESCRIPTION:
• GND – Ground
• Port D (PD7:0) - Port D is an 8-bit bi-directional I/O port and even its pins,
like those of port B and C have alternate functions. The pins of port D can
also serve as transmitter and receiver pins for the internal USART of the
microcontroller, they can also add up as comparator inputs to the internal
comparator circuit of the microcontroller.
• AVCC-It is the supply voltage for the ADC, PC3 to PC0 and ADC 7:6. It is
externally connected to VCC and if the ADC is used it is connected to the
VCC supply voltage through a low pass filter.
3.5.2.4 FEATURES
Peripheral Features
• Two 8-bit Timer/Counters with Separate Prescaler, one Compare Mode
• One 16-bit Timer/Counter with Separate Prescaler, Compare Mode, and
Capture Mode
• Real Time Counter with Separate Oscillator
• Three PWM Channels
• 8-channel ADC in TQFP and MLF package
• Eight Channels 10-bit Accuracy
• 6-channel ADC in PDIP package
• Eight Channels 10-bit Accuracy
• Byte-oriented Two-wire Serial Interface
• Programmable Serial USART
• Master/Slave SPI Serial Interface
• Programmable Watchdog Timer with Separate On-chip Oscillator
• On-chip Analog Comparator
Operating Voltages
• 2.7 - 5.5V (ATmega8L)
• 4.5 - 5.5V (ATmega8)
Speed Grades
• 0 - 8 MHz (ATmega8L)
• 0 - 16 MHz (ATmega8)
The Idle mode stops the CPU while the SRAM, Timer/Counters, USART, 2-
wire Serial Interface, SPI port, and interrupt system continue to function. In the
Power-down mode, the register contents are saved but the oscillator is frozen
until an interrupt is raised or the hardware is reset. In the Power-save mode, the
asynchronous timer is running while the remaining peripheral components of
the device are sleeping. For reduction of noise with respect to the ADC, the
CPU and all other I/O devices are halted and only the asynchronous timer along
with the ADC is running. In Standby mode only the crystal oscillator is
running. The standby mode can be useful for quick start-ups.
Power-down mode saves the register contents but freezes the oscillator,
disabling all other chip functions until the next interrupt or hardware reset. In
Power-save mode, the asynchronous timer continues to run, allowing the user to
maintain a timer base while the rest of the device is sleeping. The ADC Noise
Reduction mode stops the CPU and all I/O modules except
3.5.2.6 PORTS
If DDxn is set to one, the pin is used as output pin, else it is an input pin. If
PORTxn is written to a logic one, and if DDxn is set to zero that particular pin’s
internal pull up resistor is activated. The DDxn is accessed at the DDRx
register, the PORTxn is in the PORTx register and the PINxn is at the PINx
register. Writing a logic one to PINxn will toggle PORTxn. The alternate
functions of the port pins and the port registers are explained at the end as part
of the datasheets. The pin value can be read at any time through the PINxn
register bit, irrespective of the DDxn pin setting.
3.5.2.8 USART
The UART usually does not directly generate or receive the external signals
used between different items of equipment. Typically, separate interface devices
are used to convert the logic level signals of the UART to and from the external
signalling levels. Communication may be "full duplex or "half duplex" .
FEATURES OF USART
When a crystal of quartz is properly cut and mounted, it can be made to distort
in an electric field by applying a voltage to an electrode near or on the crystal.
This property is known as piezoelectricity. When the field is removed, the
quartz will generate an electric field as it returns to its previous shape, and this
can generate a voltage. The result is that a quartz crystal behaves like a circuit
composed of an inductor, capacitor and resistor, with a precise resonant
frequency.
Quartz timing crystals are manufactured for frequencies from a few tens of
kilohertz to tens of megahertz. Most are small devices for consumer devices
The LM35 does not require any external calibration or trimming to provide
typical accuracies of ± 1/4ºC at room temperature and ± 3/4 ºC over a full -55 to
+ 150 ºC temperature range. Low cost is assured by trimming & calibration at
the water level.
The LM35 is low output impedance; linear output & precise inherent calibration
make interfacing to readout or control circuitry especially easy. It can be used
with single power supplies, or with plus and minus supplies.
As it draws only 60 µA from its supply, it has very low self-heating, less than
0.1 ºC in still air, The LM35 is rated to operate over a -55 ºC to +150 ºC
temperature range, while the LM35 is rated for a -40 ºC to +110 ºC range (-10º
with improved accuracy), The LM35 series is available packaged is hermetic to
-46 transistor packages.
3.5.7.1 FEATURES
The Heart Beat Sensor provides a simple way to study the heart's function. This
sensor monitors the flow of blood through Finger. As the heart forces blood
through the blood vessels in the Finger, the amount of blood in the Finger
changes with time. The sensor shines a light lobe (small High Bright LED)
through the ear and measures the light that is transmitted to LDR. The signal is
amplified, inverted and filtered.
In this topic it is discuss about the Code Vision AVR cross compiler, AVR
Studio Programmer & Embedded C
The Integrated Development Environment (IDE) has built-in AVR Chip In-
System Programmer software that enables to automatically transfer of the
program to the microcontroller chip after successful compilation/assembly.
• Timers/Counters initialization.
• Watchdog Timer initialization.
• UART (USART) initialization and interrupt driven buffered serial
communication.
• ADC initialization
• SPI Interface initialization
• Two Wire Interface initialization
• I2C Bus, LM75 Temperature Sensor, DS1307 Real Time Clocks
initialization
AVR Studio supports the complete range of ATMEL AVR tools and each release
will always contain the latest updates for both the tools and support of new AVR
devices. AVR Studio 4 has a modular architecture which allows even more
interaction with 3rd party software vendors. GUI plug-ins and other modules
can be written and hooked to the system.
3.6.3 Embedded C
RECIEVER SECTION
5.3 ANDROID
Android is basically an operating system for smart phones.
But we find now integrated into PDAs, touch pads (tablets), televisions,
even cars infotainment system. The OS was created by the start-up of the
same name, which is owned by Google since 2005.
Second point is that all the required tools to develop Android applications
are freely available and can be downloaded from the Web. Following is
the list of software's you will need before you start your Android
application programming.
Java JDK5 or greater
Android SDK
Eclipse IDE for Java Developers (optional)
Android Development Tools (ADT) Eclipse Plugin (optional)
stack and Driver model for all hardware like display, WiFi, Bluetooth etc.
And this is acts as an abstraction layer between the hardware and the rest
Library
The library written in C and C + + that provide higher level functionality
such as an HTML engine, or a database (SQLite) and this run in system
background.
Andoid Runtime
The core of Android platform
Dalvik Virtual Machine
Register-based
Executes files in the Dalvik Executable (.dex) format
Java core Libraries
Provides most of the functionality of the Java programming
language.
Core Libraries
Application Framework
Applications
A set of core applications shipped with Android platform
o an email client, SMS program, calendar, maps, browser,
contacts, and others
All written in Java
Our applications are in the same level as these applications
Competitors
iPhone OS : The principal competitor is iPhone OS. It is mainly for
competing with Apple that Android has been created.
Palm OS devices on PDA.
Blackberry: which team the same name smartphones
Windows Mobile: which team smartphones and PDAs.
Sybian: Previous Market Leader
Key partners
To help launch Android, Google has created an alliance of thirty
companies in order to develop
standards for mobile devices. There is, among others:
Operators such as NTT DoKomo, T-Mobile or Bouygues Telecom
Of-equipment manufacturers like Sony Ericsson or Samsung
Manufacturers of semiconductors, including Intel and Nvidia
Corporate businesses.
Market share
The android market share continues to increase since its inception, and is
likely to continue
climbing because it is favored by big players like HTC , Sony Ericsson,
Samsung, LG, Motorola, Dell, Acer . Moreover, according to IDC, android
will be the 2nd mobile operating system used of the market in 2013. You
have to know that the first mobile phone appeared in android date October
2008.
Applications
Google applications
Android includes most of the time many Google applications like Gmail,
YouTube or Maps.
These applications are delivered with the machine most of the time, except
in certain cases, such as some phones running android on which the provider
widgets With android, it is possible to use widgets which are small tools that
can most often get information. These widgets are directly visible on the
main window.
Android Market
This is an online software store to buy applications. Developers who created
applications
can add them into the store, and these applications can be downloaded by
Multitasking
Android allows multitasking in the sense that multiple applications can run
SDK
A development kit has been put at disposal of everybody.
This kit contains a set of libraries, powerful tools for debugging and
tutorials.
Modifiability
This allows everyone to use, improve or transform the functions of
Current Version
Today android is in its 8.1 version, Android 8.1. Each version is designed
to gradually correct the lack of APIs, to enhance the user interface and add
ANDROID FEATURES
Increasing day by day, facilities are also increasing. Starting with simple
regular handsets which were used just for making phone calls, mobiles
have changed our lives and have become part of it. Now they are not used
just for making calls but they have innumerable uses and can be used as a
Camera , Music player, Tablet PC, T.V. , Web browser etc . And with the
Today Android is very popular among the user. Today the mobiles are not
computers. The wide use and popularity of the android is due to the
Application Framework
It is used to write application for Android .Unlike other embedded mobile
application which come with the phone are no different then those that any
android core libraries. From the point of security, the framework is based
on UNIX file system permission that assure application have only those
especially for Android to run on embedded systems and work well in low
creates a special file format (.DEX ) that is created through build time post
Integrated Browser
Google made a choice on WebKit as open source web browser. They
added a two pass layout and frame flattening . Two pass layout loads a
Javascript.
Optimized Graphics
An Android has 2D graphics library and 3D graphics based on OpenGL
ES 1.0.
SQLite
SQLite is ACID-compliant and implements most of the SQL standard,
using a dynamically and weakly typed SQL syntax that does not guarantee
platform. Sun Microsystems has stated that there are over 5.5 billion
JVM-enabled devices.
Development Environment
Includes a device emulator , tools for debugging ,memory and
performance profiling, a plugin for the eclipse IDE. There are a number of
connections support, GPS, GSM telephony. A great work was done for the
developers to start work with Android using device emulator ,tools for
IDE – Eclipse
Eclipse plug-in - ADT
Software Development Kit (SDK)
Android Emulator
Debugger
IDE - Eclipse
All the examples in this tutorial have been written using Eclipse IDE. So
your machine.
3.6 TESTING
TESTING
In this topic it is discuss about brief introduction to testing & different stages
involved in testing, Flowchart of the project.
3.9.1 INTRODUCTION
The most important phase in developing any software is testing. Before the
implementation of the package, testing has been carried out thoroughly to
eliminate any bug, which may be present.
The software testing of the package has been done in four phases.
• Unit Testing.
• Integration Testing.
• System Testing.
• Acceptance Testing.
In Unit Testing every model was tested independently. Unit testing focuses on
verification efforts on the smallest unit of the software design in the model to
check, whether each model in the software works properly. So that it gives the
desired outputs for the given inputs. All the validation and conditions are tested
in the model level.
This project work contains two modules. Each of the modules and sub-modules
are unit tested and the bugs were identified and rectified.
System testing involves putting all the modules together and checking the entire
software. It is useful in checking whether with the given input, the desired
output is got as a result. System testing will be largely functional in nature.
This is the final stage in the testing process. Before the system is accepted for
the operational use it may reveal errors and omissions in the system
requirements definitions because the real data exercises the system in different
way from the test data. Acceptance testing may also reveal requirements
problem where the systems performance is unacceptable.
Testing here is focused on the external behaviour of the system and the internal
logic of the program is not emphasized. In this stage of testing the application
was installed in the system.
CHAPTER – 6
RESULT
ANALYSIS RESULT
4.1 Working
fetch the signal & sent to ADC which is used to convert the signal into digitized.
The Voltage Regulator is used to convert the 12V power supply to 5V because
microcontroller needs a power supply of 5V only. Bluetooth module acts as a
interface between both ends. The desired Result is displayed at the Real term
serial capture, where it checks all the condition programmed. Based on the
condition satisfied, the output is resulted. If it fails to be in the normal
condition, then the siren & abnormal LED starts with a output result shown at
the laptop stating high or low heart beat or body temperature. As shown in the
screen shot of the real term serial capture it is monitored for every one minute
with the detail of patient name, heart beat & Body temperature, in the second
minute with the detail of patient name, disease, tablet &food, in the fifth minute
with the details showing patient name, Disease, Doctor Name & next prescribed
treatment to the patient is defined in this project.
Merits
• Much easier to control the devices.
• Both risk and liability is reduced.
• It is flexible enough to be used from any location, 24 hrs/Day and 7 days
a week.
Demerits
• As BLUETOOTH is a limit range around 100 feet, it cannot be controlled
above this range
• Since we are using wireless technology for communication, the efficient
operation of our project depends on the area of module mounted.
CHAPTER - 7
CONCLUSION
5.1 Conclusion
As the saying goes “Necessity is the mother of all inventions”, a need for
software which would control the process and devices was recognized.
The design approach used here has given satisfactory results and the
microcontroller is sufficient for measuring the required parameters. The power
consumption has been kept as low as possible and the measurements made by
the device are quite reliable. Accordingly a highly interactive user friendly
module based embedded technology with microcontrollers was developed to
solve the problem. The module which is developed will make the job of process
easier. The user module has resulted in reducing work of human also makes
more comfortable.
The module is, therefore functioning as a very good tool. Incorporating the
future enhancement as specified earlier would make the software a perfect tool,
which would help the user.
CHAPTER 8
FUTURE ENHANCEMENT
The following modifications can be made to the present circuit, which lead to
still smarter project:
• Due to the range of communication constraint we can implement GSM
Modem to our module.
• The module can be equipped with a faster and more capable microcontroller
to integrate control of many more devices at the same time.
• Time controlled devices can be implemented for use in commercial spaces.
For example: To control a large display in a showroom between two different
intervals of time, without the intervention of any user or technician.
• Voice alerts can be used to indicate the various controls of devices and their
status of operation.
• If the numbers of relays are increased from the current relays, the number of
devices that can be controlled can also be increased.
• The module can be equipped with other sensing equipment such as light and
heat sensors, accelerometers, strain gauges etc., to monitor other real world
physical quantities.
• Advanced AVR microcontrollers with bigger flash memories can be used to
create an increased number of functions and programs for better
functionality and for a user friendly interface.
• I can include touch sensors or pressure sensors in the system so that security
is provided whenever intruders try to break the briefcase.
CHAPTER 10:
BIBLIOGRAPHY