Component: Barometer (DPS310) (Environmental): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 90: | Line 90: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ConfigurePressure''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ConfigurePressure''' | ||
|- | |- | ||
| Line 114: | Line 114: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ConfigureTemperature''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ConfigureTemperature''' | ||
|- | |- | ||
| Line 138: | Line 138: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' | ||
|- | |- | ||
| Line 152: | Line 152: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAltitude''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAltitude''' | ||
|- | |- | ||
| Line 166: | Line 166: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPressure''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPressure''' | ||
|- | |- | ||
| Line 180: | Line 180: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRegister''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadRegister''' | ||
|- | |- | ||
| Line 199: | Line 199: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature''' | ||
|- | |- | ||
| Line 213: | Line 213: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleSensor''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleSensor''' | ||
|- | |- | ||
| Line 227: | Line 227: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMode''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMode''' | ||
|- | |- | ||
| Line 246: | Line 246: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRegister''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteRegister''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Environmental |
Barometer (DPS310) component
A barometric air pressure sensor with high accuracy and low current consumption. Capable of sensing air pressure and temperature. Based on an I2C bus connection.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Pressure_Sensor_DPS310.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Pressure_Sensor_DPS310.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ConfigurePressure
ConfigureTemperature
Initialise
| Initialise | |
| Starts up the I2C ready to communicate with the sensor. Sets the selected rates and operational mode. Returns 1 if the sensor has been found and initialised. | |
| Return | |
ReadAltitude
| ReadAltitude | |
| Reads the pressure measurement from the last SampleSensor macro and converts the pressure reading into an altitude reading. | |
| Return | |
ReadPressure
| ReadPressure | |
| Reads the pressure measurement from the last SampleSensor macro | |
| Return | |
ReadRegister
| ReadRegister | |
| Reads a byte from a register | |
| Address | |
| Return | |
ReadTemperature
| ReadTemperature | |
| Reads the temperature measurement from the last SampleSensor macro | |
| Return | |
SampleSensor
SetMode
| SetMode | |
| Sets the operational mode of the sensor to be continous or one shot | |
| Mode | |
| Return | |
WriteRegister
| WriteRegister | |
| Writes a byte to a register | |
| Address | |
| Data | |
| Return | |