#include Library Problem

I'm an 8th grader making a science fair project where I create a pulse oximeter using an Arduino Nano Every chip. I uploaded all the libraries, however, for the MAX30100, I couldn't find a library named, "MAX30100_PulseOximeter.h", which the program code calls for. Below is the output after I verify my sketch. Could you please help me find out what I'm doing wrong, and what that output is telling me to do, as I am completely new to Arduino.

The Output:
C:\Users\omera\AppData\Local\Temp.arduinoIDE-unsaved2024015-1856-3310eq.vha6y\sketch_jan15b\sketch_jan15b.ino:2:10: fatal error: MAX30100_PulseOximeter.h: No such file or directory
#include "MAX30100_PulseOximeter.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: MAX30100_PulseOximeter.h: No such file or directory

My Setup

  • Arduino hardware: Arduino Nano Every, MAX30100 Heart Rate Oximeter Sensor Module, HiLetgo SSD1306 OLED LCD Display
  • Arduino framework version: Arduino Ide is at version 2.2.1.
  • MAX30100 library version: The MAX30100 library that I used is simply called "MAX30100". It was the one made by Connor Huffine.
    i don't know what max30100 breakout is

Welcome to the forum

The problem seems clear from the error message

 MAX30100_PulseOximeter.h: No such file or directory

Have you got that file on your PC and, if so, where is it located ?

Please post your full sketch

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Hi @mmmicrowave ,

looks as if you have not installed the library required for the sketch ...

That should do it ...

Good luck and have fun!
ec2021

While ec2021 was writing what to do, I was making a screendump:

afbeelding

That is this library: https://github.com/kontakt/MAX30100

In your sketch, include that library like this:

#include <Wire.h>
#include <MAX30100.h>

Once you have decided which library to use, look at examples (in the menu of the Arduino IDE or online on Github) how to use it.
Arduino seems to point to the library by Conner Huffine. I would try that first.

Hi @Koepel ,

that should work also ... I suggest to use the library from OXullo as this seems to be the missing link.

https://github.com/oxullo/Arduino-MAX30100/tree/master/src

image

:wink:

Sorry for responding so late, I aced my project because of your advice. Thank you so much :slight_smile: ``

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.