Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xcoder123/MAX30100
Driver for MAX30100 using arduino
https://github.com/xcoder123/MAX30100
Last synced: about 1 month ago
JSON representation
Driver for MAX30100 using arduino
- Host: GitHub
- URL: https://github.com/xcoder123/MAX30100
- Owner: xcoder123
- License: mit
- Created: 2017-03-08T19:25:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-07T14:37:20.000Z (over 5 years ago)
- Last Synced: 2024-08-28T18:15:14.209Z (5 months ago)
- Language: C++
- Size: 13.7 KB
- Stars: 105
- Watchers: 11
- Forks: 32
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# MAX30100
Driver for MAX30100 using arduinoThis code is part of tutorial on my blog: https://morf.lv/implementing-pulse-oximeter-using-max30100
# Sample Usage
```
#include "MAX30100.h"MAX30100* pulseOxymeter;
void setup() {
Wire.begin();
Serial.begin(115200);
Serial.println("Pulse oxymeter test!");//pulseOxymeter = new MAX30100( DEFAULT_OPERATING_MODE, DEFAULT_SAMPLING_RATE, DEFAULT_LED_PULSE_WIDTH, DEFAULT_IR_LED_CURRENT, true, true );
pulseOxymeter = new MAX30100();
pinMode(2, OUTPUT);}
void loop() {
//You have to call update with frequency at least 37Hz. But the closer you call it to 100Hz the better, the filter will work.
pulseoxymeter_t result = pulseOxymeter->update();
if( result.pulseDetected == true )
{
Serial.println("BEAT");
Serial.print( "BPM: " );
Serial.print( result.heartBPM );
Serial.print( " | " );
Serial.print( "SaO2: " );
Serial.print( result.SaO2 );
Serial.println( "%" );
}
}
```