🌡️ IoT Pressure Monitor
MAX30100 + ESP8266 + LED Alert System
📊 Live Dashboard: Pressure 20.27 | Heart Rate 2027 bpm | SpO2 94.0%
📋 Overview
IoT-based Pressure Monitoring System using MAX30100 sensor with ESP8266. Real-time monitoring with visual LED alerts and web interface.
✨ Features
🟢 Smart LED Indicators
Green LED: Glows during normal monitoring
Red LED: Blinks when pressure high
Both OFF: Monitoring stopped
🌐 IoT Features
✓ Web dashboard
✓ Remote monitoring
✓ Adjustable threshold
✓ Start/Stop control
📊 Live Data
✓ Pressure: 20.27 units
✓ Heart Rate: 2027 bpm
✓ SpO2: 94.0%
✓ Threshold: 25.00
🔄 Process Flow
1
System StartsMonitoring begins automatically
2
Normal Pressure🟢 Green LED glows continuously
3
High Pressure🔴 Red LED blinks
🟢 Green LED off
4
Pressure Normal🟢 Green LED glows again
5
Stop Monitoring⚫ Both LEDs OFF
🛠️ Components
- 🔌 ESP8266 (NodeMCU)
- 💓 MAX30100 Sensor
- 🔴 Red LED + 220Ω resistor
- 🟢 Green LED + 220Ω resistor
- 🔗 Jumper wires & Breadboard
- 🔋 USB Power Supply
🔌 Wiring
| MAX30100 | ESP8266 | LEDs |
|---|---|---|
| VCC | 3.3V | |
| GND | GND | |
| SCL | D1 (GPIO5) | |
| SDA | D2 (GPIO4) | |
| Red LED → D5 (GPIO14) + 220Ω | to GND | |
| Green LED → D6 (GPIO12) + 220Ω | to GND | |
💡 LED Behavior
🟢 Green LED
Normal: Continuous glow = Active monitoring with safe pressure
High Pressure: OFF
Stopped: OFF
🔴 Red LED
Normal: OFF
High Pressure: Blinking alert
Stopped: OFF
💻 Core Code
// LED Control Logic
if (isMonitoring) {
if (currentPressure > threshold) {
// High pressure - Red LED blinks
digitalWrite(RED_LED, !digitalRead(RED_LED));
digitalWrite(GREEN_LED, LOW);
Serial.println("ALERT!");
} else {
// Normal - Green LED glows
digitalWrite(RED_LED, LOW);
digitalWrite(GREEN_LED, HIGH);
}
} else {
// Stopped - Both LEDs off
digitalWrite(RED_LED, LOW);
digitalWrite(GREEN_LED, LOW);
}
🎯 Benefits
🚨 Instant Visual Alerts
Red LED blinking gives immediate warning without looking at screen
🟢 Live Status
Green LED confirms system is actively monitoring
🌍 Remote Access
Monitor from any device on same network
Comments
Post a Comment