EMBEDDED SYSTEMS · IoT · HEALTHCARE

Patient
Monitoring
System

Real-time health parameter tracking using Arduino + ESP8266, with cloud connectivity via Blynk IoT and biometric authentication.

Arduino UNONodeMCU ESP8266DHT11 KY-039AD8232 ECGR307 Fingerprint Blynk IoTC++ / Arduino IDEOpenWeatherMap API
SCROLL

Hardware & Sensors

Six core components work in tandem to measure, process, and communicate patient vitals in real time.

🌡️
DHT11 Temperature Sensor
Reads body temperature. Normal range: 36.0°C – 37.5°C. Triggers alert on fever or hypothermia.
Pin D2 · dht.readTemperature()
❤️
KY-039 Pulse Sensor
Optical heart rate via IR LED and photodiode. Raw 0–1023 value mapped to 60–100 BPM.
Analog A1 · map(val, 0, 1023, 60, 100)
📈
AD8232 ECG Sensor
Cardiac electrical signals mapped to systolic (90–120) and diastolic (60–80) mmHg ranges.
Analog A0 · map(val, 0, 1023, 90, 120)
🔐
R307 Fingerprint Sensor
Biometric patient authentication. Supports enrollment, matching and database management.
D6 RX / D7 TX · SoftwareSerial · 57600 baud
🟢
Green LED
Glows solid when all vitals are within normal ranges — immediate visual confirmation.
Pin D3 · digitalWrite(HIGH) on normal
🔴
Red LED + Buzzer
Activates when any reading is out of range. Buzzer beeps at 500ms ON / 500ms OFF cycle.
D4 (LED) · D5 (Buzzer)

Architecture & Data Flow

Sensor data flows from Arduino to ESP8266 over SoftwareSerial, then up to Blynk cloud — with API calls for AQI and pharmacy lookup.

Sensors
🔬
Sensors
DHT11 · KY-039
AD8232
Arduino UNO
🖥️
Process
map() · isnan()
LED/Buzzer
9600 baud
📡
Serial TX
36.5,78,112/74
ESP8266
📶
NodeMCU
WiFi · Parse
Validate CSV
Cloud
☁️
Blynk IoT
V0–V8 VPins
Dashboard+Chat

Live Vitals Simulator

Simulate different patient conditions — LED states, ECG trace, and serial output all update in real time.

Health Monitor Dashboard
loop() active · 1s interval
TEMPERATURE
36.5
°C · DHT11
PULSE RATE
78
BPM · KY-039
SYSTOLIC BP
112
mmHg · AD8232
DIASTOLIC BP
74
mmHg · AD8232
All vitals within normal range
Serial → 36.50,78,112/74
GREEN LED
RED LED
▶ BUZZER
Serial Monitor — COM3 · 9600 baud
✅ Fingerprint sensor detected!
Setup Complete. NodeMCU Ready!
Commands: 1-Enroll 2-Start 3-Stop 4-Clear

Mobile Display Readings

The ESP8266 pushes live data to the Blynk app. Patients and caregivers can monitor vitals, check local air quality, and locate the nearest pharmacy — all from their phone.

Screen 1 — Vitals Dashboard
Real-time Health Tiles
Shows Temperature, Pulse, Systolic and Diastolic BP as live Blynk widgets. Updates every 5 seconds via virtual pins V0–V2. Health tip cycles from V7.
Screen 2 — Weather + AQI
Environmental Conditions
Weather fetched via OpenWeatherMap. Air Quality Index from waqi.info API every 60 seconds. AQI score displayed on Blynk V4 with colour-coded severity band.
Screen 3 — Pharmacy Locator
Nearby Medical Shops
Uses OpenStreetMap Nominatim API to find pharmacies near coordinates 11.04°N, 77.00°E. Nearest 5 results sent to Blynk V5 every 2 minutes.
Patient Monitor
WiFi · V2
VITALS · LIVE
TEMP
36.5
°C · DHT11
PULSE
78
BPM · KY039
SYSTOLIC
112
mmHg
DIASTOLIC
74
mmHg
STATUS
All vitals normal
HEALTH TIP · V7
Stay hydrated! Drink at least 8 glasses of water daily.
Coimbatore, TN
V4 · waqi
32°C
Partly Cloudy · Humid
78%
HUMIDITY
14 km/h
WIND
1011
hPa
34°C
FEELS
AIR QUALITY INDEX · waqi.info
72
Moderate — Sensitive groups take care
Good 0–50 Mod 51–100 Poor 101+
💊
Nearby Pharmacies
11.04°N 77.00°E
📍
OpenStreetMap · Nominatim · V5
NEARBY RESULTS
Sree Pharmacy
0.3 km
OPEN
Apollo Pharmacy
0.8 km
OPEN
MedPlus Health
1.2 km
CLOSED
Vijaya Medical
1.7 km
OPEN

Normal Health Ranges

The firmware checks these thresholds on every loop() iteration. Any deviation triggers the red LED and buzzer alert.

🌡️
Temperature
DHT11 · Pin D2
34°CNormal40°C
36.0 – 37.5 °C
❤️
Pulse Rate
KY-039 · Analog A1
40 BPMNormal160 BPM
60 – 100 BPM
📈
Systolic BP
AD8232 · Analog A0
80Normal160 mmHg
90 – 120 mmHg
📉
Diastolic BP
AD8232 · Analog A0
50Normal110 mmHg
60 – 80 mmHg

Blynk Virtual Pin Map

The ESP8266 writes sensor data to Blynk virtual pins every 5 seconds, with periodic API fetches for AQI and pharmacy data.

V-PINDataTypeIntervalSource
V0Temperaturefloat5 secDHT11
V1Pulse Rateint5 secKY-039
V2Blood PressureString5 secAD8232
V4AQI Indexint60 secwaqi.info API
V5Nearby Medical ShopsString120 secOpenStreetMap Nominatim
V6Medication ReminderStringon-demandESP8266
V7Health TipsString5 minRandom array
V8ChatbotString ↔on-messageBLYNK_WRITE handler
CHATBOT KEYWORDS · V8
"hello"Greeting + help message
"tips"Random health tip
"medical shops"Fetch nearby pharmacies
TEMPLATE CREDENTIALS
Template ID: *************
App: Patient Monitoring System
WiFi: *************
Meet the Team
Dept. of Electronics & Communication Engineering
Avinashilingam Institute for Home Science and Higher Education for Women
PG
Priyanka Gandhi A
22UEL031
PS
Puja S
22UEL032
PV
Pavithra S
22UEL025
👩‍🏫
MENTOR
R. Chitra
Dept. of ECE · Avinashilingam Institute