Component: Pulse Oximeter (Max30100) (Environmental)

From Flowcode Help
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Environmental


Pulse Oximeter (Max30100) component

Sensor designed to monitor heart rate and pulse omimetry. Connected using an I2C bus.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples







Macro reference

Initialise

Fc9-comp-macro.png Initialise
Sets up the I2C bus ready for communications with the sensor IC. Must be called once before calling any of the other component macros. Applies the defauilt settings from the component properties. 
Fc9-void-icon.png - VOID Return


ReadIR

Fc9-comp-macro.png ReadIR
Returns one of the FIFO IR readings from the last update 
Fc9-u16-icon.png - UINT Return


ReadRed

Fc9-comp-macro.png ReadRed
Returns one of the FIFO Red readings from the last update 
Fc9-u16-icon.png - UINT Return


SetHighResModeEnabled

Fc9-comp-macro.png SetHighResModeEnabled
 
Fc9-u8-icon.png - BYTE Enabled
 
Fc9-void-icon.png - VOID Return


SetLEDsCurrent

Fc9-comp-macro.png SetLEDsCurrent
 
Fc9-u8-icon.png - BYTE IR
Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA 
Fc9-u8-icon.png - BYTE Red
Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA 
Fc9-void-icon.png - VOID Return


SetLEDsPulseWidth

Fc9-comp-macro.png SetLEDsPulseWidth
 
Fc9-u8-icon.png - BYTE PulseWidth
 
Fc9-void-icon.png - VOID Return


SetSamplingRate

Fc9-comp-macro.png SetSamplingRate
 
Fc9-u8-icon.png - BYTE SampleRate
Range: 0-7 / 0=50Hz, 1=100Hz, .., 6=800Hz, 7=1000Hz 
Fc9-void-icon.png - VOID Return


Update

Fc9-comp-macro.png Update
Reads the sensor FIFO buffer and stores the readings into local RAM. Returns the number of samples read. 
Fc9-u8-icon.png - BYTE Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
Channel selection 
Fc9-type-5-icon.png SDA
Pin used for SDA (data signal) 
Fc9-type-16-icon.png SDA Remap Pin
 
Fc9-type-5-icon.png SCL
Pin used for SCL (clock signal) 
Fc9-type-16-icon.png SCL Remap Pin
 
Fc9-type-7-icon.png Stop Delay
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. Most modern microcontrollers will not have a problem so this property can be disabled to speed up the I2C communications.  
Fc9-type-16-icon.png Baud Select
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
Baud rate to be used 
Fc9-conn-icon.png Sensor Defaults
Fc9-type-16-icon.png Sample Rate
Sets the default sample rate 
Fc9-type-16-icon.png Pulse Width
Sets the default pulse width and bit depth of the sensor measurements 
Fc9-type-7-icon.png High Resolution Mode
Sets if the module defaults to high or low reolution mode 
Fc9-type-16-icon.png IR LED Current
Default current to drive the IR LED 
Fc9-type-16-icon.png Red LED Current
Default current to drive the Red LED 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Simulate Comms
Allows the I2C communications to be simulated and interfaced via an API component to real world hardware.