Little Bird
Mini Heart Rate Unit (MAX30100)
Description HEART is build with MAX30100.. MAX30100 is a complete pulse oximetry and heartrate sensor system solution designed for the demand...
Description
HEART is build with 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 ? Put your finger on the detection area.
What is the communication protocol between M5 core and this unit? 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 - MAX30100
Learn
Example
Arduino IDE
To get the code, please click here.
/* Install MAX30100lib Library first. MAX30100_RawData.ino */ #include <Wire.h> #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(&ir, &red)) { Serial.print(ir); Serial.print('\t'); Serial.println(red); } } More information
Schematic
PinMap
M5Core(GROVE A)GPIO22GPIO215VGNDHEART UnitSCLSDA5VGND
Jargon buster
Plain-language definitions for the technical terms used above.
- Grove
- Grove is a plug-in connector ecosystem for sensors and modules that avoids soldering and jumper wires. Grove compatibility matters because it can make it quicker to add supported I2C devices, as long as the cable and voltage are suitable.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- IDE
- Short for Integrated Development Environment, a program used to write, run and manage code. It matters because some learners prefer a traditional coding workspace instead of a guided notebook-style lesson.
- LED
- A light-emitting diode is a small electronic component that lights up when current flows through it in the correct direction. In this kit, LEDs create the flashing effect, so polarity and correct soldering matter for the project to work.
Find this product in
Sensors & Input
Related Tutorials
Free guides on learn.littlebird.com.au
