element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Analog Devices
  • Products
  • Manufacturers
  • Analog Devices
  • More
  • Cancel
Analog Devices
Forum how to compute heart rate and SPO2 from MAX30100
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Analog Devices to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 25 replies
  • Answers 10 answers
  • Subscribers 48 subscribers
  • Views 16341 views
  • Users 0 members are here
Related

how to compute heart rate and SPO2 from MAX30100

lavr2016
lavr2016 over 9 years ago

Hello, everybody. I work with Pulse Oximeter and Heart-Rate Sensor MAX30100 from Maxim Intergarted. I get raw data from sensor, but don't find an algorithm, how to compute heart rate and SPO2 level. Can anybody help me? I will be grateful for C code.

  • Sign in to reply
  • Cancel

Top Replies

  • koudelad
    koudelad over 8 years ago +3 suggested
    Hello, I know this is a year old discussion, but I got to this topic even after searching for MAX30100 example on Google I also own a Heart Rate clickboard and I found this article about a setup of MAX30100…
  • aswinvenu
    aswinvenu over 5 years ago in reply to eswar123 +3 suggested
    Hi Eswar, There are couple of libraries available online for MAX30102. Most of them are for arduino or mbed platforms. But with some effort you can re-write it for Atmega16A. Please take a look. https…
  • aswinvenu
    aswinvenu over 5 years ago +2 suggested
    Hi, Please check this TI app note for calculating SpO2. The same approach is applicable to maxim chip. http://www.ti.com/lit/an/slaa655/slaa655.pdf in brief SpO2 can be calculated R = (AC RMS of Red /…
Parents
  • Former Member
    0 Former Member over 9 years ago

    How did u get the I2C to work on max30100? i can make it in arduino but i'm having a lot of trouble doing the same for xmega128a3u

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lavr2016
    0 lavr2016 over 9 years ago in reply to Former Member

    Hello!

    You can use library from github: https://github.com/kontakt/MAX30100

    I work with Arduino pro mini(atmega328), communication is ok. (are you know, the I2C voltage for MAX30100 <=3.6 Volt and need a pull-up resistors?).

    Also i try to connect MAX30100 and 30102 to FRDM-K64f(Freescale).

    I get a ADC data from MAX but can't calculate it into normal heartrate or SPO2 - heart rate change from 60-80 BPM(i think, it normal) to 180-250. May be I use an incorrect algorithm?

    MAXIM don't provide a sample code or appnote for this sensor (it's official response from Maxim support centre!!!) , I think it very BAD!

    too many sensors from another company have a lot of documentation for calculation sensor's data!

    good luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • lavr2016
    0 lavr2016 over 9 years ago in reply to Former Member

    Hello!

    You can use library from github: https://github.com/kontakt/MAX30100

    I work with Arduino pro mini(atmega328), communication is ok. (are you know, the I2C voltage for MAX30100 <=3.6 Volt and need a pull-up resistors?).

    Also i try to connect MAX30100 and 30102 to FRDM-K64f(Freescale).

    I get a ADC data from MAX but can't calculate it into normal heartrate or SPO2 - heart rate change from 60-80 BPM(i think, it normal) to 180-250. May be I use an incorrect algorithm?

    MAXIM don't provide a sample code or appnote for this sensor (it's official response from Maxim support centre!!!) , I think it very BAD!

    too many sensors from another company have a lot of documentation for calculation sensor's data!

    good luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 9 years ago in reply to lavr2016

    I used that library in arduino also and it also worke. I was talking about xmega 128 a3u comunnication since i want to use the max 30100 with that microprocessor.

    You are probably detecting false positive peaks due to noise or motion artefacts, try to use a moving average filter and a low passa filter to smooth the signal. In your algorithm try to use an adaptative treshold and guaranty that you can't detect 2 peaks too close to each other. give them a minimum distance of samples between them.

    And yes MAXIM should provide sample code or appnotes.

     

    Good luck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • lavr2016
    0 lavr2016 over 9 years ago in reply to Former Member

    can You share Your code for calculate heart-rate?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube