0% found this document useful (0 votes)
4 views16 pages

IoT Project 3

The document describes an IoT-based Elderly Fall Detection and Health Monitoring System utilizing an ESP32 microcontroller and various sensors to monitor elderly individuals' health and safety. The system detects falls, tracks heart rate, and monitors environmental conditions, sending real-time alerts to caregivers via the Blynk Cloud. It emphasizes a low-cost, scalable solution for enhancing elderly care through continuous monitoring and immediate emergency notifications.
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)
4 views16 pages

IoT Project 3

The document describes an IoT-based Elderly Fall Detection and Health Monitoring System utilizing an ESP32 microcontroller and various sensors to monitor elderly individuals' health and safety. The system detects falls, tracks heart rate, and monitors environmental conditions, sending real-time alerts to caregivers via the Blynk Cloud. It emphasizes a low-cost, scalable solution for enhancing elderly care through continuous monitoring and immediate emergency notifications.
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

IoT-Based Elderly Fall Detection and Health Monitoring System

Abstract
The growing elderly population across the world has increased the demand for intelligent
monitoring systems capable of providing continuous supervision, early health detection, and
emergency support. Falls remain one of the major medical risks for older adults, often leading to
serious injuries, hospitalization, and loss of independent living. This project presents an IoT-based
Elderly Fall Detection and Health Monitoring System designed using an ESP32 microcontroller
integrated with an MPU6050 accelerometer, a Pulse Sensor Amped, and a DHT22 temperature–
humidity sensor. The system continuously monitors body movements, heart rate, and
environmental conditions, and transmits data to the Blynk Cloud using Wi-Fi for real-time
visualization and notification. A sudden fall event is identified using acceleration vector magnitude
combined with orientation analysis. Local alarms are provided through a buzzer and LED
indicators, while remote alerts are pushed to caregivers’ smartphones. The entire system is
simulated using the Wokwi platform before hardware implementation, ensuring reliability and
verifying connectivity. This report describes the hardware architecture, software components, IoT
communication protocols, sensor operation principles, cloud integration, results from simulation,
and the overall effectiveness of the system. The solution demonstrates a low-cost, scalable, and
practical approach to remote elderly safety and health monitoring.
1. Introduction
The global increase in the elderly population has intensified the need for innovative
technological solutions aimed at enhancing personal safety and independent living. Older adults
living alone are more vulnerable to medical emergencies, particularly falls, which remain a leading
cause of physical injury and mortality in this demographic. Traditional monitoring methods require
human involvement and constant presence, making them ineffective for continuous supervision.
Modern IoT technologies offer a promising alternative by enabling devices to sense, process, and
communicate data autonomously. This project explores an IoT-based fall detection and vital health
monitoring system designed to provide constant observation, early detection of abnormalities, and
instantaneous alerts during emergencies.

Figure 1: Fall detection system


The proposed system uses a combination of hardware sensors mounted on a wearable or
home-based unit, along with cloud-connected software that enables remote monitoring. The ESP32
microcontroller acts as the core processor, collecting real-time data from multiple sensors. It
measures acceleration and orientation using an MPU6050 module, heart rate using a pulse sensor,
and environmental conditions using a DHT22 digital sensor. The ESP32 processes these signals
locally, detects fall events, and transmits continuous readings to the Blynk IoT Cloud using Wi-
Fi. Caregivers receive instant notifications on their mobile devices, allowing rapid response in case
of emergencies. The system also triggers local alerts using a buzzer and indicator LEDs to ensure
nearby individuals are notified. Overall, this project combines embedded systems, IoT
connectivity, real-time data processing, and cloud communication to deliver a comprehensive
safety solution for elderly individuals.
2. Project Overview
This IoT-based smart monitoring system is intended to operate continuously, tracking both
physiological and environmental parameters relevant to elderly health and safety. It primarily
measures body acceleration to detect falls, heart rate to monitor vital conditions, and ambient
temperature and humidity to assess comfort and risk factors in the living environment. The ESP32
manages sensor acquisition and applies simple threshold-based algorithms to determine abnormal
events. Once data is processed, the ESP32 sends it through Wi-Fi to the Blynk Cloud using MQTT
or HTTP, depending on configuration.
The Blynk mobile application displays live sensor data, historical trends, and system
notifications. The platform enables caregivers to track the elderly person’s status even when
physically distant. In addition to remote alerts, the system includes a buzzer and LED-based
indicators that activate immediately when a fall or anomaly is detected, providing instant local
feedback. The entire circuit and logic are simulated in Wokwi before physical implementation,
ensuring reliability, validating sensor accuracy, and allowing safe testing of communication
protocols without actual hardware.
The main areas this system supports include elderly home monitoring, healthcare
supervision, rehabilitation environments, and emergency management in assisted living centers.
The combination of hardware sensing, edge processing, cloud connectivity, and remote alerting
creates a highly effective and accessible solution for real-time elderly care.
3. System Protocol Flow (End-to-End Architecture)
The architecture of the system is organized into multiple functional layers, each
contributing to the overall operation of the IoT-based elderly fall detection and health monitoring
solution. At the Sensor Layer, the device continuously gathers raw physiological and
environmental information through various sensors. The accelerometer plays a critical role by
sensing body motion, sudden impacts, and changes in orientation that typically occur during a fall.
The pulse sensor captures the real-time pulse waveform and detects each heartbeat, enabling
accurate heart rate monitoring. The DHT22 sensor measures temperature and humidity in the
surrounding environment, providing essential information about the comfort and safety conditions
of the elderly person’s living space. Additionally, a buzzer is integrated into this layer to provide
immediate local alerts whenever a fall or abnormal event is detected, ensuring instant attention
even before cloud notifications are processed.
After collecting raw data, the signals pass into the Data Acquisition Layer, where the
ESP32 microcontroller reads sensor values using interfaces such as ADC for analog inputs and I²C
for digital communication. The incoming data is then filtered to remove noise and normalized to
maintain consistency, ensuring that the subsequent processing operations receive clean and reliable
inputs. Following this stage, the information enters the Processing Layer, where the ESP32
performs real-time computation directly on the device. Fall detection is achieved by calculating
the acceleration vector magnitude and identifying abnormal spikes or sudden changes. The heart
rate data from the pulse sensor is processed using peak-detection algorithms that analyze periodic
patterns in the waveform. Environmental conditions are evaluated by applying threshold-based
logic to temperature and humidity readings, identifying values that may pose health risks.
Once the ESP32 completes local processing, the system transitions into the Network
Layer, where the microcontroller connects to a Wi-Fi network and communicates with the cloud
using lightweight IoT protocols such as MQTT or HTTP. To maintain low latency and efficient
bandwidth usage, the device interacts with the Blynk platform through its optimized protocol layer.
All processed data is then transmitted to the Cloud/IoT Platform, which serves as the central hub
for visualizing, storing, and analyzing information. The cloud interface enables the creation of
real-time dashboards where users can monitor live sensor readings, while automatic data logging
preserves historical information for trend analysis. Notification triggers are configured in the cloud
so that any detected fall, abnormal heart rate, or dangerous environmental condition immediately
results in an alert being delivered.
Finally, the Application Layer represents the user interaction level, primarily aimed at
caregivers who rely on the system for monitoring elderly individuals remotely. Through the Blynk
mobile application, caregivers receive instant alerts in cases of detected emergencies, enabling
rapid intervention. They can access historical graphs to study long-term patterns such as heart rate
trends, motion behavior, and changes in room conditions. The combination of real-time updates,
historical analysis, and emergency notifications ensures a comprehensive and responsive support
system for elderly health monitoring and fall detection.
4. Hardware Architecture
The hardware architecture is built around the ESP32 DevKit V1 microcontroller, which
serves as the processing core of the system. The ESP32 is chosen due to its high-speed dual-core
processor, built-in Wi-Fi capability, and support for multiple interface protocols such as I²C, SPI,
UART, ADC, and PWM. It consumes relatively low power, making it suitable for portable health
monitoring devices.
Figure 2: ESP32 Dev Board
Table 1: Hardware components

Hardware components

Component Purpose

ESP32 Dev Board Main controller with Wi-Fi

Accelerometer (ADXL345 or
Detects motion and fall
MPU6050)

Pulse Sensor Measures heart rate (BPM)

DHT22 Sensor Measures temperature and humidity

Breadboard + jumper wires Prototype connections

Buzzer / LED (optional) Local fall alert indication

The MPU6050 accelerometer and gyroscope module plays a critical role in fall detection.
Internally, it uses MEMS technology where microscopic suspended masses react to acceleration
forces, causing measurable capacitance changes. The gyroscope uses the Coriolis effect on a
vibrating structure to detect angular velocity. Combined, these measurements allow detection of
sudden body movement, impact during a fall, and orientation changes.

Figure 3: MPU6050 sensor


Table 2: MPU6050 sensor pin connection

MPU6050 Pin ESP32 Pin Description

VCC 3.3V Power supply to MPU6050

GND GND Ground

SCL GPIO 22 I²C Clock line

SDA GPIO 21 I²C Data line

The pulse sensor functions based on photoplethysmography (PPG). It contains an LED that
emits light into the skin and a photodiode that measures variations in light reflected due to changes
in blood volume with each heartbeat. This optical signal is amplified and transmitted as an analog
voltage to the ESP32 ADC pin, which derives the heart rate.
Figure 4: Pulse Sensor Amped (SEN-11574)
Table 3: Pulse sensor pin connection

Pulse Sensor Pin ESP32 Pin Notes

VCC 3.3V Power supply. Do NOT use 5V with ESP32.

GND GND Ground reference.

Analog input to read the pulse waveform. Also use


Signal (S) GPIO 34 (ADC)
GPIO 35, 36, or 39 (ADC pins).

The DHT22 sensor provides digital temperature and humidity information. It incorporates
a capacitive humidity sensing element that changes capacitance with moisture levels and an NTC
thermistor to measure temperature. Its internal ADC converts these readings into digital outputs,
ensuring reliable environmental monitoring.
Figure 5: Temperature sensor (DHT22)
Table 4: Temperature sensor pin connection

DHT22 Pin ESP32 Pin Notes

VCC 3.3V Can also use 5V on ESP32, but 3.3V is safer

Data GPIO 4 Use a 10kΩ pull-up resistor to VCC

NC — Not connected

GND GND —

A small active buzzer is connected to provide immediate sound alerts during emergencies.
Since it contains an internal oscillator, the buzzer only requires a simple high or low signal from
the ESP32. LED indicators serve as additional visual alerts, signaling normal or emergency status.
Power for the entire system can be provided using rechargeable Li-ion or Li-Po batteries, ensuring
portability and continuous operation.
Figure 6: Buzzer
Table 5: Buzzer pin connection

Buzzer Pin ESP32 Pin Notes

GND GND Ground connection

VCC+ 3.3V Power supply

Digital output to turn


Signal GPIO 15
buzzer ON/OFF

5. Software Architecture
The software ecosystem of the system comprises multiple layers, beginning with embedded
firmware programmed using the Arduino IDE. The firmware integrates sensor libraries such as
Wire.h for I²C communication, DHT.h for temperature and humidity measurement, and
specialized libraries for the MPU6050. The code performs initialization of sensors, periodic
sampling, data filtering, fall detection computation, and communication with the Blynk Cloud.
Table 6: Software components

Software and Tools

Software/Platform Usage

Wokwi Simulator Virtual ESP32 + sensors simulation


Arduino IDE Code writing and uploading

Blynk IoT App & Blynk Cloud Monitoring dashboard + notifications

Wi-Fi Network Real-time data communication

The ESP32 establishes a Wi-Fi connection and communicates with the cloud using MQTT
or HTTP. MQTT is particularly suitable because of its lightweight publish–subscribe mechanism,
which minimizes bandwidth use and allows near-real-time updates. The ESP32 publishes sensor
readings to Blynk’s virtual pins, which are then displayed on the mobile application dashboard.
Wokwi Simulator serves as the development environment for testing the complete setup
virtually. It allows simulation of sensor behavior, cloud communication, and buzzer alerts. This
avoids hardware damage during early development and ensures that the system logic is fully
validated.
The Blynk application forms the cloud visual interface. It provides interactive widgets such
as graphs, gauges, and notifications, enabling convenient remote monitoring. When the ESP32
detects a fall or abnormal condition, it triggers a push notification to the caregiver’s mobile device
through Blynk’s notification system.
6. System Working Principle
The working principle of the system begins with continuous data acquisition from the
MPU6050, pulse sensor, and DHT22. The accelerometer outputs raw acceleration values along the
x, y, and z axes. These values are combined to calculate the acceleration vector magnitude. A
sudden spike in this magnitude, followed by a low acceleration period, indicates a fall. Orientation
data from the gyroscope may also be analyzed to detect abnormal body positioning after impact.

Figure 7: Block diagram


