diff --git a/README.md b/README.md index a2fb1b1..ff2a414 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The GUI for visualizing the ECG and Respiration as well as parameters like Heart Java 8 is required on all platforms for running the processing-based GUI application. You can download Java for your platform from the Official Java website. -You can download and install ProtoCentral OpenView from here. You can also program your Arduino with the example sketch specific to OpenView. +You can download and install ProtoCentral OpenView from [this GitHub Repo](https://github.com/Protocentral/protocentral_openview). You can also program your Arduino with the example sketch specific to OpenView. Once you have opened OpenView, make sure to select "MAX86150 breakout" under the "Board" dropdown. If everything goes well, you will be able to see the screen as pictured above. diff --git a/examples/Example1-PPG-Stream-Arduino-Plotter/Example1-PPG-Stream-Arduino-Plotter.ino b/examples/Example1-PPG-Stream-Arduino-Plotter/Example1-PPG-Stream-Arduino-Plotter.ino index e26a476..d3c900f 100644 --- a/examples/Example1-PPG-Stream-Arduino-Plotter/Example1-PPG-Stream-Arduino-Plotter.ino +++ b/examples/Example1-PPG-Stream-Arduino-Plotter/Example1-PPG-Stream-Arduino-Plotter.ino @@ -32,24 +32,21 @@ MAX86150 max86150Sensor; -#define debug Serial //Uncomment this line if you're using an Uno or ESP -//#define debug SerialUSB //Uncomment this line if you're using a SAMD21 - uint16_t ppgunsigned16; void setup() { - debug.begin(57600); - debug.println("MAX86150 PPG Streaming Example"); + Serial.begin(57600); + Serial.println("MAX86150 PPG Streaming Example"); // Initialize sensor if (max86150Sensor.begin(Wire, I2C_SPEED_FAST) == false) { - debug.println("MAX86150 was not found. Please check wiring/power. "); + Serial.println("MAX86150 was not found. Please check wiring/power. "); while (1); } - debug.println(max86150Sensor.readPartID()); + Serial.println(max86150Sensor.readPartID()); max86150Sensor.setup(); //Configure sensor. Use 6.4mA for LED drive } @@ -59,6 +56,6 @@ void loop() if(max86150Sensor.check()>0) { ppgunsigned16 = (uint16_t) (max86150Sensor.getFIFORed()>>2); - debug.println(ppgunsigned16); + Serial.println(ppgunsigned16); } } diff --git a/examples/Example2-ECG-Stream-Arduino-Plotter/Example2-ECG-Stream-Arduino-Plotter.ino b/examples/Example2-ECG-Stream-Arduino-Plotter/Example2-ECG-Stream-Arduino-Plotter.ino index 5b21192..e9c3c50 100644 --- a/examples/Example2-ECG-Stream-Arduino-Plotter/Example2-ECG-Stream-Arduino-Plotter.ino +++ b/examples/Example2-ECG-Stream-Arduino-Plotter/Example2-ECG-Stream-Arduino-Plotter.ino @@ -33,9 +33,6 @@ MAX86150 max86150Sensor; -#define debug Serial // Uncomment this line if you're using an Uno or ESP -//#define debug SerialUSB //Uncomment this line if you're using a SAMD21 - int16_t ecgsigned16; int16_t redunsigned16; @@ -83,8 +80,8 @@ long coef[13] = { void setup() { - debug.begin(57600); - debug.println("MAX86150 Basic Readings Example"); + Serial.begin(57600); + Serial.println("MAX86150 Basic Reading Example"); // Set the coefficients fir.setFilterCoeffs(coef); @@ -92,7 +89,7 @@ void setup() // Initialize sensor if (max86150Sensor.begin(Wire, I2C_SPEED_FAST) == false) { - debug.println("MAX86150 was not found. Please check wiring/power. "); + Serial.println("MAX86150 was not found. Please check wiring/power. "); while (1) ; } @@ -105,6 +102,6 @@ void loop() if (max86150Sensor.check() > 0) { ecgsigned16 = (int16_t)(max86150Sensor.getECG() >> 2); - debug.println(fir.processReading(ecgsigned16)); + Serial.println(fir.processReading(ecgsigned16)); } } diff --git a/examples/Example3-PPG-Stream-Openview/Example3-PPG-Stream-Openview.ino b/examples/Example3-PPG-Stream-Openview/Example3-PPG-Stream-Openview.ino index 00e85fb..8cda3c4 100644 --- a/examples/Example3-PPG-Stream-Openview/Example3-PPG-Stream-Openview.ino +++ b/examples/Example3-PPG-Stream-Openview/Example3-PPG-Stream-Openview.ino @@ -37,9 +37,6 @@ const char DataPacketHeader[5] = {CES_CMDIF_PKT_START_1, CES_CMDIF_PKT_START_2, MAX86150 max86150Sensor; -#define debug Serial //Uncomment this line if you're using an Uno or ESP -//#define debug SerialUSB //Uncomment this line if you're using a SAMD21 - uint16_t irunsigned16; uint16_t redunsigned16; int16_t ecgsigned16; @@ -77,17 +74,17 @@ void sendDataThroughUart(){ void setup() { - debug.begin(57600); - debug.println("MAX86150 PPG Streaming Example"); + Serial.begin(57600); + Serial.println("MAX86150 PPG Streaming Example"); // Initialize sensor if (max86150Sensor.begin(Wire, I2C_SPEED_FAST) == false) { - debug.println("MAX86150 was not found. Please check wiring/power. "); + Serial.println("MAX86150 was not found. Please check wiring/power. "); while (1); } - debug.println(max86150Sensor.readPartID()); + Serial.println(max86150Sensor.readPartID()); max86150Sensor.setup(); //Configure sensor. Use 6.4mA for LED drive } diff --git a/library.properties b/library.properties index a7e9817..b675cad 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ProtoCentral MAX86150 PPG and ECG IC library -version=1.0.1 +version=1.0.2 author=ProtoCentral Electronics maintainer=ProtoCentral Electronics sentence=Library for the MAX86150 PPG and ECG sensor module breakout board