Skip to content

check for empty strings from arduino. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jaekmcguire
Copy link

wasn't working without this on OS X

@ediigub
Copy link

ediigub commented Apr 21, 2015

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

@siddrajput
Copy link

@yahia0077
Copy link

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
Copy link

i need help please

@siddrajput
Copy link

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

Open the code with processing IDE.

@kassandramj
Copy link

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.

@shajjad3
Copy link

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

2 similar comments
@shajjad3
Copy link

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
Copy link

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

@biomurph
Copy link
Contributor

@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.

@KiDooooo
Copy link

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

@joelSensor
Copy link
Member

@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.

@shajjad3
Copy link

shajjad3 commented Mar 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants