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
Arduino Based ECG Display Using Pulse Sensor
Just Do Electronics
May 07, 2020
Arduino Nano Based ECG Display Using Pulse Sensor
Circuit Diagram :-
Pulse Sensor
Oled Display
Code :-
//Prateek //www.prateeks.in #include
#define OLED_Address 0x3C Adafruit_SSD1306 oled(128, 64); int a=0; int lasta=0; int lastb=0; int LastTime=0; int ThisTime; bool BPMTiming=false; bool BeatComplete=false; int BPM=0; #define UpperThreshold 560 #define LowerThreshold 530 void setup() { oled.begin(SSD1306_SWITCHCAPVCC, OLED_Address); oled.clearDisplay(); oled.setTextSize(2); } void loop() { if(a>127) { oled.clearDisplay(); a=0; lasta=a; } ThisTime=millis(); int value=analogRead(0); oled.setTextColor(WHITE); int b=60-(value/16); oled.writeLine(lasta,lastb,a,b,WHITE); lastb=b; lasta=a; if(value>UpperThreshold) { if(BeatComplete) { BPM=ThisTime-LastTime; BPM=int(60/(float(BPM)/1000)); BPMTiming=false; BeatComplete=false; tone(8,1000,250); } if(BPMTiming==false) { LastTime=millis(); BPMTiming=true; } } if((value
Project Photo
0 Comments
Newer
Older
ESP32 Led Blink With Push Button
ESP32 Interfacing With LDR Sensor
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
How To Make RFID & Keypad Based Door Lock
Door Lock Security System Using Arduino
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
ESP32 Interfacing With Ultrasonic Sensor
IoT based Smart Irrigation System using Soil Moisture Sensor
Vehicle Accident Alert System Using Accelerometer GPS And GSM
Smoke Detector And Fire Alarm System Using Arduino And Gsm
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