Batch 9
Batch 9
Batch 9
USING IOT
ABSTRACT
Nowadays Health Care sector is developing in terms of science and technology by
using Wireless-Sensing node technology. Care must be taken in order to maintain
good health or else it might affect almost any part of body. Patients are facing a
situation of unpredicted demise due to many reasons like heart problems and heart
attack which is because of non-availability of good medical support to patients at the
necessary time. In order to get rid of all such problems our project aims to wipe off
such sudden deaths by using Patient Health Monitoring that uses sensor technology
and uses internet to communicate to the loved ones in case of problems. This project
is especially developed to ensure good safety of health of old aged patients and
informing doctors and their loved ones about their health conditions at any given time.
This system uses Temperature, ECG, and heartbeat sensor for tracking patient’s
health. The sensors are connected to the Arduino Mega. In case of any adverse
changes in patient heart rate or body temperature or ECG alert is sent about the patient
using IOT. Thus, Patient health monitoring system based on IOT uses internet to
effectively monitor patient health irrespective of the availability of doctors.
This project uses regulated 5V, 500mA power supply. Unregulated 12V DC is used
for relay. 7805 three terminal voltage regulator is used for voltage regulation. Bridge
type full wave rectifier is used to rectify the ac output of secondary of 230/12V step
down transformer.
CHAPTER 1
INTRODUCTION TO EMBEDDED SYSTEMS
1.1 INTRODUCTION:
1.3 CHARACTERISTICS:
Seria
l
CPU COM
RAM ROM I/O Port Timer
General Port
MICROCONTR
OLLERS (MC)-
Purpose
Embedded Systems talk with the outside world via peripherals, such as
Serial Communication Interfaces (SCI): RS-232, RS-422, RS-
485etc
Synchronous Serial Communication Interface: I2C, JTAG, SPI,
SSC and ESSI
Universal Serial Bus (USB)
Networks: Ethernet, Controller Area Network, LAN networks,
etc.
Timers: PLL(s), Capture/Compare and Time Processing Units
Discrete IO: aka General Purpose Input/output (GPIO)
Ana log to Digital/Digital to Analog (ADC/DAC)
Tools:
2.1 INTRODUCTION
Zigbee and Bluetooth are used for remote telemetry given the
requirements for high bandwidth, standardized communications protocol,
there are prevalence in consumer endpoints for visualization and data relay,
and the ability to interface to a large number of Bluetooth and Zigbee-
enabled health devices, which can be choose freely by wearer.
Currently available devices are overpriced in the market, even more so,
they are not available in Bangladesh. The resolution was establishing a
remote personalized assistive system which is in need at this moment in this
country as there are an insubstantial number of doctors in remote/rural
areas. This system can help those areas greatly and doctors can work
remotely taking better care for many patients who are in need of assistance.
On the other hand, ambulances in Bangladesh are are not properly equipped
with any sort of devices that monitor the health of the patient being
transported, whereas it is a necessity to have a health monitoring system in
ambulances as it gives the doctor critical insight about the patient. Hence,
this system can be put to good use within ambulances as well. On the other
hand, Bangladesh faces a lot of congestion and traffic on the road and there
is no emergency lane for the ambulances to pass in critical situations. Many
patients face serious consequences for this reason only. So, this device can
help in that area severely.
RPS Wi-Fi
MODULE
TEMPERATURE
SENSOR IOT
SPO2 SENSOR
MOBILE APP
ARDUINO
MEGA
ECG SENSOR
LCD
SWITCH
BUZZER
RTC
IOT Technology
CHAPTER 3
IOT TECHNOLOGY
Event driven
Ambient intelligence
Flexible structure
Semantic sharing
When I'll be ready to leave the house, the smart refrigerator will tell
me that there is milk and fruits for my breakfast and I shouldn’t eat cheese
today because I didn’t exercise yesterday. It is so smart that if any food item
has finished or expired- it will connect to the supermarket on the internet,
order my groceries and I would be able to pay sitting from anywhere
anytime through my mobile wallet.
These devices are so smart that they would be collecting data from my
physical movements and will monitor my activities and behavior to do
predictive analysis of my routine and preferences. You would be amazed
at how many such smart devices already exist or are going to be available in
the near future to make up a powerful Internet of Things.
Application Layer
1. Gateway and the network layer
2. Management Service layer
3. Sensor layer
3.9 APPLICATIONS:
Sensors have always been an integral part of the factory setup for
security, automation, climate control, etc. This will eventually be replaced
by a wireless system giving the flexibility to make changes to the setup
whenever required. This is nothing but an IoT subnet dedicated to factory
maintenance.
3.9.3 Utilities
The information from the networks in this application domain is
usually for service optimization rather than consumer consumption. It is
already being used by utility companies (smart meter by electricity supply
companies) for resource management in order to optimize cost vs. profit.
These are made up of very extensive networks (usually laid out by large
organization on a regional and national scale) for monitoring critical
utilities and efficient resource management. The backbone network used
can vary between cellular, Wi-Fi and satellite communication.
Smart grid and smart metering are another potential IOT application
which is being implemented around the world. Efficient energy
consumption can be achieved by continuously monitoring every electricity
point within a house and using this information to modify the way
electricity is consumed. This information at the city scale is used for
maintaining the load balance within the grid ensuring high quality of
service.
3.9.4 MOBILE:
Smart transportation and smart logistics are placed in a separate
domain due to the nature of data sharing and backbone implementation
required. Urban traffic is the main contributor to traffic noise pollution and
a major contributor to urban air quality degradation and greenhouse gas
emissions. Traffic congestion directly imposes significant costs on
economic and social activities in most cities. Supply chain efficiencies and
productivity, including just-in-time operations, are severely impacted by
this congestion causing freight delays and delivery schedule failures.
Dynamic traffic information will affect freight movement, allow better
planning and improved scheduling. The transport IoT will enable the use of
large scale WSNs for online monitoring of travel times, origin– destination
(O–D) route choice behavior, queue lengths and air pollutant and noise
emissions. The IoT is likely to replace the traffic information provided by
the existing sensor networks of inductive loop vehicle detectors employed
at the intersections of existing traffic control systems. They will also
underpin the development of scenario-based models for the planning and
design of mitigation and alleviation plans, as well as improved algorithms
for urban traffic control, including multi-objective control systems.
Combined with information gathered from the urban traffic control system,
valid and relevant information on traffic conditions can be presented to
travelers. The prevalence of Bluetooth technology (BT) devices reflects the
current IoT penetration in a number of digital products such as mobile
phones, car hands-free sets, navigation systems, etc. BT devices emit
signals with a unique Media Access Identification (MAC-ID) number that
can be read by BT sensors within the coverage area.
a) Reading data streams either from sensors directly or fetch the data
from databases.
b) Easy expression of data analysis logic as functions/operators that
process data streams in a transparent and scalable manner on Cloud
infrastructures
c) If any events of interest are detected, outcomes should be passed to
output streams, which are connected to a visualization program.
Using such a framework, the developer of IoT applications will able
to harness the power of Cloud computing without knowing low-
level details of creating reliable and scale applications.
3.9.6 BENEFITS OF INTERNET OF THINGS
Economic growth
Better environment
Improved competitiveness
3.10.1 SMARTWATCHES
Smartwatches broke new ground last year, with the popularity of the
devices like the pebble and the Galaxy Gear. More mart watches making
their way in the market with better and at the feasible prices. With apple’s
long-anticipated but expected announcement of the iWatch, as the company
has been ramping up its sapphire glass production and flexible, wearable
watch like patents.
3.11.1 ARCHITECTURE
Overall architecture followed at the initial stages of IoT research
will have a severe bearing on the field itself and needs to be investigated.
Most of the works relating to IoT architecture have been from the wireless
sensor networks perspective.
HARDWARE COMPONENTS
HARDWARE COMPONENTS ARE
Power Supply
Arduino Mega
Temperature Sensor
SPO2 Sensor
ECG Sensor
Switch
RTC
Wi-Fi Module
LCD
Buzzer
In this project we have power supplies with +5V & -5V option
normally +5V is enough for total circuit. Another (-5V) supply is used in
case of OP amp circuit.
TRANSFORMER
RECTIFIERS
FILTERS
Rectifier O/P C RL
SUMMARY
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 14 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
POWER
The Arduino Mega can be powered via the USB connection or with an
external power supply. The power source is selected automatically. External
(non-USB) power can come either from an AC-to-DC adapter (wall-wart)
or battery. The adapter can be connected by plugging a 2.1mm center-
positive plug into the board's power jack. Leads from a battery can be
inserted in the Gnd and Vin pin headers of the POWER connector.
The Mega2560 differs from all preceding boards in that it does not use
the FTDI USB-to-serial driver chip. Instead, it features the ATmega16U2
(ATmega8U2 in the revision 1 and revision 2 boards) programmed as a
USB-to-serial converter.
VIN: The input voltage to the Arduino board when it's using an external
power source (as opposed to 5 volts from the USB connection or other
regulated power source). You can supply voltage through this pin, or, if
supplying voltage via the power jack, access it through this pin.
5V: The regulated power supply used to power the microcontroller and
other components on the board. This can come either from VIN via an on-
board regulator, or be supplied by USB or another regulated 5V supply.
MEMORY
The ATmega2560 has 256 KB of flash memory for storing code (of
which 8 KB is used for the bootloader), 8 KB of SRAM and 4 KB of
EEPROM (which can be read and written with the EEPROM library).
COMMUNICATION
The Arduino Mega2560 has a number of facilities for communicating with
a computer, another Arduino, or other microcontrollers. The ATmega2560
provides four hardware UARTs for TTL (5V) serial communication. An
ATmega16U2 (ATmega 8U2 on the revision 1 and revision 2 boards) on
the board channels one of these over USB and provides a virtual com port
to software on the computer (Windows machines will need a .inf file, but
OSX and Linux machines will recognize the board as a COM port
automatically. The Arduino software includes a serial monitor which allows
simple textual data to be sent to and from the board. The RX and TX LEDs
on the board will flash when data is being transmitted via the
ATmega8U2/ATmega16U2 chip and USB connection to the computer (but
not for serial communication on pins 0 and 1). A Software Serial library
allows for serial communication on any of the Mega2560's digital pins. The
ATmega2560 also supports TWI and SPI communication. The Arduino
software includes a Wire library to simplify use of the TWI bus; see the
documentation for details. For SPI communication, use the SPI library.
GND: Ground
SPECIFICATIONS
Operating Voltage: 4 V to 30 V
Output Voltage: 10mV/°C
Sensitivity: 10mV/°C
Linearity Error: ±1°C (for 0°C to +100°C)
Operating Temperature: -55°C to +150°C
Output Impedance: 100 Ω
Power Consumption: 60 μA (typical)
Package Type: TO-92, TO-220, SOIC
Output Type: Analog
Accuracy: ±1°C (typical)
WORK PROCEDURE
When the database detects the patient’s ID validity then it gives the login
page. It can get now access anywhere from both mobile or web applications
and all the information obtained from the patient through the sensor will be
stored securely in the hospital database. The saved database then sends a
confirmation text to the patient’s device that the sensor starts running
successfully.
For this procedure, the database measures the patient’s actual physical
condition from the beginning. The sensor reads the data and compares it
with the medical history of the patient which is stored immediately in the
database system. Then by using a wireless sensor network the database
communicates with the master device remotely.
4.5 ECG SENSOR
ECG Monitor Sensor Module is based on AD8232 Analog Device IC. This
is a cost-effective ECG Sensor used to measure the electrical activity of the
heart. This electrical activity can be charted as an ECG or
Electrocardiogram and output as an analog reading. ECGs can be extremely
noisy, out AD8232 Single Lead Heart Rate Monitor acts as an op amp to
help obtain a clear signal. This sensor can be connected to an
Arduino/Raspberry Pi, etc. Sample codes are easily available on the
internet.
The AD8232 is an integrated signal conditioning block for ECG and other
biopotential measurement applications. It is designed to extract, amplify,
and filter small biopotential signals in the presence of noisy conditions,
such as those created by motion or remote electrode placement.
The AD8232 module breaks out nine connections from the IC that you can
solder pins, wires, or other connectors to. SDN, LO+, LO-, OUTPUT, 3.3V,
GND provide essential pins for operating this monitor with an Arduino or
other development board. Also provided on this board are RA (Right Arm),
LA (Left Arm), and RL (Right Leg) pins to attach and use your own custom
sensors. Additionally, there is an LED indicator light that will pulsate to the
rhythm of a heart beat.
FEATURES
Analog Output
Leads-Off Detection
Shutdown Pin
LED Indicator
4.6 SWITCHES
4.7 RTC
RTC module detects a voltage drop of the main power supply and
automatically switches to a backup power supply for operation. while the
MOS switch suppresses leakage current and voltage drops, enabling
efficient power management of the entire system compared to diode OR
circuits.
SPECIFICATIONS
ADVANTAGES
802.11 b/g/n
Integrated low power 32-bit MCU
Integrated 10-bit ADC
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching
network
Integrated PLL, regulators, and power management units
Supports antenna diversity
Wi-Fi 2.4 GHz, support WPA/WPA2
Support STA/AP/STA+AP operation modes
Support Smart Link Function for both Android and iOS devices
Support Smart Link Function for both Android and iOS devices
SDIO 2.0, (H) SPI, UART, I2C, I2S, IRDA, PWM, GPIO
STBC, 1x1 MIMO, 2x1 MIMO
A-MPDU & A-MSDU aggregation and 0.4s guard interval
Deep sleep power < 5Ua
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)
+20dBm output power in 802.11b mode.
Operating temperature range -40C ~ 125C
FEATURES
E-blocks compatible
Low cost
Compatible with most I/O ports in the E-Block range (requires 5 I/O
lines via 9-way D-type connector)
Ease to develop programming code using Flow code icons
Fundamentals of Liquid Crystal Displays
The term liquid crystal is used to describe a substance in a state
between liquid and solid but which exhibits the properties of both.
Molecules in liquid crystals tend to arrange themselves until they all point
in the same specific direction. This arrangement of molecules enables the
medium to flow as a liquid. Depending on the temperature and particular
nature of a substance, liquid crystals can exist in one of several distinct
phases. Liquid crystals in a nematic phase, in which there is no spatial
ordering of the molecules, for example, are used in LCD technology.
4.10 BUZZERS
SOFTWARE COMPONENTS
In Node MCU Boards the first thing you need is to install the Firmware
to the board the following method works for all Node MCU Boards
1. Open the Node MCU flasher master folder than open the
win32/win64 folder as your computer. Now open the folder Release than
double click ESP8266Flasher.
3. Go to configure tab.
4. Click on the small gear and open up the firmware which you have
downloaded.
After installing the firmware you are ready to do the programming with
the ESP8266
(http://arduino.esp8266.com/stable/package_esp8266com_index.json)
OK
5. Go to Tools>Borads>Boards Manager
Step 3: Code...
Now we can do whatever you want with your Node MCU board
Following is an example for led blinking with Node MCU board via web
server
In arduino IDE go to tools>Boards>select NODEMCU 1.0
(ESP - 12E Module)
Again go to tools and select port.
Change the Wi-Fi name and password from the following code.
Now click on Upload button to upload the following code.
Connect the led's positive leg on D9 pin of board and negative to
the ground of the code.
Power up the board and open the serial monitor from arduino IDE
After connecting to the Wi-Fi it will show you the IP address.
Type that IP address on the web browser (Edge, Chrome,
Firefox etc.,)
A webpage will open you can change the status of LED by
turning it ON or OFF.
Application Example:
The input is read from switch pin. If switch is closed, it will read a low.
The LED output pin is set to the opposite of the switch pin. If the switch
is closed, the output pin will be set to a high. A high will turn on the LED.
5.2PROTEUS
5.2.1 INTRODUCTION:
What is the main difference between the dotted PCB and layout PCB?
After completion of designing save with some mane and debug it.
This is virtual simulation means without making circuit we can see the
result in virtually through this software and we can design the PCB layout
to our required circuit with this software.
5.3MIT APP INVENTER
Log in to App Inventor with a Gmail (or google) user name and
password.
Use an existing gmail account or school-based google account to log in
to ai2.appinventor.mit.edu
Type in the project name (underscores are allowed, spaces are not) and
click OK.
You are now in the Designer, where you lay out the "user interface" of your
app.
The Design Window or simply "Designer" is where you lay out
the look and feel of your app, and specify what functionalities it should
have. You choose things for the user interface things like Buttons, Images,
and Text boxes, and functionalities like Text-to-Speech, Sensors, and GPS.
Add a Button
Our project needs a button. Click and hold on the word "Button" in
the palette. Drag your mouse over to the Viewer. Drop the button and a
new button will appear on the Viewer.
If for some reason you cannot connect to the Google Play store, you can
download the AI2 Companion as described here.
First, you will need to go into your phone's settings (#1), choose "Security",
then scroll down to allow "Unknown Sources", which allows apps that are
not from the Play Store to be installed on the phone.
On your phone or tablet, click the icon for the MIT AI Companion to start
the app. NOTE: Your phone and computer must both be on the same
wireless network. Make sure your phones Wi-Fi is on and that you are
connected to the local wireless network. If you cannot connect over Wi-Fi,
go to the Setup Instructions on the App Inventor Website to find out how to
connect with a USB cable.
Get the Connection Code from App Inventor and scan or type it into
Companion app
On the Connect menu, choose "AI Companion". You can connect by:
You will know that your connection is successful when you see your app on
the connected device. So far, our app only has a button, so that is what you
will see. As you add more to the project, you will see your app change on
your phone.
CHAPTER 6
7.1 ADVANTAGES
7.2 APPLICATIONS
CHAPTER 8
Nearly 8/10 of health care provider going to use IOT devices in their
institutions, organization.
88% of facilities going to monitor their patients with IoT devices.
91 % of organization of are planning on implementing IOT in their
facilities in their by 2023.
Organizations, institutions fell that IOT as saved costs up to 78% of
their facilities. Also, Internet of Things (IoT) Healthcare market was
valued at USD 28.42 Billion in 2018 and is projected to reach USD
337.41 billion by 2035, growing at a CAGR of 28.2% over the
forecast period.
CHAPTER 9
REFERENCE