{"title":"Mini Heart Rate Unit (MAX30100)","handle":"mini-heart-rate-unit-max30100","url":"/products/mini-heart-rate-unit-max30100","description":"\n     Description HEART&nbsp;is build with&nbsp;MAX30100.. MAX30100 is a complete pulse oximetry and heartrate sensor system solution designed for the demanding requirements of wearable devices. The MAX30100 provides very small total solution size without sacrificing optical or electrical performance. Minimal external hardware components are needed for integration into a wearable device.  How do we use this Unit to test the heart rate and ?&nbsp;Put your finger on the detection area. What is the communication protocol between M5 core and this unit?&nbsp;I2C.   Product Features  Programmable Sample Rate and LED Current for Power Savings Ultra-Low Shutdown Current (0.7µA, typ) Advanced Functionality Improves Measurement Performance High Sample Rate Capability Fast Data Output Capability GROVE interface Software Develop platform: Arduino Two Lego-compatible holes   Kit includes  1x HEART Unit 1x Grove Cable  Documents  Datasheet&nbsp;-&nbsp;MAX30100 MAX30100 lib  Learn Example  Arduino IDE To get the code, please click&nbsp;here. /*     Install MAX30100lib Library first.      MAX30100_RawData.ino */ #include &lt;Wire.h&gt; #include \"MAX30100.h\"  #define SAMPLING_RATE   MAX30100_SAMPRATE_100HZ #define IR_LED_CURRENT  MAX30100_LED_CURR_50MA #define RED_LED_CURRENT MAX30100_LED_CURR_27_1MA // set HIGHRES_MODE to true only // when setting PULSE_WIDTH to MAX30100_SPC_PW_1600US_16BITS #define PULSE_WIDTH MAX30100_SPC_PW_1600US_16BITS #define HIGHRES_MODE    true  // new a object MAX30100 sensor;  void setup() {     Serial.begin(115200);     Serial.print(\"Initializing MAX30100..\");     if (!sensor.begin()) {         Serial.println(\"FAILED\");         for(;;);     } else {         Serial.println(\"SUCCESS\");     }     sensor.setMode(MAX30100_MODE_SPO2_HR);     sensor.setLedsCurrent(IR_LED_CURRENT, RED_LED_CURRENT);     sensor.setLedsPulseWidth(PULSE_WIDTH);     sensor.setSamplingRate(SAMPLING_RATE);     sensor.setHighresModeEnabled(HIGHRES_MODE); }  void loop() {     uint16_t ir, red;     sensor.update();     while (sensor.getRawValues(&amp;ir, &amp;red)) {         Serial.print(ir);         Serial.print('\\t');         Serial.println(red);     } }   More information Schematic   PinMapM5Core(GROVE A)GPIO22GPIO215VGNDHEART UnitSCLSDA5VGND&nbsp; \n\n","vendor":"Little Bird","product_type":"physical","in_stock":false,"options":[],"variants":[{"id":4794,"title":"Default Title","sku":"M5-U029","price":16.9,"compare_at_price":0.0,"on_sale":false,"in_stock":false,"available_quantity":0,"option1":"Default Title"}]}