Serial Plotter NOT WORKING!!!

Hi

I'm trying to get a sample program running

It's for a pulse sensor and I want to get the ouput on the Serial plotter

But the serial Plotter is always blank and never shows any output at all. It just stays blank all the time.

All I get is some gibberish output on the Serial Monitor sometimes. I'll attach a screen-shot of that.

CODE :

#include <PulseSensorPlayground.h>

int sensorPin = A0; // select the input pin for the potentiometer
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor

void setup() {
// declare the ledPin as an OUTPUT:
pinMode(ledPin, OUTPUT);
// begin the serial monitor @ 9600 baud
Serial.begin(9600);
}

void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);

Serial.println(sensorValue);
Serial.println(" ");

delay(20);
}

  Serial.println("Hello");
  Serial.println(" ");

Can you draw a picture of how you think this should be plotted?

PaulS:

  Serial.println("Hello");

Serial.println(" ");



Can you draw a picture of how you think this should be plotted?

I'm Sorry...I've Changed the code...The thing is even when i tried to print hello it kept printing rubbish and the plotter was always blank.

(deleted)

spycatcher2k:
Post the actual code you are having issues with, not some random code! No one here is a mind reader, we can't see YOUR screen. Did you set the serial monitor speed to 9600 in the IDE?

I've made the changes already. Instead of Serial.println("Hello") I'm doing Serial.println(sensorValue)

But it still doesn't work!

spycatcher2k:
Post the actual code you are having issues with, not some random code! No one here is a mind reader, we can't see YOUR screen. Did you set the serial monitor speed to 9600 in the IDE?

Yes, its set to baud 9600.

(deleted)

spycatcher2k:

Serial.println(sensorValue)

try

Serial.print(sensorValue)

I've tried it. The output didn't change on the Serial monitor and No Output still on the plotter!

(deleted)

I've Attached 3 screenshots

1 with the code

2 with the serial monitor output

3 with the serial plotter

Do you have anything connected to pins 0 or 1 on your Arduino?

Yes. The Signal of the pulse rate sensor is connected to A0.

(deleted)

Try the test to locate the problem

https://forum.arduino.cc/index.php?topic=519268.0

Arduino Pro Mini - 3.3V 8Mhz

ceejay1337:
Yes. The Signal of the pulse rate sensor is connected to A0.

Pin A0 and pin 0 are two different pins. I asked you if you had anything connected to pins 0 and 1, not A0. Pins 0 and 1 are used for Serial and also uploading sketches to your board so it's best not to connect anything to those two pins.

ted:
Try the test to locate the problem

Serial monitor - Programming Questions - Arduino Forum

Tried Both...No Results

(deleted)

pert:
Pin A0 and pin 0 are two different pins. I asked you if you had anything connected to pins 0 and 1, not A0. Pins 0 and 1 are used for Serial and also uploading sketches to your board so it's best not to connect anything to those two pins.

Okay. there isn't anything connected to pin 0 and 1.

Alright