0% found this document useful (0 votes)
21 views27 pages

Lecture4 - 2 - Health Monitoring

Uploaded by

Akshita Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views27 pages

Lecture4 - 2 - Health Monitoring

Uploaded by

Akshita Arora
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

IoT based System

UEC715

11/16/2024 IoT based Sytem (UEC715) 1


Subject : IoT based System
Code : UEC715

Unit : #4 [IoT Case Studies]


Lecture : #2

Topics covered:
IoT Based Patient Health Monitoring using ESP8266 & Arduino

Dr. Amit Mishra

11/16/2024 IoT based Sytem (UEC715) 2


IoT Based Patient Health Monitoring using ESP8266 & Arduino

In this project, the IoT Based Patient


Health Monitoring System is being designed
using ESP8266 & Arduino. The IoT
platform used in this project is ThingSpeak.

ThingSpeak is an open-source Internet of


Things (IoT) application and API to store
and retrieve data from things using the
HTTP protocol over the Internet or via a
Local Area Network.

This IoT device could read the pulse rate and measure the surrounding temperature. It
continuously monitors the pulse rate and surrounding temperature and updates them to an IoT
platform.
Link: https://how2electronics.com/iot-patient-health-monitoring-system-esp8266/
11/16/2024 IoT based Sytem (UEC715) 3
Block Diagram:

This is a simple block diagram that


explains the IoT Based Patient Health
Monitoring System using ESP8266 &
Arduino.

Pulse Sensor and LM35 Temperature


Sensors measure BPM & Environmental
Temperature respectively.

The Arduino processes the code and displays it to 16*2 LCD Display. ESP8266 Wi-Fi
module connects to Wi-Fi and sends the data to IoT device server.

The IoT server used here is Thingspeak. Finally, the data can be monitored from any part of
the world by logging into the Thingspeak channel.

11/16/2024 IoT based Sytem (UEC715) 4


Components Required
Arduino Uno
ESP8266-01 Wifi Module
Pulse Sensor
Temperature Sensor
Potentiometer
Arduino Uno
Resistor
LED ESP8266 wi-fi module Male/Female
16X2 LCD Jumper Wires
 Breadboard
USB-A to B Cable
Male/Female Jumper Wires
16X2 LCD

Temperature
11/16/2024 IoT based Sytem (UEC715)
Potentiometer 5
Pulse Sensor sensor LED
Pulse Sensor
The Pulse Sensor is a 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 essence is an integrated optical amplifying circuit


and noise eliminating circuit sensor.

Clip the Pulse Sensor to your earlobe or fingertip and plug it into your Arduino, you can ready
to read heart rate. Also, it has an Arduino demo code that makes it easy to use.

The pulse sensor has three pins: VCC, GND & Analog Pin.

There is also a LED in the center of this sensor module which helps in detecting the heartbeat.
Below the LED, there is a noise elimination circuitry that is supposed to keep away the noise from
affecting the readings.
11/16/2024 IoT based Sytem (UEC715) 6
LM35 Temperature Sensor

The LM35 series are precision integrated-circuit


temperature devices with an output voltage linearly-
proportional to the Centigrade temperature.

The LM35 device has an advantage over linear


temperature sensors calibrated in Kelvin, as the user
is not required to subtract a large constant voltage
from the output to obtain convenient Centigrade
scaling.

The LM35 device does not require any external calibration or trimming to provide typical
accuracies of ±¼°C at room temperature and ±¾°C over a full −55°C to 150°C temperature
range.

11/16/2024 IoT based Sytem (UEC715) 7


ESP8266
The ESP8266 is a very user-friendly and
low-cost device to provide internet
connectivity to your projects.

The module can work both as an Access


point (can create hotspot) and as a station (can
connect to Wi-Fi), hence it can easily fetch
data and upload it to the internet making the
Internet of Things as easy as possible.
It can also fetch data from the internet using API’s hence your project could access any
information that is available on the internet, thus making it smarter. Another exciting feature of this
module is that it can be programmed using the Arduino IDE which makes it a lot more user
friendly.
The ESP8266 module works with 3.3V only, anything more than 3.7V would kill the module
hence be cautions with your circuits.

