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);
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)
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?
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.
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.