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 Interfacing With LDR Sensor
Smart Street Light Using Arduino
ESP32 Led Blink With Push Button
EM-18 Interface With Arduino Nano
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Ultrasonic Sensor as a Counter with Arduino
Measure CO2 Level in Air Using Arduino
IoT Based Patient Health Monitoring System Using Blynk App
Em-18 Interfacing With Esp32
Nodemcu Interfacing With Em-18
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