Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
IoT Based Patient Health Monitoring System Using Blynk App
Just Do Electronics
November 13, 2021
Circuit Diagram :-
Code :-
//Prateek //wwww.prateeks.in //https://www.youtube.com/c/JustDoElectronics/videos #include
#include "MAX30100_PulseOximeter.h" #define BLYNK_PRINT Serial #include
#include
#include
#include
#include
#include "DHT.h" #define DHTTYPE DHT11 #define REPORTING_PERIOD_MS 1000 #define DS18B20 5 char auth[] = "G9nCH4W7AWUwviplzwpGLleH0fOdXF9_"; char ssid[] = "justdoelectronics"; char pass[] = "123456789"; PulseOximeter pox; uint8_t DHTPin = 18; DHT dht(DHTPin, DHTTYPE); float Temperature; float Humidity; float bodytemperature; float BPM, SpO2; uint32_t tsLastReport = 0; OneWire oneWire(DS18B20); DallasTemperature sensors(&oneWire); void onBeatDetected() { Serial.println("Beat Detected!"); } void setup() { Serial.begin(115200); pinMode(19, OUTPUT); pinMode(DHTPin, INPUT); dht.begin(); Blynk.begin(auth, ssid, pass); Serial.print("Initializing Pulse Oximeter.."); if (!pox.begin()) { Serial.println("FAILED"); for (;;); } else { Serial.println("SUCCESS"); pox.setOnBeatDetectedCallback(onBeatDetected); } pox.setIRLedCurrent(MAX30100_LED_CURR_7_6MA); } void loop() { pox.update(); Blynk.run(); Temperature = dht.readTemperature(); // Gets the values of the temperature Humidity = dht.readHumidity(); // Gets the values of the humidity BPM = pox.getHeartRate(); SpO2 = pox.getSpO2(); bodytemperature = sensors.getTempCByIndex(0); if (millis() - tsLastReport > REPORTING_PERIOD_MS) { Serial.print("Heart rate:"); Serial.print(BPM); Serial.print(" bpm / SpO2:"); Serial.print(SpO2); Serial.println(" %"); Serial.print("Room Temperature: "); Serial.print(Temperature); Serial.println("°C"); Serial.print("Room Humidity: "); Serial.print(Humidity); Serial.println("%"); Serial.print("Body Temperature: "); Serial.print(bodytemperature); Serial.println("°C"); Blynk.virtualWrite(V3, Temperature); Blynk.virtualWrite(V4, Humidity); Blynk.virtualWrite(V5, BPM); Blynk.virtualWrite(V6, SpO2); Blynk.virtualWrite(V7, bodytemperature); tsLastReport = millis(); } }
App Installation :-
Just Scan The Barcode In Blynk App
GitHub :-
Click it
Video :-
2 Comments
Unknown
11 April 2022 at 00:10
this website upload wrong code . very bad response
Reply
Delete
Replies
Reply
Anonymous
21 June 2022 at 06:18
I'm not getting data from the pulse oximeter
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
Ultrasonic Sensor as a Counter with Arduino
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
MLX90614 Non-Contact Infrared Thermometer With Arduino
Measure CO2 Level in Air Using Arduino
Esp32 Cam Based Face Unlock
ESP32 Led Blink With Push Button
Smart Street Light Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
2 Comments
this website upload wrong code . very bad response
ReplyDeleteI'm not getting data from the pulse oximeter
ReplyDelete