PulseSensor_Amped_Processing_Visualizer icon indicating copy to clipboard operation
PulseSensor_Amped_Processing_Visualizer copied to clipboard

check for empty strings from arduino.

Open jaekmcguire opened this issue 10 years ago • 13 comments
trafficstars

wasn't working without this on OS X

jaekmcguire avatar Mar 03 '15 16:03 jaekmcguire

please friend... How Can I download the sensor code??? The link of your description is failure

ediigub avatar Apr 21 '15 16:04 ediigub

Download it from https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino

siddrajput avatar May 23 '15 17:05 siddrajput

wasn't working

erro messages

Arduino: 1.6.7 (Windows 8.1), Board: "Arduino/Genuino Uno"

PulseSensorAmpd_Processing_1dot1:9: error: 'import' does not name a type

import processing.serial.*;

^

PulseSensorAmpd_Processing_1dot1:10: error: 'PFont' does not name a type

PFont font;

^

PulseSensorAmpd_Processing_1dot1:11: error: 'Scrollbar' does not name a type

Scrollbar scaleBar;

^

PulseSensorAmpd_Processing_1dot1:13: error: 'Serial' does not name a type

Serial port;

^

PulseSensorAmpd_Processing_1dot1:18: error: expected unqualified-id before '[' token

int[] RawY; // HOLDS HEARTBEAT WAVEFORM DATA BEFORE SCALING

^

PulseSensorAmpd_Processing_1dot1:19: error: expected unqualified-id before '[' token

int[] ScaledY; // USED TO POSITION SCALED HEARTBEAT WAVEFORM

^

PulseSensorAmpd_Processing_1dot1:20: error: expected unqualified-id before '[' token

int[] rate; // USED TO POSITION BPM DATA WAVEFORM

^

PulseSensorAmpd_Processing_1dot1:23: error: 'color' does not name a type

color eggshell = color(255, 253, 248);

^

serialEvent:5: error: variable or field 'serialEvent' declared void

