Skip to content

Using 2 Pulse Sensors: 1 Pulse Sensor has a bigger reading than the other #71

@Camerutttt

Description

@Camerutttt

Hi, 1 of my Pulse Sensor outputs a higher reading as compared to the other pulse sensor. Why is that so? Here is the graph from the Serial Plotter: https://imgur.com/UXpDaQv
I am currently using the 5V pin and then connected to a breadboard column. Both pulse sensor is powered from that column. This applies to the ground as well. Should I use the digital pins instead to power the pulse sensor like how it is done in the example?
Here is the code during the measurement:

while ((millis() - measureTime) < 10000)
    {

      FastLED.show();
      if ((millis() - ledMeasureTime) > 50)
      {
        cylon();
        ledMeasureTime = millis();
      }

      currentSignal1 = analogRead(sensor1);
      Serial.print(currentSignal1);
      Serial.print(F(" , "));
      if ((currentSignal1 > 550) && (prevSignal1 < 550))
      {
        pulseTime1[pulseTime1Size] = millis();
        pulseTime1Size++;
      }

      currentSignal2 = analogRead(sensor2);
      Serial.println(currentSignal2);
      if ((currentSignal2 > 530) && (prevSignal2 < 530))
      {
        pulseTime2[pulseTime2Size] = millis();
        pulseTime2Size++;
      }

      prevSignal1 = currentSignal1;
      prevSignal2 = currentSignal2;
      //Serial.println("test");
      delay(5);
    }

Let me know if you want me to put the entire code.
x-post from: https://www.reddit.com/r/arduino/comments/8dk9q5/using_2_pulse_sensors_1_pulse_sensor_has_a_bigger/ and https://arduino.stackexchange.com/questions/51997/using-2-pulse-sensors-1-pulse-sensor-has-a-bigger-reading-than-the-other

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions