×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Creative Commons images are CC BY 2.0

Description: The SparkFun MAX30105 Particle Sensor is a flexible, powerful sensor enabling sensing of distance, heart rate, particle detection and even the blinking of an eye. The MAX30105 has been equipped with three LEDs as well as a very sensitive photon detector. The idea is to pulse the different LEDs, then detect what shines back. Based on the reflected signature it’s possible to detect different types of particles or materials (such as oxygenated blood or smoke from a fire).

The MAX30105 utilizes a red LED, a green LED, and an IR (Infrared) LED for presence sensing, heart-beat plotting and heart-rate monitoring among its multitude of uses, including Pulse Oximetry. The MAX30105 is designed to operate at 5V and can communicate with both 3.3V and 5V microcontrollers. We’ve also written an Arduino library for the MAX30105 Breakout which takes care of all of the I2C communication, bit shifting, register writing and sample reading.

Get Started with the MAX30105 Breakout Guide

Features:

  • Built-in Red, IR, and Green LEDs
  • 5V operation (3.3V is allowed, but green LED is not guaranteed to operate)
  • Onboard 1.8V regulation and I2C interface circuitry
  • Sensitivity configurable down to 7.81pA
  • 3200Hz maximum sample rate
  • Built-in 32 sample FIFO (First In, First Out)
  • Applications include presence detection, distance sensing (18" max), pulse oximetry, blood oxygen saturation level (SpO2), smoke and particle detection

Documents:

Recommended Products

Customer Comments

  • Did someone let the intern play with the shiny hyper-photogenic quarter again?

  • I was working on something where I needed a blink sensor and was looking at reflectance sensors, but the question comes up with invisible light (IR) if it’s eye safe. Do you know how eye safe this is in continuous use and what distance we can expect from it for blink sensing? http://www.intersil.com/content/dam/Intersil/documents/an17/an1737.pdf

    • Your app note link is fantastic! Thanks for posting. As I was designing the MAX30105 breakout I was excited to get the ability to sense blinking. We used it on a friend’s Halloween mask to great effect. We did consider the effects of longterm IR exposure but we didn’t have the app note to work with. Here’s what I calculate:

      For our project we used the Example2_Presence_Sensing sketch. We turned on the red LED to 0x02 (very low) just to let us know the sensor was operating the IR LED. We were able to bring the IR LED power down to 0x0A or approximately 2mA with a sample rate of 400Hz and pulse width of 411us and were still able to detect blinking.

      This equates to 1107us channel timing (page 26 of datasheet). I calculate 740uA equivalent current going to the LED. Assuming forward voltage of 1.35V (page 7) power is 1mW. Selecting various configurations on the Intersil XLS I am able to set an effective avg emitted power of 1.62mW (so more than my setup) using the ISL29038 set to 6.25ms sleep and 110mA IRDR current. Assuming 30mm distance from sensor mounted on Halloween mask to the eye, we get corneal exposure of 1.8W/m2 and an exposure limit of 100W/m2. We should be good for any length of time.

      That said, less is better. We had very rudimentary filtering and with some better FIRs we could probably bring the sample rate down and overall exposure time quite a bit lower.

      My setup example depends heavily on the distance from sensor to eye. The further away the sensor can be the less exposure the eye will have to IR, but you’ll need to increase the IR LED power (so six of one, half-dozen of the other). I’d recommend placing the sensor closer to the eye and turning the IR power way down so that you get a cleaner signal, filter more, and see if you can get the sampling rate as low as possible.

  • Following the Hookup Guide on Example 1: Basic Readings when I open Serial Monitor, instead of R[xxxxxx] IR[xxxxxx] G[xxxxxx], I am getting a long line of strange characters, such as:

    ¹ãþñøêøÿþ÷ãøþüÊòþÊ

    I tried on 2 seperate Arduino’s, with the same result. Could this a problem with the I2C? Or my hardware?

    • Sounds like you have a baud rate mismatch. Double check to see you have the Serial Monitor set to 115200 baud and see if that clears things up for you.

  • Hey there… I was wondering if I could use this sensor to measure the paint-output of a spray can. And what distance would it need to do that. And does it work behind a protective glass? Because obviously I don’t want to ruin the sensor with color. And last but not least.. would it work with every color, even transparent colors? Thanks for your help!

    • Frickin awesome question, unfortunately I don’t have a definitive answer.

      The sensor has a glass lens to protect the inside bits but an additional layer to isolate the SMD components is a great idea.

      You should be able to detect a binary ‘do I see paint?’ easily enough but calibrating that to the amount of paint is tricky. We haven’t seen full-blown particle detection projects yet and I’m not sure of the flow rate out of the nozzle and whether the sensor (at 500Hz) would be fast enough to properly capture it.

      As long as the transparent particles reflect IR/Red/Green differently (and I bet they do) then the sensor would be able to detect them.

      • Hey Nate, thanks a lot for your quick reply! Assuming that the color-output of a new can is max I think I can use that to calibrate the system for each can. It’s just that I need to figure out when the can gets empty so I get an alarm. You didn’t answer my question about the distance though. Any idea about that?

        • I suspect the paint cloud will have a good IR signature meaning you should be able to detect the ‘cloud’ over multiple inches. If all you need is a ‘is it shooting paint?’ sensor you could probably set the sensor multiple (6) inches to the side at a right angle to the spray. I worry that the spray would be very diffuse after traveling 5 or 6 inches from the nozzle. I would try to capture the spray within one inch of the paint exiting the nozzle to try to get as dense of a material to sense as possible.

  • Hi! I am using this sensor and this works perfectly in Arduino but if I use samd21, I get this error: libraries/SparkFun_MAX3010x_Pulse_and_Proximity_Sensor_Library/src/MAX30105.cpp:628:19: error: ‘BUFFER_LENGTH’ was not declared in this scope if (toGet > BUFFER_LENGTH) Do you know what is the problem? Thank you.

    • Hmm. Your SAMD21 platform is not pulling in the BUFFER_LENGTH define that is usually in Wire.h. The quickest fix is to throw a

      #ifndef BUFFER_LENGTH
      #define BUFFER_LENGTH 32
      #endif
      

      at the top of MAX30105.h. I’ll do some more testing (Wire.h should already have this) and update the repo as needed.

      • So it took me awhile to find where Arduino was pulling in the Wire.h for the SAMD21 platform. Because I’m using our SAMD21 Mini Breakout the header file was located in the User directory under windows (yours will vary but: C:\Users\nathan.seidle\AppData\Roaming\Arduino15\packages\SparkFun\hardware\samd\1.2.2\libraries)

        Next, the SAMD version of Wire.h does not define BUFFER_LENGTH and is pulling in RingBuffer instead. RingBuffer uses a 64 byte buffer so re-defining BUFFER_LENGTH of 32 is safe but less than the actual buffer size of 64.

        I’ve updated the MAX3010x library to define the I2C_BUFFER_LENGTH correctly based on the platform being used. The library should be updated in 24 hours (or however long Arduino takes to pull in lib updates). You can see the changes here in the mean time.

        • Thank you very much Nate. Now it is working. One more question, In the code of SPO2, I have this error: maxim_heart_rate_and_oxygen_saturation(irBuffer, bufferLength, redBuffer, &spo2, &validSPO2, &heartRate, &validHeartRate); ^ exit status 1 cannot convert ‘uint16_t {aka short unsigned int}’ to ‘uint32_t {aka long unsigned int}’ for argument ‘1’ to ‘void maxim_heart_rate_and_oxygen_saturation(uint32_t, int32_t, uint32_t, int32_t, int8_t, int32_t, int8_t)’

          • Fixed pushed to github. The SpO2 algorithm is largely untested and is heavily based on Maxim’s code. I tweaked it to work with in Arduino v1.6.xx but left out an important define that declares the sensor arrays as 32-bit for platforms (SAMD21) that can handle it. Should work now.

Customer Reviews

No reviews yet.

Related Tutorials

MAX30105 Particle and Pulse Ox Sensor Hookup Guide

December 1, 2016

The SparkFun MAX30105 Particle Sensor is a flexible and powerful sensor enabling sensing of distance, heart rate, particle detection, even the blinking of an eye. Get ready. Set. Shine!