void serialEvent(Serial port){

              ^

serialEvent:5: error: expected ')' before 'port'

void serialEvent(Serial port){

                     ^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\serialEvent.pde: In function 'void setup()':

serialEvent:34: error: 'size' was not declared in this scope

serialEvent:35: error: 'frameRate' was not declared in this scope

serialEvent:36: error: 'font' was not declared in this scope

serialEvent:36: error: 'loadFont' was not declared in this scope

serialEvent:37: error: 'textFont' was not declared in this scope

serialEvent:38: error: 'CENTER' was not declared in this scope

serialEvent:38: error: 'textAlign' was not declared in this scope

serialEvent:39: error: 'rectMode' was not declared in this scope

serialEvent:40: error: 'ellipseMode' was not declared in this scope

serialEvent:42: error: 'scaleBar' was not declared in this scope

serialEvent:42: error: expected type-specifier before 'Scrollbar'

serialEvent:42: error: expected ';' before 'Scrollbar'

serialEvent:43: error: 'RawY' was not declared in this scope

serialEvent:44: error: 'ScaledY' was not declared in this scope

serialEvent:45: error: 'rate' was not declared in this scope

serialEvent:53: error: 'height' was not declared in this scope

serialEvent:57: error: 'class HardwareSerial' has no member named 'list'

serialEvent:57: error: 'println' was not declared in this scope

serialEvent:59: error: 'port' was not declared in this scope

serialEvent:59: error: expected type-specifier before 'Serial'

serialEvent:59: error: expected ';' before 'Serial'

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\serialEvent.pde: In function 'void draw()':

serialEvent:65: error: 'background' was not declared in this scope

serialEvent:66: error: 'noStroke' was not declared in this scope

serialEvent:68: error: 'eggshell' was not declared in this scope

serialEvent:68: error: 'fill' was not declared in this scope

serialEvent:69: error: 'height' was not declared in this scope

serialEvent:69: error: 'rect' was not declared in this scope

serialEvent:74: error: 'RawY' was not declared in this scope

serialEvent:75: error: 'scaleBar' was not declared in this scope

serialEvent:80: error: 'ScaledY' was not declared in this scope

serialEvent:82: error: 'stroke' was not declared in this scope

serialEvent:83: error: 'noFill' was not declared in this scope

serialEvent:84: error: 'beginShape' was not declared in this scope

serialEvent:85: error: 'ScaledY' was not declared in this scope

serialEvent:86: error: 'vertex' was not declared in this scope

serialEvent:88: error: 'endShape' was not declared in this scope

serialEvent:94: error: 'rate' was not declared in this scope

serialEvent:100: error: 'rate' was not declared in this scope

serialEvent:104: error: 'strokeWeight' was not declared in this scope

serialEvent:107: error: 'rate' was not declared in this scope

serialEvent:108: error: 'vertex' was not declared in this scope

serialEvent:121: error: 'smooth' was not declared in this scope

serialEvent:122: error: 'width' was not declared in this scope

serialEvent:122: error: 'bezier' was not declared in this scope

serialEvent:129: error: 'text' was not declared in this scope

serialEvent:130: error: invalid operands of types 'const char*' and 'const char [3]' to binary 'operator+'

serialEvent:132: error: 'nf' was not declared in this scope

serialEvent:135: error: 'mouseX' was not declared in this scope

serialEvent:135: error: 'mouseY' was not declared in this scope

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\keyboard_mouse.pde: In function 'void mousePressed()':

keyboard_mouse:3: error: 'scaleBar' was not declared in this scope

scaleBar.press(mouseX, mouseY);

^

keyboard_mouse:3: error: 'mouseX' was not declared in this scope

scaleBar.press(mouseX, mouseY);

              ^

keyboard_mouse:3: error: 'mouseY' was not declared in this scope

scaleBar.press(mouseX, mouseY);

                      ^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\keyboard_mouse.pde: In function 'void mouseReleased()':

keyboard_mouse:7: error: 'scaleBar' was not declared in this scope

scaleBar.release();

^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\keyboard_mouse.pde: In function 'void keyPressed()':

keyboard_mouse:12: error: 'key' was not declared in this scope

switch(key){

     ^

keyboard_mouse:15: error: 'saveFrame' was not declared in this scope

  saveFrame("heartLight-####.jpg");    // take a shot of that!

                                 ^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\scaleBar.pde: At global scope:

scaleBar:84: error: expected ';' after class definition

}

^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\scaleBar.pde: In member function 'void Scrollbar::display()':

scaleBar:65: error: 'noStroke' was not declared in this scope

noStroke();

        ^

scaleBar:66: error: 'fill' was not declared in this scope

fill(255);

       ^

scaleBar:67: error: 'rect' was not declared in this scope

rect(x, y, sw, sh); // create the scrollbar

                ^

scaleBar:70: error: 'stroke' was not declared in this scope

stroke(250,0,0);

              ^

scaleBar:71: error: 'strokeWeight' was not declared in this scope

strokeWeight(8);           // make the scale dot bigger if you're on it

              ^

scaleBar:73: error: 'ellipse' was not declared in this scope

ellipse(pos, y, sh, sh); // create the scaling dot

                     ^

scaleBar:74: error: 'strokeWeight' was not declared in this scope

strokeWeight(1); // reset strokeWeight

             ^

C:\Users\yahia\Documents\Arduino\New folder\PulseSensorAmpd_Processing_1dot1\serialEvent.pde: At global scope:

serialEvent:5: error: variable or field 'serialEvent' declared void

void serialEvent(Serial port){

              ^

serialEvent:5: error: expected ')' before 'port'

void serialEvent(Serial port){

                     ^

exit status 1 'import' does not name a type

yahia0077 avatar Feb 02 '16 02:02 yahia0077

i need help please

yahia0077 avatar Feb 02 '16 02:02 yahia0077

Are you using "processing" IDE? You can download it from [https://processing.org/]

Open the code with processing IDE.

siddrajput avatar Feb 02 '16 06:02 siddrajput

I need help setting up - I'm willing to pay for your time. Please reach out to me if you can help me setup the sensor and graphs.

kassandramj avatar Feb 03 '16 19:02 kassandramj

Hello! I am working with pulse sensor. The LED from pin no 13 is blinking according to the pulse. Its working. But pulse sensor amped visualizer is nor working! It just shows a straight line and not gives BPM. I used code from this site for both arduino and processing code. https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino I am using Windows 7(32 bit), arduino IED 1.6.9 And processing 3.1.1 software. I gave same baud rate to both arduino and processing code. Please suggest me how can I solve. If possible please give the screenshot , how to fix it Thanks

shajjad3 avatar Jun 10 '16 05:06 shajjad3

Hello! I am working with pulse sensor. The LED from pin no 13 is blinking according to the pulse. Its working. But pulse sensor amped visualizer is nor working! It just shows a straight line and not gives BPM. I used code from this site for both arduino and processing code. https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino I am using Windows 7(32 bit), arduino IED 1.6.9 And processing 3.1.1 software. I gave same baud rate to both arduino and processing code. Please suggest me how can I solve. If possible please give the screenshot , how to fix it Thanks

shajjad3 avatar Jun 10 '16 06:06 shajjad3

Hello! I am working with pulse sensor. The LED from pin no 13 is blinking according to the pulse. Its working. But pulse sensor amped visualizer is nor working! It just shows a straight line and not gives BPM. I used code from this site for both arduino and processing code. https://github.com/WorldFamousElectronics/PulseSensor_Amped_Arduino I am using Windows 7(32 bit), arduino IED 1.6.9 And processing 3.1.1 software. I gave same baud rate to both arduino and processing code. Please suggest me how can I solve. If possible please give the screenshot , how to fix it Thanks

shajjad3 avatar Jun 10 '16 06:06 shajjad3

@shajjad3 I have Arduino 1.6.5 and Processing 3.1.1 and I have no problem running the code. Please make sure that you are selecting the correct serial port in the processing sketch. on line 59: port = new Serial(this, Serial.list()[7], 115200); // make sure Arduino is talking serial at this baud rate Make sure that the number in brackets [] is correct for the Arduino port. When you run the sketch in Processing, you will see a list of available ports in the processing console (black area at the bottom of the Processing code window) count from 0 (zero) to find the number of the port you are on.

biomurph avatar Jun 10 '16 14:06 biomurph

@biomurph i also have same problem with processing visualizer ,don't get BPM value

KiDooooo avatar Mar 14 '17 07:03 KiDooooo

@KiDooooo You are creating issues in two threads that are related to an older version of the code. Please reply to my comment on the other issue thread that you started.

joelSensor avatar Mar 14 '17 15:03 joelSensor

Hello I am Shajjad. Thank you very much for helpful reply. I solve the problem. Thanks with best regards.

On Mar 14, 2017 9:04 PM, "Joel Murphy" [email protected] wrote:

@KiDooooo https://github.com/KiDooooo You are creating issues in two threads that are related to an older version of the code. Please reply to my comment on the other issue thread that you started.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WorldFamousElectronics/PulseSensor_Amped_Processing_Visualizer/pull/1#issuecomment-286449492, or mute the thread https://github.com/notifications/unsubscribe-auth/AS7pFJKuypNLSBpQ2UcPQCeT0UicROuVks5rlqxpgaJpZM4Doz6p .

shajjad3 avatar Mar 14 '17 18:03 shajjad3