Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My pulse sensor is giving too high value(Around 1840) #94

Open
sreenu926 opened this issue Aug 17, 2021 · 0 comments
Open

My pulse sensor is giving too high value(Around 1840) #94

sreenu926 opened this issue Aug 17, 2021 · 0 comments

Comments

@sreenu926
Copy link

My pulse sensor is giving too high value(Around 1840). Please help me.

image

This is the sensor I'm using (Bought it from ROBU.IN):

Pulse Sensor sent by ROBU in
Pulse Sensor sent by ROBU in

I'm using ESP32 DEVKIT Board.

This is the program I'm using:

int PulseSensorPurplePin = 34; // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0
int LED13 = 2; // The on-board Arduion LED

int Signal; // holds the incoming raw data. Signal value can range from 0-1024
int Threshold = 1950; // Determine which Signal to "count as a beat", and which to ingore.

// The SetUp Function:
void setup() {
pinMode(LED13,OUTPUT); // pin that will blink to your heartbeat!
Serial.begin(115200); // Set's up Serial Communication at certain speed.

}

// The Main Loop Function
void loop() {

Signal = analogRead(PulseSensorPurplePin); // Read the PulseSensor's value.
// Assign this value to the "Signal" variable.

Serial.println(Signal); // Send the Signal value to Serial Plotter.

if(Signal > Threshold){ // If the signal is above "550", then "turn-on" Arduino's on-Board LED.
digitalWrite(LED13,HIGH);
} else {
digitalWrite(LED13,LOW); // Else, the sigal must be below "550", so "turn-off" this LED.
}

delay(10);

}

If my sensor is not legit, please suggest me a good pulse sensor to buy.

Have a blessed day,
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant