Bpm sensor is not working

bpm sensor is not working. Just I want to get data when I put my finger on it it print it to the serial monitor. But after some minutes it sens 0. BPM sensor is hw-827

You started a topic in the Uncategorised category of the forum

Your topic has been moved to a relevant category. Please be careful in future when deciding where to start new topics

Much more detail of your project is required

What hardware are you using ?
What sketch are you using ?

Hello.
Which category should I select?
I am using this code. `#include <PulseSensorPlayground.h> // Includes the PulseSensorPlayground Library.

// Variables
const int PulseWire = 0; // PulseSensor PURPLE WIRE connected to ANALOG PIN 0
const int LED = LED_BUILTIN; // The on-board Arduino LED, close to PIN 13.
int Threshold = 550; // Determine which Signal to "count as a beat" and which to ignore.
// Use the "Gettting Started Project" to fine-tune Threshold Value beyond default setting.
// Otherwise leave the default "550" value.

PulseSensorPlayground pulseSensor; // Creates an instance of the PulseSensorPlayground object called "pulseSensor"

void setup() {

Serial.begin(9600); // For Serial Monitor

// Configure the PulseSensor object, by assigning our variables to it.
pulseSensor.analogInput(PulseWire);
pulseSensor.blinkOnPulse(LED); //auto-magically blink Arduino's LED with heartbeat.
pulseSensor.setThreshold(Threshold);

// Double-check the "pulseSensor" object was created and "began" seeing a signal.
if (pulseSensor.begin()) {
Serial.println("We created a pulseSensor Object !"); //This prints one time at Arduino power-up, or on Arduino reset.
}
}

void loop() {

      // Constantly test to see if "a beat happened".

int myBPM = pulseSensor.getBeatsPerMinute(); // Calls function on our pulseSensor object that returns BPM as an "int".
// "myBPM" hold this BPM value now.

Serial.print("BPM: "); // Print phrase "BPM: "
Serial.println(myBPM); // Print the value inside of myBPM.

delay(200); // considered best practice in a simple sketch.

}

` If I have mistakes on code if you tell me I will glad. Thank you for your reply.

Your topic has already been moved to the Project Guidance category

There are many sensors like this on the market that are fake and don't work.
Here on the forum there are some posts from users who had problems with this sensor.

so should I buy new one?
here is the picture.


is this fake?
Thank you for your reply.

Please post a link to the sensor product page. The photo is useless.

In the meantime, have a look at the "How to get the best out of this forum" and post the information that people need to understand the problem.

i do not have link because I bought it from robotic store

guys I need to tell something to you. This module some times give some rate but after that it again rate 0 but my finger still on it

Yes, as so far, you have provided very little useful information.

Please study and follow the directions in the "How to get the best out of this forum" post.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.