Protocentral / Pulse

https://www.protocentral.com/sensors/1030-protocentral-pulse-oximeter-heart-rate-sensor-based-on-max30100.html
Other
22 stars 16 forks source link

Question Regarding Arduino #5

Open mayoralink opened 7 years ago

mayoralink commented 7 years ago

When opening the Comms channel on Arduino it gives out a lot of values that seem to be incomprehensable. Is this behaviour intended, or is there a way to plot the obtained data straight from the arduino GUI?

VenkateshBhat commented 7 years ago

Its intended!, the data is in HEX packet format. Its not possible to plot on Arduino directly but you can log the data and plot it on EXCEL.

anscool95 commented 7 years ago

Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Uno"

In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0:

C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:8:19: warning: character constant too long for its type [enabled by default]

 <meta charset='utf-8'>

               ^

C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:22:5: error: stray '\302' in program

 <title>Pulse/Protocentral_MAX30100.h at master · Protocentral/Pulse</title>

 ^

C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:22:5: error: stray '\267' in program

In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0:

C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:110:8: warning: missing terminating ' character [enabled by default]

^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:110:3: error: missing terminating ' character
^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:226:14: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:226:9: error: missing terminating ' character
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:262:14: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:262:9: error: missing terminating ' character
^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:293:81: error: stray '@' in program Be notified when participating or @mentioned. ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:337:10: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:337:5: error: missing terminating ' character
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:351:10: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:351:5: error: missing terminating ' character
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:369:16: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:369:11: error: missing terminating ' character
^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:592:14: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:592:9: error: missing terminating ' character
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:597:21: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:597:1: error: missing terminating ' character
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:646:69: error: stray '#' in program #define MAX30100_INT_STATUS 0x00 // Which interrupts are tripped ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:650:69: error: stray '#' in program #define MAX30100_INT_ENABLE 0x01 // Which interrupts are active ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:654:70: error: stray '#' in program #define MAX30100_FIFO_WR_PTR 0x02 // Where data is being written ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:658:70: error: stray '#' in program #define MAX30100_OVRFLOW_CTR 0x03 // Number of lost samples ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:662:70: error: stray '#' in program #define MAX30100_FIFO_RD_PTR 0x04 // Where to read from ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:666:70: error: stray '#' in program #define MAX30100_FIFO_DATA 0x05 // Ouput data buffer ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:670:70: error: stray '#' in program #define MAX30100_MODE_CONFIG 0x06 // Control register ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:674:70: error: stray '#' in program #define MAX30100_SPO2_CONFIG 0x07 // Oximetry settings ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:678:70: error: stray '#' in program #define MAX30100_LED_CONFIG 0x09 // Pulse width and power of LEDs ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:682:70: error: stray '#' in program #define MAX30100_TEMP_INTG 0x16 // Temperature value, whole number ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:686:70: error: stray '#' in program #define MAX30100_TEMP_FRAC 0x17 // Temperature value, fraction ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:690:70: error: stray '#' in program #define MAX30100_REV_ID 0xFE // Part revision ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:694:70: error: stray '#' in program #define MAX30100_PART_ID 0xFF // Part ID, normally 0x11 ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:703:70: error: stray '#' in program #define MAX30100_ADDRESS 0x57 // 8bit address converted to 7bit ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:975:8: warning: missing terminating ' character [enabled by default]
^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:975:3: error: missing terminating ' character
^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:1025:14: warning: missing terminating ' character [enabled by default] You can't perform that action at this time. ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:1025:7: error: missing terminating ' character You can't perform that action at this time. ^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:10:19: warning: character constant too long for its type [enabled by default] ^ PPG:24: error: stray '\302' in program Pulse/PPG_plot.ino at master · Protocentral/Pulse ^ PPG:24: error: stray '\267' in program C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:112:8: warning: missing terminating ' character [enabled by default]
^ PPG:112: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:228:14: warning: missing terminating ' character [enabled by default]
^ PPG:228: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:264:14: warning: missing terminating ' character [enabled by default]
^ PPG:264: error: missing terminating ' character
^ PPG:295: error: stray '@' in program Be notified when participating or @mentioned. ^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:339:10: warning: missing terminating ' character [enabled by default]
^ PPG:339: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:353:10: warning: missing terminating ' character [enabled by default]
^ PPG:353: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:371:16: warning: missing terminating ' character [enabled by default]
^ PPG:371: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:594:14: warning: missing terminating ' character [enabled by default]
^ PPG:594: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:599:21: warning: missing terminating ' character [enabled by default]
^ PPG:599: error: missing terminating ' character
^ PPG:676: error: stray '#' in program #include "Protocentral_MAX30100.h" ^ PPG:680: error: stray '#' in program #include <Wire.h> ^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:902:8: warning: missing terminating ' character [enabled by default]
^ PPG:902: error: missing terminating ' character
^ C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:952:14: warning: missing terminating ' character [enabled by default] You can't perform that action at this time. ^ PPG:952: error: missing terminating ' character You can't perform that action at this time. ^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:5:1: error: expected unqualified-id before '<' token ^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:712:205: error: expected unqualified-id before '<' token typedef unsigned char uint8_t; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:716:205: error: expected unqualified-id before '<' token typedef unsigned int uint16_t; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:740:71: error: 'pulseWidth' does not name a type }pulseWidth; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:740:82: error: expected unqualified-id before '<' token }pulseWidth; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:785:71: error: 'sampleRate' does not name a type }sampleRate; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:785:82: error: expected unqualified-id before '<' token }sampleRate; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:858:71: error: 'ledCurrent' does not name a type }ledCurrent; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:858:82: error: expected unqualified-id before '<' token }ledCurrent; ^ C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:965:72: error: expected unqualified-id before '<' token }; ^ In file included from C:\Users\Aravind Narayan S\Desktop\PPG\PPG.ino:1:0: C:\Program Files (x86)\Arduino\libraries\max30100/Protocentral_MAX30100.h:1006:18: error: expected unqualified-id before numeric constant
  • © 2017 GitHub, Inc.
  • ^ PPG:676: error: expected unqualified-id before '<' token #include "Protocentral_MAX30100.h" ^ PPG:676: error: expected unqualified-id before '<' token #include "Protocentral_MAX30100.h" ^ PPG:680: error: expected unqualified-id before '<' token #include <Wire.h> ^ PPG:680: error: expected unqualified-id before '<' token #include <Wire.h> ^ PPG:689: error: expected unqualified-id before '<' token MAX30100 sensor; ^ PPG:693: error: expected unqualified-id before '<' token uint8_t data_len=8; ^ PPG:697: error: expected unqualified-id before '<' token uint8_t DataPacketHeader[15]; ^ PPG:701: error: expected unqualified-id before '<' token volatile long IRR,REDD; ^ PPG:734: error: expected unqualified-id before '<' token } ^ exit status 1 stray '\302' in program This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences. while uploading this....this error is comming
    akashpbhardwaj commented 6 years ago

    i have bought ProtoCentral Pulse Oximeter & Heart Rate Sensor based on MAX30100 but it is giving reading in HEX then i printed them in decimal using Serial.println(REDD,DEC); but it is giving 4 or 5 digit value like 61372 38020 56908 25064

    how to get heartbeat level and oxygen level out of it .