Component: Pulse Oximeter (Max30100) (Environmental): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx] | ||
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx FC_Comp_Source_Max30100_Pulse_Oximeter.fcfx] | ||
==Detailed description== | ==Detailed description== | ||
| Line 64: | Line 64: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| Line 74: | Line 80: | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 88: | Line 94: | ||
===ReadIR=== | ===ReadIR=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadIR''' | ||
|- | |- | ||
| colspan="2" | Returns one of the FIFO IR readings from the last update | | colspan="2" | Returns one of the FIFO IR readings from the last update | ||
| Line 102: | Line 108: | ||
===ReadRed=== | ===ReadRed=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRed''' | ||
|- | |- | ||
| colspan="2" | Returns one of the FIFO Red readings from the last update | | colspan="2" | Returns one of the FIFO Red readings from the last update | ||
| Line 116: | Line 122: | ||
===SetHighResModeEnabled=== | ===SetHighResModeEnabled=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetHighResModeEnabled''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 135: | Line 141: | ||
===SetLEDsCurrent=== | ===SetLEDsCurrent=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetLEDsCurrent''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 159: | Line 165: | ||
===SetLEDsPulseWidth=== | ===SetLEDsPulseWidth=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetLEDsPulseWidth''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 178: | Line 184: | ||
===SetSamplingRate=== | ===SetSamplingRate=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetSamplingRate''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 197: | Line 203: | ||
===Update=== | ===Update=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Update''' | ||
|- | |- | ||
| colspan="2" | Reads the sensor FIFO buffer and stores the readings into local RAM. Returns the number of samples read. | | colspan="2" | Reads the sensor FIFO buffer and stores the readings into local RAM. Returns the number of samples read. | ||
| Line 208: | Line 214: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 264: | Line 268: | ||
| colspan="2" | Baud rate to be used | | colspan="2" | Baud rate to be used | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Sensor Defaults | ||
|- | |- | ||
|- | |- | ||
| Line 293: | Line 297: | ||
| colspan="2" | Default current to drive the Red LED | | colspan="2" | Default current to drive the Red LED | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | 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
ReadIR
| ReadIR | |
| Returns one of the FIFO IR readings from the last update | |
| Return | |
ReadRed
| ReadRed | |
| Returns one of the FIFO Red readings from the last update | |
| Return | |
SetHighResModeEnabled
| SetHighResModeEnabled | |
| Enabled | |
| Return | |
SetLEDsCurrent
| SetLEDsCurrent | |
| IR | |
| Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA | |
| Red | |
| Range: 0-15 / 0=0mA, 1=4mA, .., 14=46mA, 15=50mA | |
| Return | |
SetLEDsPulseWidth
| SetLEDsPulseWidth | |
| PulseWidth | |
| Return | |
SetSamplingRate
| SetSamplingRate | |
| SampleRate | |
| Range: 0-7 / 0=50Hz, 1=100Hz, .., 6=800Hz, 7=1000Hz | |
| Return | |
Update
| Update | |
| Reads the sensor FIFO buffer and stores the readings into local RAM. Returns the number of samples read. | |
| Return | |