Jump to content

Component: Pulse Oximeter (Max30100) (Environmental): Difference between revisions

From Flowcode Help
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
Line 224: Line 224:
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
Line 268: Line 268:
| colspan="2" | Baud rate to be used 
| colspan="2" | Baud rate to be used 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Sensor Defaults
| width="90%" class="mtx-class-propfolder" | Sensor Defaults
|-
|-
Line 297: Line 297:
| colspan="2" | Default current to drive the Red LED 
| colspan="2" | Default current to drive the Red LED 
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" class="mtx-class-propfolder" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-

Latest revision as of 14:36, 13 July 2026

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

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. 
- VOID Return


ReadIR

ReadIR
Returns one of the FIFO IR readings from the last update 
- UINT Return


ReadRed

ReadRed
Returns one of the FIFO Red readings from the last update 
- UINT Return


SetHighResModeEnabled

SetHighResModeEnabled
 
- BYTE Enabled
 
- VOID Return


SetLEDsCurrent

SetLEDsCurrent
 
- BYTE IR
Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA 
- BYTE Red
Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA 
- VOID Return


SetLEDsPulseWidth

SetLEDsPulseWidth
 
- BYTE PulseWidth
 
- VOID Return


SetSamplingRate

SetSamplingRate
 
- BYTE SampleRate
Range: 0-7 / 0=50Hz, 1=100Hz, .., 6=800Hz, 7=1000Hz 
- VOID Return


Update

Update
Reads the sensor FIFO buffer and stores the readings into local RAM. Returns the number of samples read. 
- BYTE Return


Property reference

Properties
Connections
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SDA Remap Pin
 
SCL
Pin used for SCL (clock signal) 
SCL Remap Pin
 
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.  
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
Sensor Defaults
Sample Rate
Sets the default sample rate 
Pulse Width
Sets the default pulse width and bit depth of the sensor measurements 
High Resolution Mode
Sets if the module defaults to high or low reolution mode 
IR LED Current
Default current to drive the IR LED 
Red LED Current
Default current to drive the Red LED 
Simulation
Simulate Comms
Allows the I2C communications to be simulated and interfaced via an API component to real world hardware.