Protocentral / AFE4490_Oximeter

This pulse oximetry shield from ProtoCentral uses the AFE4490 IC to enable your Arduino to measure heart rate as well as SpO2 values.
https://www.protocentral.com/biomedical/996-afe4490-pulse-oximeter-shield-kit-for-arduino-642078949425.html
Other
46 stars 27 forks source link

Pulse Waveform #10

Open bpk323 opened 4 years ago

bpk323 commented 4 years ago

Hello,

I am using this shield as part of a larger device and I am relatively inexperienced with Arduino. I have somewhat of an understanding of the code, however, I was wondering if you could provide some guidance for the extraction of the raw pulse waveforms? I am trying to graph the waveform along with waveforms from two other probes (one ear PPG and one ECG). Any help is much appreciated! Thanks!

joicetm commented 4 years ago

Hello, please have look at line 221,

      IRtemp = (unsigned long) (IRtemp<<10);
      seegtemp = (signed long) (IRtemp);
      seegtemp = (signed long) (seegtemp>>10);  

      REDtemp = (unsigned long) (REDtemp<<10);
      seegtemp2 = (signed long) (REDtemp);
      seegtemp2 = (signed long) (seegtemp2>>10);

here we are storing raw values of IR and RED to these variables.

bpk323 commented 4 years ago

Great, thank you!