Grove - Finger-clip Heart Rate Sensor


Grove - Finger-clip Heart Rate Sensor is based on PAH8001EI-2G, a high performance and low power CMOS-process optical sensor with Green LED and DSP integrated serving as a Heart Rate Detection(HRD) sensor. This module is based on optical technology which measures the variation human blood movement in the vessel. Low power consumption and flexible power saving mode make it suitable for wearable device. Cause the heart rate sensor chip need high processing speed for the algorithm of heart rate data(), this module integrate a STM32, reserved SWD interface allow users to reprogram the STM32.


  • Ultra-low power consumption, power saving mode during time of no touch movement

  • Flexible sleep rate control

  • Integrated the STM32F103

  • I2C interface

  • Heart rate sensor area just 3.0 x 4.7mm

  • Reserved SWD interface

  • Working temperature: -20 ~ +60℃

Interface Function

  • 1: Grove Interface

  • 2: Reserved SWD Interface for programming to STM32

  • 3: Heart Rate Sensor


Here, We will provide an example here to show you how to use this sensor.

Hardware Installation

Link the Sensor to I2C port of Seeeduino with Grove Cable.

Software Part

With Arduino

Copy the following code into a new sketch of Arduino and upload the sketch, then you can get heart rate from the Serial Monitor. It may take about a minute to get valid heart rate after you touch your finger with sensor.

#include <Wire.h>
void setup() {
    Serial.println("heart rate sensor:");
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 =;   // receive heart rate value (a byte)
        Serial.println(c, DEC);         // print heart rate value

With Mbed

Read a byte from I2C device 0xA0 (8 bit address), it’s the heart rate.

#include "mbed.h"

I2C i2c(I2C_SDA, I2C_SCL);
const int addr = 0xA0;

int main() {
    char heart_rate;
    while (1) {, &heart_rate, 1);
        printf("heart rate: = %d\r\n", heart_rate);

Upgrade firmware

We can upgrade the firmware of the heart rate sensor through its bootloader.

  • The bootloader is located at 0x08000000 - 0x08002000

  • The application is located at 0x08002000 - 0x08020000

  • To boot into bootloader, connect SWDIO to GND and reset to run

  • Interface: UART (the Grove connector supports I2C and UART),when upgrade the firmware, the Grove interface run in UART mode.





  • UART Baud Rate: 115200

  • Protocol: ymodem (The recommended tool is Tera Term)

  • USB to serial adapter is required, for example, using UartSBee


Grove - Finger-clip Heart Rate Sensor provide heart rate measurements.However, it is not a medical device. To use the heart rate detection sensor on your wrist, finger or palm, you must:

  • (1)Fasten the sensor snugly makes tight contact with your skin and maintain table (no motion) while measuring to acquire accurate heart rate.If the sensor does not contact the skin well or have extreme motion while measuring that the heart rate will not be measured correctly.
  • (2)Sensor’s performance is optimized with greater blood flow. On cold days or users have poor circulation(ex: cold hands, fingers and cold feet) the sensor performance (heart rate accuracy) can be impacted because of lower blood flow in the measuring position.


Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking