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

Getting very less SPO2 values #4

Open
prasanpro opened this issue Jun 19, 2017 · 1 comment
Open

Getting very less SPO2 values #4

prasanpro opened this issue Jun 19, 2017 · 1 comment

Comments

@prasanpro
Copy link

prasanpro commented Jun 19, 2017

Dear Protocentral,

I bought the spo2 shield recently and followed the instructions given in this git. Processing graph output values always shows values in range of 60 to 70. A normal healthy person like I should get values in 94+ range. I came across this section after a brief look at processing code:

` AvgYdata[arrayIndex] = (float)receivedVoltage_RED;
AvgZdata[arrayIndex] = (float)receivedVoltage_IR;
value1 = (float)( AvgYdata[arrayIndex] - averageValue(AvgYdata));
value2 = (float)( AvgZdata[arrayIndex] - averageValue(AvgZdata));
ydata[arrayIndex] = value1;
zdata[arrayIndex] = value2;

    float RedDC = (float) averageValue(AvgYdata);
    float IrDC = (float) averageValue(AvgZdata);

    arrayIndex++;
    if (arrayIndex == pSize)
    {  
      arrayIndex = 0;
      time = 0;
      RedAC = s.SPO2_Value(ydata);
      IrAC = s.SPO2_Value(zdata);
      float value = (RedAC/abs(RedDC))/(IrAC/abs(IrDC));

      /********  Emprical Formalae  *********/
      //float SpO2 = 10.0002*(value)-52.887*(value) + 26.817*(value) + 98.293;
      //  float SpO2 =((0.81-0.18*(value))/(0.73+0.11*(value)));
      
      float SpO2=110-25*(value);


      SpO2 = (int)(SpO2 * 100);
      SpO2 = SpO2/100;
      oxygenSaturation.setText(SpO2+"");`
  1. Is there any issue in the code or the hardware? Please rectify this issue.
  2. Further, the values are not consistent. Sometimes there is big difference between two consecutivve values. Is there any special care needed for finger position.
@adelalfusail
Copy link

do you fix this problem or not

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

2 participants