Component: Air Quality (BME688) (Environmental): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 202: | Line 202: | ||
{| class="mtx-class-macrotable 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%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | ||
|- | |- | ||
Revision as of 14:20, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | Environmental |
Air Quality (BME688) component
An air quality sensor connected using a standard I2C bus. Capable of detecting indoor and outdoor air quality including CO2 H2 VOCs and VSCs.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_BME688_AirQualitySensor.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_BME688_AirQualitySensor.fcfx
Detailed description
Examples
Macro reference
Initialise
| Initialise | |
| Initialises the I2C bus and sets up the device ready for operation. Returns 1 if the device has been found and is communicating. | |
| Return | |
PerformGasResistanceCycle
ReadGasResistance
| ReadGasResistance | |
| Reads the resistance of the gas in ohms from the last heating cycle. | |
| Return | |
ReadHumidity
| ReadHumidity | |
| Collects the humidity and returns as a floating point value in percent. | |
| Index | |
| Forced Mode = 0 / Parallel Mode = 0-2 | |
| Return | |
ReadPressure
| ReadPressure | |
| Collects the pressure and returns as a floating point value in pascal. | |
| Index | |
| Forced Mode = 0 / Parallel Mode = 0-2 | |
| Return | |
ReadRegister
| ReadRegister | |
| A simple example showing a generic way to read a register using I2C. | |
| Address | |
| Return | |
ReadTemperature
| ReadTemperature | |
| Collects the temperature and returns as a floating point value in degrees C. | |
| Index | |
| Forced Mode = 0 / Parallel Mode = 0-2 | |
| Return | |
SetMode
| SetMode | |
| Sets the mode of the sensor to low power sleep, forced or parallel | |
| Mode | |
| 0=Sleep, 1=Forced, 2=Parallel | |
| Return | |
WriteRegister
| WriteRegister | |
| A simple example showing a generic way to write a register using I2C. | |
| Address | |
| Data | |
| Return | |