element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products and Partners
    Products and Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Smart Home & Healthcare Challenge
  • Challenges & Projects
  • Design Challenges
  • Smart Home & Healthcare Challenge
  • More
  • Cancel
Smart Home & Healthcare Challenge
Forum HealthGuard #2 - Experimenting with MAXREFDES117# Reference Design Board
  • News
  • Projects
  • Forum
  • Details
  • Leaderboard
  • Files
  • Members
  • DC
  • More
  • Cancel
  • New
Join Smart Home & Healthcare Challenge to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 1 reply
  • Subscribers 18 subscribers
  • Views 55 views
  • Users 0 members are here
  • design challenge
  • maxrefdes117
  • spo2
  • analog devices
  • esp32-c6 supper mini
  • heart rate
  • smart home & healthcare
Related

HealthGuard #2 - Experimenting with MAXREFDES117# Reference Design Board

taifur
taifur 18 hours ago

The received MAXREFDES117# Reference Design Board is small in size, which is good for making a wearable device. To test the module, I soldered 4 jumper wires with 4 male pin headers, to the MAXREFDES117 module as shown in the image below. 

image

Then I used the solderless breadboard to connect the MAXREFDES117 module with the ESP3-C6 Super Mini board. 

image

image

I used the Arduino IDE to upload code and test the kit. I used SparkFun_MAX3010x_Sensor_Librar library to write the code for the sensor. The following is the code for printing SPO2 and heart rate to the Serial Monitor. I got the sensor value very stable compared with the other MAX3010x sensors I used before. 

#include <Wire.h>
#include "MAX30105.h"
#include "spo2_algorithm.h"

#define SDA_PIN 20
#define SCL_PIN 19

MAX30105 particleSensor;

// MAX30102 data buffers
#define BUFFER_SIZE 100

uint32_t irBuffer[BUFFER_SIZE];
uint32_t redBuffer[BUFFER_SIZE];

int32_t spo2;
int8_t validSPO2;

int32_t heartRate;
int8_t validHeartRate;

void setup()
{
  Serial.begin(115200);
  delay(1000);

  Serial.println();
  Serial.println("=================================");
  Serial.println("ESP32-C6 MAX30102 SpO2 Monitor");
  Serial.println("=================================");

  // Initialize I2C
  Wire.begin(SDA_PIN, SCL_PIN);

  Serial.println("Initializing MAX30102...");

  if (!particleSensor.begin(Wire, I2C_SPEED_FAST))
  {
    Serial.println("MAX30102 was not found.");
    Serial.println("Check:");
    Serial.println("1. Wiring");
    Serial.println("2. Power supply");
    Serial.println("3. SDA/SCL pins");
    Serial.println("4. I2C address");
    while (1);
  }

  Serial.println("MAX30102 detected!");

  // Configure MAX30102
  byte ledBrightness = 60;
  byte sampleAverage = 4;
  byte ledMode = 2;       // Red + IR
  int sampleRate = 100;
  int pulseWidth = 411;
  int adcRange = 4096;

  particleSensor.setup(
    ledBrightness,
    sampleAverage,
    ledMode,
    sampleRate,
    pulseWidth,
    adcRange
  );

  // Set LED amplitudes
  particleSensor.setPulseAmplitudeRed(0x3F);
  particleSensor.setPulseAmplitudeIR(0x3F);

  // Green LED is not needed
  particleSensor.setPulseAmplitudeGreen(0);

  Serial.println("Place your finger on the sensor.");
  Serial.println();
}

void loop()
{
  // --------------------------------------------------
  // Collect 100 samples
  // --------------------------------------------------

  for (int i = 0; i < BUFFER_SIZE; i++)
  {
    while (particleSensor.available() == false)
    {
      particleSensor.check();
    }

    redBuffer[i] = particleSensor.getRed();
    irBuffer[i] = particleSensor.getIR();

    particleSensor.nextSample();
  }

  // --------------------------------------------------
  // Calculate SpO2 and heart rate
  // --------------------------------------------------

  maxim_heart_rate_and_oxygen_saturation(
    irBuffer,
    BUFFER_SIZE,
    redBuffer,
    &spo2,
    &validSPO2,
    &heartRate,
    &validHeartRate
  );

  // --------------------------------------------------
  // Display result
  // --------------------------------------------------

  Serial.println("--------------------------------");

  if (validHeartRate)
  {
    Serial.print("Heart Rate: ");
    Serial.print(heartRate);
    Serial.println(" BPM");
  }
  else
  {
    Serial.println("Heart Rate: Invalid");
  }

  if (validSPO2)
  {
    Serial.print("SpO2: ");
    Serial.print(spo2);
    Serial.println(" %");
  }
  else
  {
    Serial.println("SpO2: Invalid");
  }

  Serial.println("--------------------------------");

  delay(500);
}

The following screenshot shows the sensor output in the Serial Monitor. 

image

I modified the code to plot the heart rate and oxygen saturation in the Arduino Serial Plotter as shown below. 

image

  • Sign in to reply
  • Cancel

Top Replies

  • embeddedguy
    embeddedguy 16 hours ago +1
    The images are not displaying for me. Only the icon. Do you face it?
  • embeddedguy
    embeddedguy 16 hours ago

    The images are not displaying for me. Only the icon. Do you face it?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube