Grove - Finger-clip Heart Rate Sensor with arduino uno r3

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

Grove - Finger-clip Heart Rate Sensor with arduino uno r3

Postby yys3 » Wed May 27, 2020 1:37 am

Hi, I am working on a project that requires me to get the heart rate readings from the sensor but unfortunately I failed to get it. I have no clues whats wrong.

basically, i follow the tutorial fromhttps://www.youtube.com/watch?v=Dzq4tnJ0LjA. Instead of using maker uno, i utilise the arduino uno r3 but i failed to get the reading. Anyone can help with this? I will appreciate it and thank you.

The serial monitor just showed nothing :(
Attachments
heart rate reading.PNG
serial monitor showed nothing
yys3
Greenhorn
 
Posts: 3
Joined: Wed May 27, 2020 12:26 am

Re: Grove - Finger-clip Heart Rate Sensor with arduino uno r

Postby ZaM » Tue Jun 02, 2020 11:06 am

Hi,

Can you test again using code from this link?
https://wiki.seeedstudio.com/Grove-Fing ... ith_shell/

Try using Hardware I2C and not software I2C.
ZaM
Moderator
 
Posts: 73
Joined: Tue Nov 23, 2010 4:16 pm

Re: Grove - Finger-clip Heart Rate Sensor with NodeMCU ESP32

Postby yys3 » Thu Jun 04, 2020 10:48 pm

Capture.PNG
No heart beat rate detected :(
Okay, I have tested it with the hardware serial and it works. Thanks :)

BUT
now I am testing it with nodemcu esp 32 -> https://my.cytron.io/p-nodemcu-esp32?src=search.instant and logic converter -> https://my.cytron.io/p-logic-level-converter-4-channels-bi-directional with this sensor.

I have did the connection with the help of cytron support. He helped me with the wiring connection.

power.jpg
wiring connection


Unfortunately, I wonder why my sensor does not power up when I have the right interface/wiring connection. Anyone has any idea why that happens ? When I run the code, there is no compilation error and yet the serial monitor unable to capture heart beat readings.


power 2.jpg
sensor not power up (no green light)


Any help will be grateful. thank you

CODE: SELECT_ALL_CODE
#include <Wire.h>
void setup() {
    Serial.begin(115200);
    Serial.println("heart rate sensor:");
    //Wire.begin();
    Wire.begin(22, 23); //sda, scl
}
void loop() {
    Wire.requestFrom(0xA0 >> 1, 1);    // request 1 bytes from slave device
    while(Wire.available()) {          // slave may send less than requested
        unsigned char c = Wire.read();   // receive heart rate value (a byte)
        Serial.println(c, DEC);         // print heart rate value
    }
    delay(500);
}


Capture.PNG
No heart beat rate detected :(


Regards
yys3
yys3
Greenhorn
 
Posts: 3
Joined: Wed May 27, 2020 12:26 am


Return to Sensor

Who is online

Users browsing this forum: No registered users and 1 guest

cron