Closed johnny2231 closed 4 years ago
@johnny2231 There are many ESP 32 boards out there. In order to help troubleshoot your problem, please tell me exactly which board you are targeting? Also, can you get any simple serial code to work on the module you are using?
@biomurph Hi, the esp32 board i am using is this
@johnny2231 Please tell me what board you are selecting from the arduino boards dropdown menu. This sounds like an issue with the board itself. Please confirm that you can or cannot run a simple sketch that outputs to the serial port.
@biomurph Hi there, sorry for the late reply. I chose DOIT ESP32 DEVKIT V1.
I have tried to use analogRead(gpio) in new sketch to see if I can read any data from the pulse sensor or not. And I got the values. And I can see the ECG by using the "getting started project".
@johnny2231 OK, so you have analog read happening on the pin 34? And you see data on the serial port? Does this mean your problem is solved?
@biomurph Yea can see the data on serial monitor, but when i use the "getting bpm to monitor" code, because I want to know my heart bpm, the serial monitor is blank.
Is it because of this code? "#define USE_ARDUINO_INTERRUPTS false"
@johnny2231 It is best to set USE_ARDUINO_INTERRUPTS to false because we don't support interrupts on the ESP units yet.
try putting this line in the code at the start of the loop
pulseSensor.sawNewSample();
@biomurph Hi, I tried that and can see bpm on serial monitor, but it seems not accurate as it goes to 200something... and the speed seems slower...
@johnny2231 Please send a photo of the Pulse Sensor that you are using so I can verify the hardware?
Did you ever get good heart rate from it?
hello, I am also using the same board with Johnny but my problem is that it cannot get into these statement.
` pulseSensor.sawNewSample(); int myBPM = pulseSensor.getBeatsPerMinute();
if (pulseSensor.sawStartOfBeat()) {
Serial.println("♥ A HeartBeat Happened ! ");
Serial.print("BPM: ");
Serial.println(myBPM);
}
delay(20);
`
I cannot read a BPM, Help please.
@rsorima Please use the PulseSensor_BPM_Alternative. We don't have support for hardware timer interrupts yet for the ESP32.
@biomurph Hi, I tried that and can see bpm on serial monitor, but it seems not accurate as it goes to 200something... and the speed seems slower...
Hello, can i ask about this? how do you solve this problem?
@fitrahmaw this issue is closed. please start a new issue with a clear description of what your question is.
I was using the code "Getting_BPM_to_Monitor" to track my heart BPM using arduino UNO. After that I plan to use ESP32 as it is small and can use it to send data to IOT platform. But I cant see any thing printed on the serial monitor like I used to have when I use UNO.
`
`