Wpis z mikrobloga

@Mr_Przyjemny: @fiddle: tak jak mierzenie heart rate samo w sobie działa idealnie, to po użyciu algorytmu do detekcji saturacji tlenem, wyniki są z kosmosu. HR skacze 50-250 a saturacja tlenenem od 50 do -999 xD np. Przy hr 214 saturacja wynosi 67, albo 150/25 itd. RAW data z diody IR i RED po przyłożeniu palca jest na poziomie 240-242k więc te odczyty są okej. Wyniki HR I sp2o w ogóle
@Aqvis: czytałem o tym, ale jak się zagłębiłem, to kompletnie tego w bibliotece nie mogłem znaleźć aby zamienić, chyba że wystarczy w setupie jakieś 2 linijki kodu napisać
@Aqvis: void sp2oMeasurement()
{
bufferLength = 100; // buffer length of 100 stores 4 seconds of samples running at 25sps
// read the first 100 samples, and determine the signal range
for (byte i = 0; i < bufferLength; i++)
{
redBuffer[i] = PulseAndSP2OSensor.getRed();
irBuffer[i] = PulseAndSP2OSensor.getIR();
PulseAndSP2OSensor.nextSample(); // We're finished with this sample so move to next sample
}
// calculate heart rate and SpO2 after first 100 samples (first