Professional Documents
Culture Documents
CHAPTER-1
INTRODUCTION
In home also, we can monitor vital signs of a patients with the help of nurses.
These are the normal way of monitoring vital signs. Normally elder people are suffered a
lot from chronic disease. They cannot go to hospital regularly and also hospitalization
cost also increases. In hospital, the nurse’s ratio is low compared to patients. Sometimes
nurses have missed to take vital signs data of patients. With the lack of vital sign
monitoring, patient undergoes many problems. For checking the vital signs data to be
healthy or unhealthy, we need nurse or doctor advice and again cost is increased.
Advances in sensor and connectivity technology are allowing devices to collect, record
and analyze data. In healthcare, able to collect patient data over long time that can be
used to help enable preventive care, allow early diagnosis of diseases. IoT related
healthcare systems are based on the Internet of Things as a network of devices that
connect directly with each other to capture and share vital data through a wireless
communication and store the data in server. And also it provide facility to access the
information through our mobile phone using Bluetooth. IOT systems are making to
reduce costs and improve health by increasing the availability and quality of care. In
recent years, many e-Health systems developed and they are providing the remote
monitoring of the patient.
PROBLEM STATEMENT
In early decades the situation was like large numbers of patients and limited
availability of doctors ,large size medical instruments in special care units like ICU’S so
that one nurse or doctor is essential to attend each patient in different wards. So the
patient could not be continuously monitored so following problem formulation is evolved
as follows:- The traditional medical test instruments in large sizes. Patient couldn’t be
found in time & helped in time. Time consuming patient monitoring Human attention is
required for each patient. Limited availability of medical instruments. Continuous
monitoring was not possible. Most of the patient died due to lack of experts &
machines. The purpose of this study was to find out the needs of medical doctors
concerning wireless patient monitoring. The system processes data using plug-in analysis
components that can be easily composed into plans using a graphical programming
environment.
METHODOLOGY
Board weight -- 40 gm
http://www.broadcom.com/products/BCM2835
SMSC LAN9512/LAN9512i IC ----- USB Hub & Ethernet Controller. This is the
major work horse in getting data in/out of the RPi for USB peripheral devices and IP
networking. USB and Ethernet ports, are powerful and widely supported serial
communication devices.
JTAG Header: The JTAG Header is used as a debug port. Embedded systems
developer relies on debuggers communicating with chips via the JTAG to perform
operations like single stepping and break-pointing. In time, I suspect people will
find ways to exploit these pins for both good & evil, but for now, this is for the
RPi hardware development community to use.
Burn the Raspbian image on the SDcard using imagewriter software and using
ubuntu PC.
Check SDCard (using card reader) on Ubuntu PC in home foler icon.
You have observed that sdcard having two partitions
1) boot
In the boot partition one file is available name as cmdline.txt. Open this file. We
will see that something is already written in this file. Now add below line at the end, in
this file and save it.
like – Temporary failure resolving 'mirrordirector.raspian.org' etc get then follow below
way --
Raspberry # vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
and save it
First tile it will asked password to access this server from client side. So we have to give
some password (user defined) which required to access this server from ubuntu PC.
HEART RATE SENSOR : Heart rate is a very vital health parameter that is directly
related to the soundness of the human cardiovascular system. While the heart is beating,
it is actually pumping blood throughout the body, and that makes the blood volume inside
the finger artery to change too. This fluctuation of blood can be detected through an
optical sensing mechanism placed around the fingertip.
LCD DISPLAY : The lcd used is 16 * 2 lcd means it can display 16 characters per line
and there are 2 such lines which is connected to microcontroller . It shows the output of
all sensors. Fig : LCD Display
GSM MODULE : A GSM modem is a specialized type of modem which accepts a SIM
card, and operates over a subscription to a mobile operator, just like a mobile phone.
From the mobile operator perspective, a GSM modem looks just like a mobile phone.
When a GSM modem is connected to a computer, this allows the computer to use the
GSM modem to communicate over the mobile network. While these GSM modems are
most frequently used to provide mobile internet connectivity, many of them can also be
used for sending and receiving SMS and MMS messages. A GSM modem can be a
CHAPTER-2
INTRODUCTION TO EMBEDDED SYSTEMS
We are living in the embedded world. You are surrounded with many embedded
products and your daily life largely depends on the proper functioning’s of these
gadgets, television, radio, CD layer of your living room, washing machines or microwave
oven in your kitchen, card readers, access controllers ,palm devices of your work space
enable to do many of your tasks very effectively. Apart from all these, many controllers
embedded in your car take care of your car operation between the bumper and most of the
times tend to ignore all these controllers.
In recent days you are showered with variety of information about these embedded
controllers in many places. All kind of magazines and journals regularly dish out details
about latest technologies, new devices: fast applications which make you believe that
your basic survival is controlled by these embedded products. Now you can agree to that
fact these embedded products have successfully invaded into our world. You must be
wandering about these embedded controllers or systems.
The computer you use to compose your mails, or create a document or analyze the
database is known as standard desktop computer. These desktop computers are
manufactured to serve many purpose and applications.
COMMUNICATION APPLICATIONS
Five-nine” availability, compact PCI hot swap support, and hard real-time
response Linux OS delivers on these key requirements and more for today’s carrier-class
systems. Scalable kernel configurations, distributed computing capabilities, intergraded
communications stacks, and fault-management facilities make Linux OS the ideal choice
for companies looking for single operating system for all embedded telecommunication
applications from complex central to single line/trunk cards.
all benefit from the cost-effective dependability, proven stability and full product life
cycle support opportunities associated with blue cat embedded Linux. Blue cat has
teamed uo with industry leaders to make it easier to build Linux mobile phones with java
integration.
Designers of industrial and process control systems know from experience that
Linux works operating system provide the security and reliability that their industrial
applications require. From ISO 9001 certification to fault-tolerance, secure portioning
and high availability, we’ve got it all. The advantage of our 20 years of experience with
the embedded system. Now a day’s embedded system widely using in the industrial areas
to reduce the particular task .This replacing the less work and also more efficient gives
the accurate result.
CHAPTER-3
PROPOSED SYSTEM
Block diagram:
POWER
SUPPLY
ALARM
HEART
BEAT
BODY ARM11
TEMPERATURE
RASPBERRY
SENSOR
PI - 3 MAX232
MEMS
FALL
GPRS
SENSOR
MODULE
MOBILE TAB PC
GLOBAL
sometimes inductors, to filter out (smooth) most of the pulsation. A small remaining
unwanted alternating voltage component at mains or twice mains power frequency
(depending upon whether half- or full-wave rectification is used)—ripple—is
unavoidably superimposed on the direct output voltage. For purposes such as charging
batteries the ripple is not a problem, and the simplest unregulated mains-powered DC
power supply circuit consists of a transformer driving a single diode in series with a
resistor. Before the introduction of solid-state electronics, equipment used valves
(vacuum tubes) which required high voltages; power supplies used step-up transformers,
rectifiers, and filters to generate one or more direct voltages of some hundreds of volts,
and a low alternating voltage for filaments. Only the most advanced equipment used
expensive and bulky regulated power supplies.
Transformer:
Rectifier:
• Single-phase rectifiers
• Half-wave rectification
• Full-wave rectification
FILTER
Filter Capacitor:
Filter capacitors are capacitors used for filtering of undesirable frequencies. They
are common in electrical and electronic equipment, and cover a number of applications,
such as:
Filter capacitors are not the same as reservoir capacitors, the tasks the two
perform are different, albeit related The simple capacitor filter is the most basic type of
power supply filter. The application of the simple capacitor filter is very limited. It is
sometimes used on extremely high-voltage, low-current power supplies for cathode-ray
and similar electron tubes, which require very little load current from the supply. The
capacitor filter is also used where the power-supply ripple frequency is not critical; this
frequency can be relatively high. The capacitor (C1) shown in figure 4-15 is a simple
filter connected across the output of the rectifier in parallel with the load
Resistor:
magnitude. When specifying that resistance in an electronic design, the required precision
of the resistance may require attention to the manufacturing tolerance of the chosen
resistor, according to its specific application. The temperature coefficient of the
resistance may also be of concern in some precision applications. Practical resistors are
also specified as having a maximum power rating which must exceed the anticipated
power dissipation of that resistor in a particular circuit: this is mainly of concern in power
electronics applications. Resistors with higher power ratings are physically larger and
may require heat sinks. In a high-voltage circuit, attention must sometimes be paid to the
rated maximum working voltage of the resistor. Practical resistors have a series
inductance and a small parallel capacitance; these specifications can be important in high-
frequency applications. In a low-noise amplifier or pre-amp, the noise characteristics of a
resistor may be an issue. The unwanted inductance, excess noise, and temperature
coefficient are mainly dependent on the technology used in manufacturing the resistor.
They are not normally specified individually for a particular family of resistors
manufactured using a particular technology.[1] A family of discrete resistors is also
charac1terized according to its form factor, that is, the size of the device and the position
of its leads (or terminals) which is relevant in the practical manufacturing of circuits
using them.
Voltage Regulator:
Introduction:
need for an external power source. Because each DS18B20 contains a unique silicon
serial number, multiple DS18B20s can exist on the same 1-Wire bus. This allows for
placing temperature sensors in many different places. Applications where this feature is
useful include HVAC environmental controls, sensing temperatures inside buildings,
equipment or machinery, and process monitoring and control.
Pin Assignment:
Pin Description:
GND - Ground
DQ - Data In/Out
VDD - Power supply voltage
NC - No connect
The block diagram of Figure shows the major components of the DS18B20. The
DS18B20 has four main data components:
1) 64-bit layered ROM
2) temperature sensor
3) nonvolatile temperature alarm triggers TH and TL
4) a configuration register.
The device derives its power from the 1-Wire communication line by storing
energy on an internal capacitor during periods of time when the signal line is high and
continues to operate off this power source during the low times of the 1-Wire line until it
returns high to replenish the parasite (capacitor) supply.
As an alternative, the DS18B20 may also be powered from an external 3 volt - 5.5
volt supply. Communication to the DS18B20 is via a 1-Wire port. With the 1-Wire port,
the memory and control functions will not be available before the ROM function protocol
has been established. The master must first provide one of five ROM function
commands: 1) Read ROM, 2) Match ROM, 3) Search ROM, 4) Skip ROM, or 5) Alarm
Search.
These commands operate on the 64-bit layered ROM portion of each device and
can single out a specific device if many are present on the 1-Wire line as well as indicate
to the bus master how many and what types of devices are present. After a ROM function
sequence has been successfully executed, the memory and control functions are
accessible and the master may then provide any one of the six memory and control
function commands.
The scratchpad also contains a configuration byte to set the desired resolution of
the temperature to digital conversion. Writing TH, TL, and the configuration byte is done
using a memory function command. Read access to these registers is through the
scratchpad. All data is read and written least significant bit first.
Parasite Power:
The block diagram (Figure) shows the parasite-powered circuitry. This circuitry
“steals” power whenever the DQ or VDD pins are high. DQ will provide sufficient power
as long as the specified timing and voltage requirements are met (see the section titled “1-
Wire Bus System”). The advantages of parasite power are twofold: 1) by parasiting off
this pin, no local power source is needed for remote sensing of temperature, and 2) the
ROM may be read in absence of normal power. In order for the DS18B20 to be able to
perform accurate temperature conversions, sufficient power must be provided over the
DQ line when a temperature conversion is taking place. Since the operating current of the
DS18B20 is up to 1.5 mA, the DQ line will not have sufficient drive due to the 5k pull-up
resistor.
This problem is particularly acute if several DS18B20s are on the same DQ and
attempting to convert simultaneously. There are two ways to assure that the DS18B20 has
sufficient supply current during its active conversion cycle. The first is to provide a
strong pullup on the DQ line whenever temperature conversions or copies to the E2
memory are taking place. This may be accomplished by using a MOSFET to pull the DQ
line directly to the power supply as shown in Figure 4.8. The DQ line must be switched
over to the strong pullup within 10 µs maximum after issuing any protocol that involves
copying to the E2 memory or initiates temperature conversions.
When using the parasite power mode, the VDD pin must be tied to ground.
Another method of supplying current to the DS18B20 is through the use of an external
power supply tied to the VDD pin, as shown in Figure 4.9. The advantage to this is that
the strong pullup is not required on the DQ line, and the bus master need not be tied up
holding that line high during temperature conversions. This allows other data traffic on
the 1-Wire bus during the conversion time. In addition, any number of DS18B20s may be
placed on the 1-Wire bus, and if they all use external power, they may all simultaneously
perform temperature conversions by issuing the Skip ROM command and then issuing
the Convert T command.
Note that as long as the external power supply is active, the GND pin may not be
floating. The use of parasite power is not recommended above 100°C, since it may not be
able to sustain communications given the higher leakage currents the DS18B20 exhibits
at these temperatures. For applications in which such temperatures are likely, it is
strongly recommended that VDD be applied to the DS18B20.
For situations where the bus master does not know whether the DS18B20s on the
bus are parasite powered or supplied with external VDD, a provision is made in the
DS18B20 to signal the power supply scheme used. The bus master can determine if any
DS18B20s are on the bus which requires the strong pull-up by sending a Skip ROM
protocol, then issuing the read power supply command. After this command is issued, the
master then issues read time slots. The DS18B20 will send back “0” on the 1-Wire bus if
it is parasite powered; it will send back a “1” if it is powered from the VDD pin. If the
master receives a “0,” it knows that it must supply the strong pull-up on the DQ line
during temperature conversions. See “Memory Command Functions” section for more
detail on this command protocol.
Features of DS18B20:
Unique 1-Wire® Interface Requires Only One Port Pin for Communication ƒ
Each Device has a Unique 64-Bit Serial Code Stored in an On-Board ROM
Multidrop Capability Simplifies Distributed Temperature-Sensing Applications ƒ
Requires No External Components ƒ
Can Be Powered from Data Line; Power Supply Range is 3.0V to 5.5V ƒ
Measures Temperatures from -55°C to +125°C (-67°F to +257°F) ƒ
±0.5°C Accuracy from -10°C to +85°C ƒ
Thermometer Resolution is User Selectable from 9 to 12 Bits ƒ
Converts Temperature to 12-Bit Digital Word in 750ms (Max) ƒ
Applications:
Thermostatic Controls
Industrial Systems
Consumer Products
Thermometers
Thermally Sensitive Systems
3.2.4 PULSE SENSOR
Introduction:
Pulse Sensor is a well-designed plug-and-play heart-rate sensor for Arduino. It
can be used by students, artists, athletes, makers, and game & mobile developers who
want to easily incorporate live heart rate data into their projects. The sensor clips onto a
fingertip or earlobe and plugs right into Arduino. It also includes an open-source
monitoring app that graphs your pulse in real time.
Pulse Sensor Amped responds to relative changes in light intensity. If the amount
of light incident on the sensor remains constant, the signal value will remain at (or close
to) 512 (midpoint of ADC range). More light and the signal goes up. Less light, the
opposite. Light from the green LED that is reflected back to the sensor changes during
each pulse
Our goal is to find successive moments of instantaneous heart beat and measure
the time between, called the Inter Beat Interval (IBI). By following the predictable shape
and pattern of the PPG wave, we are able to do just that.
Now, we're not heart researchers, but we play them on this blog. We're basing this
page on Other People's Research that seem reasonable to us (references below). When the
heart pumps blood through the body, with every beat there is a pulse wave (kind of like a
shock wave) that travels along all arteries to the very extremities of capillary tissue where
the Pulse Sensor is attached. Actual blood circulates in the body much slower than the
pulse wave travels. Let's follow events as they progress from point 'T' on the PPG below.
A rapid upward rise in signal value occurs as the pulse wave passes under the sensor,
then the signal falls back down toward the normal point. Sometimes, the dicroic notch
(downward spike) is more pronounced than others, but generally the signal settles down
to background noise before the next pulse wave washes through. Since the wave is
repeating and predictable, we could choose almost any recognizable feature as a
reference point, say the peak, and measure the heart rate by doing math on the time
between each peak.
This, however, can run into false readings from the dicroic notch, if present, and
may be susceptible to inaccuracy from baseline noise as well.There are other good
reasons not to base the beat-finding algorithm on arbitrary wave phenomena. Ideally, we
want to find the instantaneous moment of the heart beat. This is important for accurate
BPM calculation, Heart Rate Variability (HRV) studies, and Pulse Transit Time (PTT)
measurement. And it is a worthy challenge! People Smarter than us (note1) argue that the
instantaneous moment of heart beat happens at some point during that fast upward rise in
the PPG waveform
Some heart researchers say it's when the signal gets to 25% of the amplitude,
some say when it's 50% of the amplitude, and some say it's the point when the slope is
steepest during the upward rise event. This version 1.1 of Pulse Sensor code is designed
to measure the IBI by timing between moments when the signal crosses 50% of the wave
amplitude during that fast upward rise. The BPM is derived every beat from an average
of the previous 10 IBI times. Here's how we do it!
First off, it's important to have a regular sample rate with high enough resolution
to get reliable measurement of the timing between each beat. To do this, we set up
Timer2, an 8 bit hardware timer on the ATmega328 (UNO), so that it throws an interrupt
every other millisecond. That gives us a sample rate of 500Hz and beat-to-beat timing
resolution of 2mS (note2). This will disable PWM output on pin 3 and 11. Also, it will
disable the tone() command. This code works with Arduino UNO or Arduino PRO or
Arduino Pro Mini 5V or any Arduino running with an ATmega328 and 16MHz clock.
Taking your pulse is as simple as holding a finger to your neck or wrist and
timing the beats with your watch. But if you want to record the data or use it to trigger
events, you need to turn that mechanical pulsing action into an electrical signal. This
pulse sensor fits over a fingertip and uses the amount of infrared light reflected by the
blood circulating inside to do just that.
The sensor itself consists of an infrared emitter and detector mounted side-by-side
and pressed closely against the skin. When the heart pumps, blood pressure rises sharply,
and so does the amount of infrared light from the emitter that gets reflected back to the
detector. The detector passes more current when it receives more light, which in turn
causes a voltage drop to enter the amplifier circuitry. This design uses two
consecutive operational amplifiers (“op-amps”) to establish a steady baseline for the
signal, emphasize the peaks, and filter out noise. Both op-amps are contained in a
single integrated circuit (IC or “chip”), and hooking them up is really just a matter of
interconnecting the pins correctly.
The two op-amps output a clean but weak signal which is amplified by the
transistor before output. The complete pulse sensor is a three-wire device that runs on 5V
and outputs signal on the white wire. You can visualize and/or record this signal in a
number of ways, but we’ve chosen to connect to a personal computer through Arduino,
mostly because of the ease of integrating Processing, which in turn is very handy for
visualization. But you don’t really need an Arduino to use the sensor.
3.2.5 VIBRATION SENSOR
Introduction:
The vibration sensor has two electrical contacts that do not touch each other in
idle condition. When any movement or vibration occurs, the sensor’s contacts close and
touch each other. When the movement or vibration stops, the sensor’s contacts return
back to their original positions, away from each other. The closed contacts during
vibration trigger the circuit connected to it. The author’s prototype is shown in Fig. 4.17
Principle:
Usually at any angle switch is ON state, by the vibration or movement, the rollers
of the conduction current in the switch will produce a movement or vibration, causing the
current through the disconnect or the rise of the resistance and trigger circuit. The
characteristics of this switch is usually general in the conduction state briefly
disconnected resistant to vibration, so it's high sensitivity settings by IC, customers
according to their sensitivity requirements for adjustments.
The vibration sensor has a small spring mechanism that makes the contacts touch
each other when vibration occurs above a certain threshold level. Two pins coming out of
the sensor are insulated by a resistance of more than 10-mega-ohm. During vibration the
spring inside the sensor vibrates and makes a momentary short-circuit between the two
terminals. Terminals of the vibration sensor have no polarity but one pin is thick. It is
connected to Vcc through a resistor and the thin pin is connected to the circuit to be
triggered. The sensor’s maximum working voltage is 12V DC but it works even at three
volts. When using it in a circuit, it consumes less than 5mA current and offers around 10-
mega-ohm contact resistance in open state and less than 5-ohm in contact state. It is
highly reliable and its response time is less than 2ms. It works more than 500,000 times
without breakdown.
The sensor is biased by resistor R1, which also keeps trigger pin 2 of IC1 in high
state during standby. When the sensor senses a small vibration, its contacts close and
takes pin 2 of timer to ground level. This triggers the timer and its output goes high for
around two minutes based on the values of timing components R2 and C1. When output
of the timer turns high, transistor T1 conducts to drive the 0.5W white LED and the
buzzer. The circuit is powered by a 4.5-volt rechargeable battery pack generally used in
cordless phones. It can be charged using a mobile phone charger if a suitable socket is
provided. LED2 indicates charging of the battery. This module features an adjustable
potentiometer, a vibration sensor, and a LM393 comparator chip to give an adjustable
digital output based on the amount of vibration. The potentiometer can be adjusted to
both increase and decrease the sensitivity to the desired amount. The module outputs a
logic level high (VCC) when it is triggered and a low (GND) when it isn’t. Additionally
there is an onboard LED that turns on when the module is triggered.
Features:
Application Ideas:
Vibration detecting
Burglary protection system
Object Movement detecting
Triggering effect reported theft alarm
Smart car
Earthquake alarm
Motorcycle alarm
Single-roller type full induction trigger switch. When no vibration or tilt, the
product is ON conduction state, and in the steady state, when a vibration or tilt, the
switch will be rendered instantly disconnect the conductive resistance increases,
generating a current pulse signal, thereby triggering circuit. These products are
completely sealed package, waterproof, dustproof.
The Vibration Sensor Module Vibration Switch SW-420 is based on the vibration
sensor SW-420 and Comparator LM393 to detect if there is any vibration that beyond the
threshold. The threshold can be adjusted by the on-board potentiometer. When this no
vibration, this module output logic LOW the signal indicate LED light, and vice versa.
Uses: For a variety of shocks triggering, theft alarm, smart car, an earthquake
alarm, motorcycle alarm. This module when compared with normally open
pneumatic shock sensor module, shock triggered much longer can drive relay
module
The use of the company's production of SW-420 normally closed type vibration
sensors. comparator output signal clean wave well, driving ability, 15mA
rated voltage and 3.3V-5V output: digital switching output (0 and 1) a bolt-hole
for easy installation
Small Board PCB dimensions: 3.2cm x 1.4cm. using wide LM393 voltage
comparator
Module description: the product when it is not shock, vibrate switch is closed on-
State, output low level, the green indicator light is on; When vibration, vibration
switches disconnected moments, output line, the Green led is not lit; the output
can be directly connected to the microcontroller, by single-chip computer to
detect high or low level, to detect whether there is vibration, alarm function.
Features:
The default state of the switch is close
Digital output Supply voltage:3.3V-5V
On-board indicator LED to show the results
On-board LM393 chip
Dimension of the board: 3.2cm x 1.4cm
Normally closed type vibration sensor SW-420
The comparator output, signal clean, good waveform, driving ability is strong
The working voltage of 3.3V to 5V
Output form: digital switch output (0 and 1)
Has a fixed bolt hole, convenient installation
Single-roller type full induction trigger switch. When no vibration or tilt, the
product is ON conduction state, and in the steady state, when a vibration or tilt, the
switch will be rendered instantly disconnect the conductive resistance increases,
generating a current pulse signal, thereby triggering circuit. These specification products
are completely sealed package, waterproof, dustproof.
ThingSpeak users to analyze and visualize uploaded data using Matlab without requiring
the purchase of a Matlab license from Mathworks.
ThingSpeak has a close relationship with Mathworks, Inc. In fact, all of the
ThingSpeak documentation is incorporated into the Mathworks Matlab
documentation site and even enabling registered Mathworks user accounts as valid login
credentials on the ThingSpeak website. The terms of service and privacy policy of
ThingSpeak.com are between the agreeing user and Mathworks, Inc. ThingSpeak is an
IOT analytics platform service that allows you to aggregate, visualize and analyze live
data streams in the cloud. ThingSpeak provides instant visualizations of data posted by
your devices to ThingSpeak. With the ability to execute MATLAB® code in ThingSpeak
you can perform online analysis and processing of the data as it comes in. ThingSpeak is
often used for prototyping and proof of concept IOT systems that require analytics.
What is IOT?
IoT solutions are built for many vertical applications such as environmental monitoring
and control, health monitoring, vehicle fleet monitoring, industrial monitoring and
control, and home automation.
At a high level, many IoT systems can be described using the diagram below:
On the left, we have the smart devices (the “things” in IOT) that live at the edge
of the network. These devices collect data and include things like wearable devices,
wireless temperatures sensors, heart rate monitors, and hydraulic pressure sensors, and
machines on the factory floor. In the middle, we have the cloud where data from many
sources is aggregated and analyzed in real time, often by an IOT analytics platform
designed for this purpose.
The right side of the diagram depicts the algorithm development associated with
the IOT application. Here an engineer or data scientist tries to gain insight into the
collected data by performing historical analysis on the data. In this case, the data is pulled
from the IoT platform into a desktop software environment to enable the engineer or
scientist to prototype algorithms that may eventually execute in the cloud or on the smart
device itself. An IOT system includes all these elements. ThingSpeak fits in the cloud
part of the diagram and provides a platform to quickly collect and analyze data from
internet connected sensors.
collaborating with web services, social network and other APIs. We will consider each of
these features in detail below.
8 fields for storing data of any type - These can be used to store the data from a
sensor or from an embedded device.
3 location fields - Can be used to store the latitude, longitude and the elevation. These
are very useful for tracking a moving device.
1 status field - A short message to describe the data stored in the channel.
To use ThingSpeak, we need to signup and create a channel. Once we have a channel,
we can send the data, allow ThingSpeak to process it and also retrieve the same.
ThingSpeak allows you to aggregate, visualize and analyze live data streams in the
cloud. Some of the key capabilities of ThingSpeak include the ability to:
Easily configure devices to send data to ThingSpeak using popular IOT protocols.
Visualize your sensor data in real-time.
Aggregate data on-demand from third-party sources.
Use the power of MATLAB to make sense of your IOT data.
Run your IoT analytics automatically based on schedules or events.
Prototype and build IoT systems without setting up servers or developing web
software.
3.2.7 IFTTT
Introduction:
If This Then That, also known as IFTTT , is a free web-based service to create
chains of simple conditional statements, called applets.
An applet is triggered by changes that occur within other web services such
as Gmail, Facebook, Telegram, Instagram, or Pinterest.
For example, an applet may send an e-mail message if the user tweets using a hashtag, or
copy a photo on Facebook to a user's archive if someone tags a user in a photo.[6]
In addition to the web-based application, the service runs on iOS and Android. In
February 2015, IFTTT renamed their original application to IF, and released a new suite
of apps called Do which lets users create shortcut applications and actions.[7] As of 2015,
IFTTT users created about 20 million recipes each day.[8] All of the functionalities of the
Do suite of apps have since been integrated into a redesigned IFTTT app.
IFTTT is both a website and a mobile app that launched in 2010 and has the
slogan "Put the Internet to work for you". The idea is that you use IFTTT to automate
everything from your favorite apps and websites to app-enabled accessories and smart
devices. If you own the Philips Hue smart lighting system, for instance, you could use
IFTTT to automatically turn on a light every time you're tagged in a Facebook photo. In
another example, you could use IFTTT to automatically email readers when they
comment on your WordPress blog. There are numerous combinations (also called
"recipes") on IFTTT that can make your life easier.
IFTTT currently supports more than 110 services (also called "channels")
including Android devices and Apple iOS apps like Reminders and Photos, as well as
websites like Facebook, Instagram, Flickr, Tumblr, Google Calendar, Google Drive,
Etsy, Feedly, Foursquare, LinkedIn, SoundCloud, WordPress, YouTube, and more.
Features:
Services (formerly known as channels) are the basic building blocks of IFTTT. They
mainly describe a series of data from a certain web service such as YouTube or eBay.
Services can also describe actions controlled with certain APIs, like SMS.
IFTTT Working:
Join:
Sign up for an account on the IFTTT website. It's a one-step process that only
requires an email, username, and password. Once finished, you will see that IFTTT has
automatically created a recipe for you (this recipe will send a recommended recipe to
your email inbox every day). From here, IFTTT should show your dashboard.
Dashboard:
On the dashboard, there is a brief explanation of how IFTTT and recipes work.
The "This" in "If This, Then That" stands for a trigger, while the "That" stands for an
action. These two linked events create an IFTTT recipe. Thus, referencing the Philips
Hue example we mentioned earlier, the trigger could be a Facebook photo tag and the
action would be the Philips Hue light turning on.
Recipes:
Also on the dashboard, you will see links to create custom recipes or browse (and
then use) recipes already created by other IFTTT users. You can also share recipes and
save recipes to a favourite section on your dashboard. If you've added a recipe to your
dashboard, you will have options to turn off, delete, and edit that recipe.
You can use IFTTT to automate your web services and smart devices, but we're
going to outline a basic recipe for automatically posting your new Instagram photos to
Twitter. Although Instagram has a default feature that lets you post Instagram photos on
Twitter, that feature includes your photo caption and friend tags. It won't let you
customise details before it publishes your Instagram photo Twitter. That's where IFTTT
can help.
You can create a custom recipe that will not only post your Instagram photo to
Twitter but also change what the final tweet will include. In other words, you can have
your tweet include the Instagram photo and maybe a URL, timestamp, or whatever other
"ingredient" you may want to add. And the best part is: the recipe will work for every
Instagram photo you post on Twitter in the future, so long as you keep the recipe toggled
on.
Step-by-step example:
1. From the dashboard, select the "Create a new recipe" link. You will then need to
click the "this" word on the following page to select your first channel (also
called trigger channel). You can scroll down the page to find and then activate
Instagram, or you can enter "Instagram" into the search bar.
2. Once you've selected Instagram, you will need to choose one of a few pre-
programmed triggers. For the purposes of this example, select "Any new photo
by you". Keep in mind you will need to connect your Instagram account to your
IFTTT account. Don't worry, everything is supposed to be safe and secure.
3. Now you need to choose your second channel (also called action channel). Start
by clicking the "that" word on the page that pops up next. From there, scroll
down to find and then activate Twitter, or you can enter "Twitter" into the
search bar.
4. Upon selecting Twitter, you will need to choose one of a few pre-programmed
actions. For the purposes of this example, select "Post a tweet". Again, you will
need to connect your Twitter account to your IFTTT account.
5. And finally, complete your action fields by inserting ingredients. You can click
the "+" symbol to insert any of the pre-programmed ingredients such as the
caption, URL, timestamp, or even embed code. All of these recipe ingredients
pertain to your Instagram photo, and they will automatically publish to Twitter
in a tweet alongside your photo.
6. Make sure you hit the "Create recipe" link at the bottom of the ingredients page
when you're finished customising your recipe. At that point, IFTTT will bring
you back to your dashboard. You should see your new recipe, with options for
editing it.
Enhancements and improvements that some IFTTT users would like to see
include the following:
It can be difficult to find the app you want, said Bearman. “It’s not because it
doesn't exist. It’s because there are many applets that sound the same. So, there's a little
trial and error to find the right app.”
“With so many people creating applets, there’s one big issue, and that’s the fact
that some apps are broken,” said Pingaro. “There doesn’t seem to be a filtering system
that proactively checks the applets that are uploaded, because I’ve found that some
applets work and then stop working, and the app stays up on the site forever.”
“The biggest area for improvement would be to have suites of applets pre-
bundled, with a much easier option for integrating multiple recipes at once,” said Dary
Merckens, CTO of Gunner Technology, a custom software developer. “There could be a
home automation bundle that lets you control all kinds of stuff at once like lights,
thermostat and grocery orders. You could have one suite and configure it all in one
place.”
Better functionality:
“There’s a blurry line between where IFTTT could improve and where the
services it connects to need some work,” said Jay Goldman, co-founder and managing
director of Sensei Labs, which offers digital workplace services. “It can be frustrating to
try to set up an applet and discover that the service provider doesn’t offer the
functionality you need, which makes IFTTT itself less useful.”
CHAPTER-4
SOFTWARE TOOL-ARDUINO IDE
Introduction:
Arduino is an open-source electronics platform based on easy-to-use hardware
and software. Arduino boards are able to read inputs - light on a sensor, a finger on a
button, or a Twitter message - and turn it into an output - activating a motor, turning on
an LED, publishing something online. You can tell your board what to do by sending a
set of instructions to the microcontroller on the board. To do so you use the Arduino
programming language (based on Wiring), and the Arduino Software (IDE), based
on Processing.
Over the years Arduino has been the brain of thousands of projects, from
everyday objects to complex scientific instruments. A worldwide community of makers -
students, hobbyists, artists, programmers, and professionals - has gathered around this
open-source platform, their contributions have added up to an incredible amount
of accessible knowledge that can be of great help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast
prototyping, aimed at students without a background in electronics and programming. As
soon as it reached a wider community, the Arduino board started changing to adapt to
new needs and challenges, differentiating its offer from simple 8-bit boards to products
for IoT applications, wearable, 3D printing, and embedded environments. All Arduino
boards are completely open-source, empowering users to build them independently and
eventually adapt them to their particular needs. The software, too, is open-source, and it
is growing through the contributions of users worldwide.
Hardware Specifications:
Microcontroller: ATmega328
Operating Voltage: 5V
Input Voltage (recommended):7-12V
MHz
Arduino 5V 16MHz 14 6 6 1 FTDI
Pro Compatible
5V/16M Header
Hz
Arduino 5V 16MHz 14 8 6 1 FTDI
mini 05 Compatible
Header
Arduino 3.3V 8MHz 14 8 6 1 FTDI
Pro mini Compatible
3.3v/8mh Header
z
Arduino 5V 16MHz 14 8 6 1 FTDI
Pro mini Compatible
5v/16mhz Header
Arduino 5V 16MHz 14 6 6 1 FTDI
Ethernet Compatible
Header
Arduino 3.3V 8MHz 14 8 6 1 FTDI
Fio Compatible
Header
LilyPad 3.3V 8MHz 14 6 6 1 FTDI
Arduino Compatible
328 main Header
board
LilyPad 3.3V 8MHz 9 4 5 0 FTDI
Arduino Compatible
simply Header
board
Table 4.1 Arduino boards based on ATMEGA328 microcontroller
Arduino board Description:
We will learn about the different components on the Arduino board. We will
study the Arduino UNO board because it is the most popular board in the Arduino board
family. In addition, it is the best board to get started with electronics and coding. Some
boards look a bit different from the one given below, but most Arduino’s have majority
of these components in common.
1. Power USB:
Arduino board can be powered by using the USB cable from your computer. All
you need to do is connect the USB cable to the USB connection (1).
2. Power (Barrel Jack):
Arduino boards can be powered directly from the AC mains power supply by
connecting it to the Barrel Jack (2).
3. Voltage Regulator:
The function of the voltage regulator is to control the voltage given to the Arduino
board and stabilize the DC voltages used by the processor and other elements.
4. Crystal Oscillator:
The crystal oscillator helps Arduino in dealing with time issues. How does
Arduino calculate time? The answer is, by using the crystal oscillator. The number
printed on top of the Arduino crystal is 16.000H9H. It tells us that the frequency is
16,000,000 Hertz or 16 MHz
5, 17. Arduino Reset:
You can reset your Arduino board, i.e., start your program from the beginning.
You can reset the UNO board in two ways. First, by using the reset button (17) on the
board. Second, you can connect an external reset button to the Arduino pin labeled
RESET (5).
6, 7, 8, 9. Pins (3.3, 5, GND, Vin):
3.3V (6): Supply 3.3 output volt
5V (7): Supply 5 output volt
Most of the components used with Arduino board works fine with 3.3 volt and 5 volt.
GND (8)(Ground): There are several GND pins on the Arduino, any of which can be
used to ground your circuit.
Vin (9): This pin also can be used to power the Arduino board from an external power
source, like AC mains power supply.
10. Analog pins:
The Arduino UNO board has five analog input pins A0 through A5. These pins
can read the signal from an analog sensor like the humidity sensor or temperature sensor
and convert it into a digital value that can be read by the microprocessor.
11. Main microcontroller:
Each Arduino board has its own microcontroller (11). You can assume it as the
brain of your board. The main IC (integrated circuit) on the Arduino is slightly different
from board to board. The microcontrollers are usually of the ATMEL Company. You
must know what IC your board has before loading up a new program from the Arduino
IDE. This information is available on the top of the IC. For more details about the IC
construction and functions, you can refer to the data sheet.
12. ICSP pin:
Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino
consisting of MOSI, MISO, SCK, RESET, VCC, and GND. It is often referred to as an
SPI (Serial Peripheral Interface), which could be considered as an "expansion" of the
output. Actually, you are slaving the output device to the master of the SPI bus.
13. Power LED indicator:
This LED should light up when you plug your Arduino into a power source to
indicate that your board is powered up correctly. If this light does not turn on, then there
is something wrong with the connection.
Arduino Installation:
After learning about the main parts of the Arduino UNO board, we are ready to
learn how to set up the Arduino IDE. Once we learn this, we will be ready to upload our
program on the Arduino board. In this section, we will learn in easy steps, how to set up
the Arduino IDE on our computer and prepare the board to receive the program via USB
cable.
Step 1:
First you must have your Arduino board (you can choose your favorite board) and a USB
cable. In case you use Arduino UNO, Arduino Duemilanove, Nano, Arduino Mega 2560,
or Diecimila, you will need a standard USB cable (A plug to B plug), the kind you would
connect to a USB printer as shown in the following image.
operating system (Windows, IOS, or Linux). After your file download is complete, unzip
the file.
Note: If you have an Arduino Mini, NG, or other board, you need to press the reset button
physically on the board, immediately before clicking the upload button on the Arduino
Software.
CHAPTER-5
PROJECT OUTLOOK AND OUTPUTS
5.1 PROJECT OUTLOOK
WORKING
Pulse sensor is connected to Finger tip or Ear lobe as pulse can be detected easily
from there. The pulse sensor emits and detects the light rays into the ear or finger
and calculates the pulse rate. The output analog pulse rate is connected to the A0
analog input pin of the NODE MCU. The input connected to the NODE MCU is
converted into digital form.
The Temperature sensor is attached to the body part of the patient and the
temperature sensor senses the body temperature and converts into digital form.
The temperature sensor is connected to the D3the digital input pin of the NODE
MCU.
The Vibration sensor has two separated contacts if patient’s body vibrates then
sensor short circuits and gives digital high output. If not remains as low output.
The vibration sensor output is connected to the D5 pin of NODE MCU.
NODE MCU connected to internet with built in WIFI module updates the sensor
output values to the THINGSPEAK server.
IFTTT cloud based service is assigned with particular range of sensor output
parameters. The IFTTT is programmed such that if the sensor output values
exceed the given range then An alert is sent to pre-assigned Email.
5.2 OUTPUTS
ADVANTAGES
IOT Monitoring proves really helpful when we need to monitor & record and
keep track of changes in the health parameters of the patient over the period of
time. So with the IOT health monitoring, we can have the database of these
changes in the health parameters. Doctors can take the reference of these changes
or the history of the patient while suggesting the treatment or the medicines to the
patient.
Patient health parameter data is stored over the cloud. So it is more beneficial than
maintaining the records on printed papers kept in the files. Or even the digital
records which are kept in a particular computer or laptop or memory device like
pen- drive. Because there are chances that these devices can get corrupt and data
might be lost. Whereas, in case of IOT, the cloud storage is more reliable and
does have minimal chances of data loss.
APPLICATIONS
IOT Healthcare is the most demanding field in the medical area. This project is for,
elderly person in our home. Also for the senior citizen living alone or living with 1
or 2 members. This project really proves helpful when family members need to go
out for some emergency work.
Disable patients who find it really difficult to go to doctors on daily basis or for
those patients who need continuous monitoring from the doctor
CONCLUSION
Monitoring your beloved ones becomes a difficult task in the modern day life.
Keeping track of the health status of the patient at home is a difficult task. Specially old
age patients should be periodically monitored and their loved ones need to be informed
about their health status from time to time while at work. So, a system with an innovative
system that automated this task with ease. This system puts forward a smart patient health
monitoring system that uses sensors to track patient health and uses internet to inform
their loved ones in case of any issues. Our system uses temperature as well as heartbeat
sensing to keep track of patient health. The sensors are connected to a mcu to track the
status which is in turn interfaced to a wifi module connection in order to transmit alerts.
If system detects any abrupt changes in patient heartbeat or body temperature, the
system automatically alerts the user about the patients status over IOT and also shows
details of heartbeat and temperature of patient live over the internet. The sensors to cloud
system with Internet of Things (IoT) concept experimentally tested for monitoring three
parameters. It also sent the sensor parameters to the cloud (Thing speak). This data will
be helpful for future analysis and it can be easily shared to other end users.Then the
collected data and analysis results will be available to the end user through the Wi-Fi.
Thus IOT based patient health monitoring system effectively uses internet to monitor
patient health stats and save lives on time.
FUTURESCOPE
A GPS module in IOT patient monitoring can be added. 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] Jorge Gomez, Byron Oviedo, Emilio Zhuma: “Patient Monitoring System Based on
Internet of Things,” The 7th International Conference on Ambient Systems, Networks
and Technologies (ANT 2016).
[2] Prosanta Gope and Tzonelih Hwang: “BSN-Care: A Secure IoT-Based Modern
Healthcare System Using Body Sensor Network,” IEEE SENSORS JOURNAL, VOL.
16, NO. 5, MARCH 1, 2016.
[3] Moeen Hassanalieragh , Alex Page , Tolga Soyata , Gaurav Sharma, Mehmet Aktas ,
Gonzalo Mateos ,Burak Kantarci , Silvana Andreescu: “Health Monitoring and
Management Using Internet-of-Things (IoT) Sensing with Cloud-based Processing:
Opportunities and Challenges” 2015 IEEE International Conference on Services
Computing.
[4] World population ageing 2013, United Nations, New York, NY, USA, 2013, pp. 8–
10.
[5] H.Fang, X.Dan, and S.Shaowu, “On the application of the Internet of Things in the
Field of Medical and Health Care,” in the Green Computing and Communications(Green
Com), 2013 IEEE and Internet of Things(i Things /CPSCom), IEEE International
Conference on and IEEE Cyber, Physical and Social Computing, 2013.
[6] A. Page, O. Kocabas, T. Soyata, M. Aktas, and J.-P. Couderc, “CloudBased Privacy-
Preserving Remote ECG Monitoring and Surveillance,” Annals of Noninvasive
Electrocardiology (ANEC), 2014. [Online]. Available:
http://dx.doi.org/10.1111/anec.12204
[7] R. Paradiso, G. Loriga, and N. Taccini, “A wearable health care system based on
knitted integrated sensors,” IEEE Trans. Info. Tech. in Biomedicine, vol. 9, no. 3, pp.
337–344, Sept 2005.
[8] A. Benharref and M. Serhani, “Novel cloud and SOA-based framework for E-Health
monitoring using wireless biosensors,” IEEE Journal of Biomed. and Health Inf., vol. 18,
no. 1, pp. 46–55, Jan 2014.