For heart rate measurement, the pulse sensor outputs analog signals containing periodic
peaks corresponding to heartbeats. The ESP32 performs peak detection to calculate beats per
minute (BPM) and identify irregularities. Temperature and humidity readings from the DHT22 are
used to monitor environmental safety, as extreme conditions pose risks to elderly individuals.
Processed data is transmitted to the cloud at regular intervals. The Blynk dashboard displays real-
time graphs of acceleration, BPM, temperature, and humidity. In case of a fall, the microcontroller
activates the buzzer and LEDs immediately and sends a fall alert to the Blynk app. This ensures
both local and remote emergency notification paths.
7. Communication Protocols
The system relies on multiple communication protocols operating at different levels. I²C is
used for interfacing with the MPU6050 because it allows efficient digital communication using
only two wires. The pulse sensor relies on analog signal transmission to the microcontroller’s
ADC, while the DHT22 uses a proprietary single-wire digital protocol that transmits calibrated
sensor readings.
Table 7: ESP32 communication

Sensor Protocol How it Works Notes

Two-wire serial interface: SDA


Fast, low-pin usage,
MPU6050 I²C (Inter- (data), SCL (clock). ESP32
suitable for real-
(Accelerometer Integrated requests sensor data; MPU6050
time motion
+ Gyro) Circuit) sends acceleration & gyro
detection.
readings.

Sensor outputs analog voltage


Pulse Sensor Use GPIO 34, 35,
Analog proportional to pulse. ESP32
Amped (SEN- 36, 39. Requires
(ADC input) ADC converts voltage to digital
11574) noise filtering.
value.

Single data line sends calibrated Only one GPIO pin


1-wire
DHT22 temperature & humidity readings needed; includes
digital
(AM2302) in digital format. ESP32 reads built-in checksum
protocol
timing-based signal pulses. for error detection.

No analog or PWM
Buzzer (KY- Digital Simple HIGH/LOW signal from
needed; works as
012, Active) GPIO ESP32 triggers buzzer ON/OFF.
immediate alert.
Wi-Fi acts as the primary transport medium for sending data to the internet. Once
connected to the router, the ESP32 uses MQTT for data transfer to Blynk Cloud. MQTT offers
guaranteed delivery levels through QoS settings, making it highly reliable for critical health data.
In some cases, the HTTP protocol is used for simple request-response communication with the
cloud server.
Table 8: Cloud/ Mobile app communication

Layer Protocol How it Works Notes

Wi-Fi 802.11 ESP32 connects to router or hotspot Required for real-


Network b/g/n to access the internet. time cloud updates.

Lightweight publish/subscribe Low-power, fast,


MQTT protocol for IoT; ESP32 publishes suitable for multiple
sensor data, Blynk subscribes. sensors.
Data
Simpler for one-
Transmission
device systems; less
HTTP / ESP32 sends POST/GET requests to
efficient than
REST API Blynk Cloud server.
MQTT for frequent
updates.

ESP32 communicates with Blynk


Blynk
Blynk App servers; app fetches live data and Provides real-time
Cloud
Interface displays gauges, graphs, and alerts for caregivers.
Protocol
notifications.

Recommended Battery Type – Brief Explanation


Table 9: Power Requirement

Component Voltage Current Consumption (Typical)

ESP32 DevKit V1 3.3–5V 80–250 mA (active Wi-Fi), 10 mA (deep sleep)

MPU6050 3.3V 3.9 mA

Pulse Sensor 3.3V 4–6 mA


DHT22 3.3V 2.5 mA

Active Buzzer 3.3–5V 30–50 mA (beep)

Peak current: ~300–400 mA


Idle current (sleep modes): ~20–30 mA
For reliable portable use, Li-ion or Li-Po rechargeable batteries are recommended because
they offer high energy density, long runtime, and the ability to supply the peak current required by
the ESP32 and sensors. These batteries typically operate around 3.7V and require proper charging
modules like the TP4056. An alternative option is the LiFePO4 battery, which provides a safer and
more stable chemistry with excellent cycle life, though with slightly lower energy density. For
uninterrupted operation, especially in safety-critical applications like elderly monitoring, adding a
backup option such as a supercapacitor or a small secondary Li-ion cell ensures the system
continues functioning during brief power cuts or battery replacement. This combined approach
guarantees stable long-term performance and reliability of the monitoring system.
8. Results and Observations
In Wokwi simulation, the system successfully captured acceleration changes, pulse
waveforms, and environmental readings, demonstrating proper sensor integration and
communication with the ESP32. The acceleration magnitude displayed noticeable spikes when
simulated falls were introduced, confirming the effectiveness of the threshold-based fall detection
approach.

