I can’t get my Pulse Oximeter to correctly detect the probe attached and detached conditions. It seems to always detect a pulse even with no finger. The three values returned are all over the range.
pulseOximeter_Heartbeat:67==8==67
pulseOximeter_Heartbeat:67==8==67
pulseOximeter_Heartbeat:56==8==94
pulseOximeter_Heartbeat:65==8==95
pulseOximeter_Heartbeat:60==5==94
pulseOximeter_Heartbeat:65==8==95
When a finger is in, it would sometimes show these same values and sometimes it thinks that there is no finger. It actually thinks that there is no finger when there is a finger more than when there is no finger.
I also have similar handlers for the probe connected and disconnected events. But they are rarely invoked. Probe connected happens when the Spider powers on and then almost never again.
Do I have a bad sensor?
Here’s the code, am I missing something?
pulseOximeter.Heartbeat += new PulseOximeter.HeartbeatHandler(pulseOximeter_Heartbeat);
void pulseOximeter_Heartbeat(PulseOximeter sender, PulseOximeter.Reading reading)
{
string s;
if (!pulseOximeter.IsProbeAttached)
{
s = "pulseOximeter_HeartbeatLast:" + pulseOximeter.LastReading.PulseRate.ToString() + "==" + pulseOximeter.LastReading.SignalStrength.ToString() + "==" + pulseOximeter.LastReading.SPO2.ToString();
}
else
{
s = "pulseOximeter_Heartbeat:" + reading.PulseRate.ToString() + "==" + reading.SignalStrength.ToString() + "==" + reading.SPO2.ToString();
}
Debug.Print(s);
}