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 Smart Pulse Oximeter With NodeMCU & MAX30100 Sensor
Just Do Electronics
January 16, 2021
Circuit Diagram :-
Code :-
//Prateek //www.prateeks.in #include
#include
#include
#include "MAX30100_PulseOximeter.h" #include
#include
#include
char auth[] = "6497f4ca052e43e3817c1e7157926730"; // You should get Auth Token in the Blynk App. char ssid[] = "JustDo"; // Your WiFi credentials. char pass[] = "par12345"; #define REPORTING_PERIOD_MS 3000 SimpleTimer timer; PulseOximeter pox; uint32_t tsLastReport = 0; void onBeatDetected() { ; } void setup() { Serial.begin(115200); Blynk.begin(auth, ssid, pass); Serial.print("Initializing pulse oximeter.."); if (!pox.begin()) { Serial.println("FAILED"); for (;;); } else { Serial.println("SUCCESS"); digitalWrite(1, HIGH); } pox.setIRLedCurrent(MAX30100_LED_CURR_24MA); // Register a callback for the beat detection pox.setOnBeatDetectedCallback(onBeatDetected); timer.setInterval(3000L, getSendData); } void loop() { timer.run(); // Initiates SimpleTimer Blynk.run(); // Make sure to call update as fast as possible pox.update(); if (millis() - tsLastReport > REPORTING_PERIOD_MS) { // to android cell phone application Serial.print("BPM: "); Serial.print(pox.getHeartRate()); //blue.println("\n"); Serial.print(" SpO2: "); Serial.print(pox.getSpO2()); Serial.print("%"); Serial.println("\n"); Blynk.virtualWrite(V2, pox.getHeartRate() ); Blynk.virtualWrite(V3, pox.getSpO2()); tsLastReport = millis(); } } void getSendData() { }
Code With 16x2 Lcd :-
//Prateek //www.prateeks.in #include
#include
#include
#include "MAX30100_PulseOximeter.h" #include
#include
#include
#include
LiquidCrystal_I2C lcd(0x27, 16, 2); char auth[] = "6497f4ca052e43e3817c1e7157926730"; // You should get Auth Token in the Blynk App. char ssid[] = "JustDo"; // Your WiFi credentials. char pass[] = "par12345"; #define REPORTING_PERIOD_MS 3000 SimpleTimer timer; PulseOximeter pox; uint32_t tsLastReport = 0; void onBeatDetected() { ; } void setup() { Serial.begin(9600); Wire.begin(D2, D1); lcd.begin(); lcd.backlight(); lcd.setCursor(3, 0); lcd.print("Welcome To"); lcd.setCursor(0, 1); lcd.print("JustDoElectronic"); delay(3000); lcd.clear(); lcd.setCursor(6, 0); lcd.print("IoT"); lcd.setCursor(1, 1); lcd.print("Pulse Oximeter"); delay(3000); lcd.clear(); Serial.begin(115200); Blynk.begin(auth, ssid, pass); Serial.print("Initializing pulse oximeter.."); // Initialize the PulseOximeter instance // Failures are generally due to an improper I2C wiring, missing power supply // or wrong target chip if (!pox.begin()) { Serial.println("FAILED"); for (;;); } else { Serial.println("SUCCESS"); digitalWrite(1, HIGH); } pox.setIRLedCurrent(MAX30100_LED_CURR_24MA); // Register a callback for the beat detection pox.setOnBeatDetectedCallback(onBeatDetected); timer.setInterval(1000L, getSendData); } void loop() { timer.run(); // Initiates SimpleTimer Blynk.run(); // Make sure to call update as fast as possible pox.update(); if (millis() - tsLastReport > REPORTING_PERIOD_MS) { // to computer serial monitor Serial.print("BPM: "); Serial.print(pox.getHeartRate()); //blue.println("\n"); Serial.print(" SpO2: "); Serial.print(pox.getSpO2()); Serial.print("%"); Serial.println("\n"); lcd.clear(); lcd.setCursor(0, 0); lcd.print("BPM: "); lcd.setCursor(10, 0); lcd.print(pox.getHeartRate()); lcd.setCursor(0, 1); lcd.print("SpO2:"); lcd.setCursor(10, 1); lcd.print(pox.getSpO2()); lcd.setCursor(14, 1); lcd.print("%"); Blynk.virtualWrite(V2, pox.getHeartRate() ); Blynk.virtualWrite(V3, pox.getSpO2()); tsLastReport = millis(); } } void getSendData() { ; }
Video :-
0 Comments
Newer
Older
Smart Trolley Using RFID And Arduino Nano
Arduino Based Countdown Timer
Arduino Gps And Gsm Based location Tracking System
Make Fingerprint Door Lock | Arduino Project
NRF Based Servo Motor Control
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Home Automation using GSM Module
GSM Based motor control
Arduino Based Ventilator
Ultrasonic Sensor as a Counter with 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
0 Comments