11/16/2024 IoT based Sytem (UEC715) 8


Here is its pins description.

Pin 1: Ground: Connected to the ground of the circuit


Pin 2: Tx/GPIO – 1: Connected to Rx pin of programmer/uC to upload program
Pin 3: GPIO – 2: General purpose Input/output pin
Pin 4 : CH_EN: Chip Enable/Active high
Pin 5: Flash/GPIO – 0: General purpose Input/output pin
Pin 6 : Reset: Resets the module
Pin 7: RX/GPIO – 3: General purpose Input/output pin
Pin 8: Vcc: Connect to +3.3V only

11/16/2024 IoT based Sytem (UEC715) 9


Circuit Diagram & Connections:

11/16/2024 IoT based Sytem (UEC715) 10


Continued…
Connect Pulse Sensor output pin to A0 of
Arduino and other two pins to VCC & GND.
Connect LM35 Temperature Sensor output pin to
A1 of Arduino and other two pins to VCC & GND.
Connect the LED to Digital Pin 7 of Arduino via
a 220-ohm resistor.
Connect Pin 1,3,5,16 of LCD to GND.
Connect Pin 2,15 of LCD to VCC.
Connect Pin 4,6,11,12,13,14 of LCD to Digital
Pin12,11,5,4,3,2 of Arduino.
The RX pin of ESP8266 works on 3.3V and it will not communicate with the Arduino when we
will connect it directly to the Arduino. So, we will have to make a voltage divider for it which will
convert the 5V into 3.3V. This can be done by connecting the 2.2K & 1K resistor. Thus the RX pin
of the ESP8266 is connected to pin 10 of Arduino through the resistors.
Connect the TX pin of the ESP8266 to pin 9 of the Arduino.

11/16/2024 IoT based Sytem (UEC715) 11


Setting the ThingSpeak
ThingSpeak provides a very good tool for IoT based projects. By using the ThingSpeak site, we
can monitor our data and control our system over the Internet, using the Channels and web pages
provided by ThingSpeak. So first we need to sign up for ThingSpeak.

Therefore, visit https://thingspeak.com and create an account.

11/16/2024 IoT based Sytem (UEC715) 12


Create a new channel and set up what you want.
Then create the API keys. This key is required for programming modifications and setting
your data.

Then upload the code to the Arduino UNO by assembling the circuit shown above.
Open the serial monitor and it will automatically connect to Wi-Fi and set up everything.
11/16/2024 IoT based Sytem (UEC715) 13
Now click on channels so that you can see the online data streaming, i.e IoT Based Patient
Health Monitoring System using ESP8266 & Arduino as shown in the figure here.

11/16/2024 IoT based Sytem (UEC715) 14


Source Code

11/16/2024 IoT based Sytem (UEC715) 15


Continued…

11/16/2024 IoT based Sytem (UEC715) 16


Continued…

11/16/2024 IoT based Sytem (UEC715) 17


Continued…

11/16/2024 IoT based Sytem (UEC715) 18


Continued…

11/16/2024 IoT based Sytem (UEC715) 19


Continued…

11/16/2024 IoT based Sytem (UEC715) 20


Continued…

11/16/2024 IoT based Sytem (UEC715) 21


Continued…

11/16/2024 IoT based Sytem (UEC715) 22


Continued…

11/16/2024 IoT based Sytem (UEC715) 23


Continued…

11/16/2024 IoT based Sytem (UEC715) 24


Continued…

11/16/2024 IoT based Sytem (UEC715) 25


Demonstration:

LINK: https://www.youtube.com/watch?v=Utlnd_FDB9A
11/16/2024 IoT based Sytem (UEC715) 26
11/16/2024 IoT based Sytem (UEC715) 27

You might also like