Figure 8: Circuit Diagram WOKWI simulation


8.1 Cloud Visualization and Alerts

The integration with the Blynk IoT platform enabled real-time visualization of:

 Body temperature (Virtual Pin V0)


 Acceleration magnitude (Virtual Pin V1)
 Alert indicators for fall and abnormal conditions (Virtual Pins V2)

The cloud-based dashboard allows caregivers or family members to monitor users remotely and
receive immediate alerts, improving response time during emergencies.

Figure 9: Blynk Dashboard


The Blynk Cloud dashboard displayed real-time temperature and acceleration.
Notifications were triggered instantly during simulated fall conditions. Local alerts in the
simulation activated LED indicators and buzzer outputs, replicating real-world emergency
behavior. The stable Wi-Fi communication and efficient MQTT performance validated the
suitability of the system for continuous monitoring.

Figure 10: Normal condition


8.2 Temperature-Based Health Monitoring

The system also monitored body temperature using the DHT22 sensor. Abnormal
conditions were flagged when the temperature exceeded 38 °C or dropped below 35 °C. These
thresholds correspond to potential fever or hypothermia conditions.

When abnormal temperature values were detected:

 The system triggered the same alert mechanism as fall detection.


 Temperature readings were continuously updated on the Blynk application.

This dual-parameter monitoring enhances system reliability by combining motion-based and


physiological indicators, making it suitable for elderly or patient monitoring applications.

Figure 11: Abnormal temperature with alert indication for fever

8.3 Fall Detection Performance

were detected by comparing the computed total acceleration magnitude with a predefined
threshold of 25 m/s². During normal activities such as standing or walking, the acceleration
magnitude remained close to the gravitational constant (~9.81 m/s²). However, during sudden
impacts or simulated falls, the acceleration magnitude exceeded the threshold, triggering a fall
alert.

When a fall condition was detected:

 The red LED and buzzer were activated locally.


 A fall alert was displayed on the Blynk dashboard.
 Normal status was indicated using a green LED when no abnormal condition was present.

This threshold-based approach proved effective for identifying abrupt high-impact movements
associated with falls while maintaining low computational complexity suitable for real-time
embedded processing.
Figure 12: Abnormal acceleration with alert indication for fall detection
9. Discussion

The experimental results demonstrate that the proposed system can reliably detect falls and
abnormal physiological conditions in real time. The use of on-device processing reduces latency
and dependence on continuous cloud computation. Additionally, the system’s low hardware
complexity and power consumption make it suitable for wearable and home-based healthcare
monitoring.

However, the system relies on a fixed acceleration threshold, which may lead to false positives
during high-intensity activities. Future enhancements could include:

 Adaptive or machine-learning-based fall classification


 Integration of heart rate or EMG sensors
 Battery optimization for long-term deployment

Overall, the system provides a cost-effective, real-time, and scalable solution for fall detection
and health monitoring using IoT technology.

10. Conclusion

This work presented the design and implementation of an IoT-based fall detection and
health monitoring system using an ESP32 microcontroller, MPU6050 inertial sensor, DHT22
temperature sensor, and the Blynk IoT platform. The system continuously monitored body
movement and temperature in real time and successfully detected fall events using acceleration
magnitude thresholding.

Experimental results demonstrated that normal activities produced acceleration values


close to gravitational acceleration, while sudden impacts during simulated falls exceeded the
predefined threshold, reliably triggering alerts. The integration of temperature monitoring further
enhanced the system by identifying abnormal physiological conditions such as fever or
hypothermia. Local alerts using LEDs and a buzzer, combined with remote notifications through
the Blynk mobile application, ensured timely awareness and response.
The proposed system is low-cost, easy to deploy, and suitable for real-time operation with
minimal computational overhead. Its on-device processing capability reduces latency and makes
it practical for wearable and home-based healthcare applications, particularly for elderly and
patient monitoring. Although the threshold-based approach provides fast and efficient fall
detection, it may produce false alarms during high-intensity movements. Future improvements
may include adaptive thresholds, machine-learning-based classification, and additional
physiological sensors to enhance accuracy and robustness. Overall, the developed system
demonstrates the effectiveness of IoT technology in improving safety and remote health
monitoring.

You might also like