AD8232 Heart Rate Monitor no readout on Processing

has anyone managed to get a readout from the AD8232 Heart Rate Monitor in the processing software

i have it wired up as per manual checked 3 times, and i am getting a readout of data coming from the serial window in sketch

here is a sample from sketch

190
349
488
307
170
361
467
266
186
398
451
236
211
440
439
213
239
457
392
163
245
460
382
274
515
661
530

so when i move to the processing software im just getting a white screen with nothing on it

the processing code is

/******************************************************************************
Heart_Rate_Display.ino
Demo Program for AD8232 Heart Rate sensor.
Casey Kuhns @ SparkFun Electronics
6/27/2014
https://github.com/sparkfun/AD8232_Heart_Rate_Monitor
The AD8232 Heart Rate sensor is a low cost EKG/ECG sensor.  This example shows
how to create an ECG with real time display.  The display is using Processing.
This sketch is based heavily on the Graphing Tutorial provided in the Arduino
IDE. http://www.arduino.cc/en/Tutorial/Graph
Resources:
This program requires a Processing sketch to view the data in real time.
Development environment specifics:
  IDE: Arduino 1.0.5
  Hardware Platform: Arduino Pro 3.3V/8MHz
  AD8232 Heart Monitor Version: 1.0
This code is beerware. If you see me (or any other SparkFun employee) at the
local pub, and you've found our code helpful, please buy us a round!
Distributed as-is; no warranty is given.
******************************************************************************/

import processing.serial.*;

Serial myPort;        // The serial port
int xPos = 1;         // horizontal position of the graph
float height_old = 0;
float height_new = 0;
float inByte = 0;


void setup () {
  // set the window size:
  size(1000, 400);        

  // List all the available serial ports
  println(Serial.list());
  // Open whatever port is the one you're using.
  myPort = new Serial(this, Serial.list()[2], 9600);
  // don't generate a serialEvent() unless you get a newline character:
  myPort.bufferUntil('\n');
  // set inital background:
  background(0xff);
}


void draw () {
  // everything happens in the serialEvent()
}


void serialEvent (Serial myPort) {
  // get the ASCII string:
  String inString = myPort.readStringUntil('\n');

  if (inString != null) {
    // trim off any whitespace:
    inString = trim(inString);

    // If leads off detection is true notify with blue line
    if (inString.equals("!")) { 
      stroke(0, 0, 0xff); //Set stroke to blue ( R, G, B)
      inByte = 512;  // middle of the ADC range (Flat Line)
    }
    // If the data is good let it through
    else {
      stroke(0xff, 0, 0); //Set stroke to red ( R, G, B)
      inByte = float(inString); 
     }
     
     //Map and draw the line for new data point
     inByte = map(inByte, 0, 1023, 0, height);
     height_new = height - inByte; 
     line(xPos - 1, height_old, xPos, height_new);
     height_old = height_new;
    
      // at the edge of the screen, go back to the beginning:
      if (xPos >= width) {
        xPos = 0;
        background(0xff);
      } 
      else {
        // increment the horizontal position:
        xPos++;
      }
    
  }
}

the arduino code is

/******************************************************************************
Heart_Rate_Display.ino
Demo Program for AD8232 Heart Rate sensor.
Casey Kuhns @ SparkFun Electronics
6/27/2014
https://github.com/sparkfun/AD8232_Heart_Rate_Monitor

The AD8232 Heart Rate sensor is a low cost EKG/ECG sensor.  This example shows
how to create an ECG with real time display.  The display is using Processing.
This sketch is based heavily on the Graphing Tutorial provided in the Arduino
IDE. http://www.arduino.cc/en/Tutorial/Graph

Resources:
This program requires a Processing sketch to view the data in real time.

Development environment specifics:
    IDE: Arduino 1.0.5
    Hardware Platform: Arduino Pro 3.3V/8MHz
    AD8232 Heart Monitor Version: 1.0

This code is beerware. If you see me (or any other SparkFun employee) at the
local pub, and you've found our code helpful, please buy us a round!

Distributed as-is; no warranty is given.
******************************************************************************/

void setup() {
  // initialize the serial communication:
  Serial.begin(9600);
  pinMode(10, INPUT); // Setup for leads off detection LO +
  pinMode(11, INPUT); // Setup for leads off detection LO -

}

void loop() {
  
  if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
    Serial.println('!');
  }
  else{
    // send the value of analog input 0:
      Serial.println(analogRead(A0));
  }
  //Wait for a bit to keep serial data from saturating
  delay(1);
}

i have the monitor cabled up as |500x271

and the pads are

Cable Color Signal Black RA (Right Arm) Blue LA (Left Arm) Red RL (Right Leg)

but im still geting a white screen i am using a arduino sketch 1.65 and processing 3 but i have also tried V2

float inByte = 0;

I quit reading at the point. If you can't come up with better names than that for variables, you need to work through your issues yourself.

You are NOT sending float values to Processing.

the code isnt mine its a sample code so i didn't make the names up im sorry but i am new to all this arduino but i have come over from IOS so i am used to sarcastic comments from programmers who think they know everything.

it would be nice for once if someone would just explain a little more so newbies can learn instead of feeling ashamed of posting what seems simple problems to you but might not be to a newbie

i dont have a lot of knowledge about arduino but if i can help someone i will and i will do it politely and try to explain

You are NOT sending float values to Processing.

So, why does the Processing code assume that you are? Change the type in Processing to reflect that you are sending ints.

The variable names should NOT have some completely different type as part of the name.

Is your mini a 3.3V version? Because the sensor runs on 3.3V.

yes it is 3.3v but at the moment i am also trying it on a UNO and getting the same results nothing

nothing

And that appears to be the amount of effort you’ve put into fixing your code.

look paul if u cant say anything helpful why not just bypass this post instead of taking the micky out of people who are trying to understand

at 59k post's i think u may be a very talented programmer. unfortunately not all of us have your skills yet. so please try and help those who can't do what u can.

and yes i have tried to find out why this wont work. i have been to the person who wrote this and they say it works. i think there must be a hardware problem rather than software.

i just wanted someone who had more experience than me to view over the code i didn't expect to get humiliated from experienced people like yourself

So, why does the Processing code assume that you are? Change the type in Processing to reflect that you are sending ints.

Have you done this? This is the minimum that you should have done. If you have, where is your revised code?

If not, take your whining somewhere else.

yes i did and i'm not whining. i don't but it's people like you who put comments like that that make newbies not want to post therefore stopping them from learning

i fixed it a few days after posting in the first place my hardware was faulty.but your comments didn't help one little bit

i have now received the new board. and its all working fine

i just looked back at my old posts today and just thought why do you persist in posting in some of my post's useless comments that don't help anyone

when everyone else seems polite and helpful you just seem to look down your nose sorry we can't all be a gifted as you

You need Processing version 2, not 3.

Hello, had you solved your problem at last? I had the same problem, and for me, the solution was in the serial port selection

myPort = new Serial(this, Serial.list()[2], 9600);

in the "setup".

The number between brackets is the port in your computer. If you have connected your Arduino in the COM1 and Processing is listening in COM3, the screen remains blank because there is nothing to plot in. In my case, MacOs, the problem was the same, the sample code from Sparkfun was listening in different port than my Arduino was connected.

I hope it can help somebody.

Greetings