Jump to content

Component: Barometer (BMP280 / Grove 101020192) (101020192) (Environmental)

From Flowcode Help
Author Matrix TSL
Version 8.0
Category Environmental


Barometer (BMP280 / Grove 101020192) component

Barometric pressure sensor with a I2C bus interface. Pressure range 300 to 1100 hPa. Temperature range -40 to +85 ?C.

Version information

Library Version, Component Version, Date, Author, Info
7,7.0, 27-06-24, MW, Fixed ReadPressureFloatSim as Get and Read value was set to (2).
7,7.0, 27-06-24, MW, Removed all  references to humidity as not present within BMP280.
8,8.0, 27-06-24, MW, Added Ev_initialise API, setting the pressure of the library sensor to an inital value of 300.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

Altitude

Altitude
Calculates the altitude based on difference between actual pressure and the pressure at the sea level P0=1013.25 hPa.  
- FLOAT Return


Forced_Read

Forced_Read
 
- VOID Return


I2C_Read_Register

I2C_Read_Register
Reads a byte value from a register on the device 
- BYTE Address
 
- BYTE Return


I2C_Write_Register

I2C_Write_Register
Writes a byte value to a register on the device 
- BYTE Address
 
- BYTE Value
 
- VOID Return


Initialise

Initialise
Starts up the I2C bus and initialises the pressure sensor ready for use. Returns 1 for a sucessful startup. Returns 0 for a failed startup or no device detected. 
- BYTE Return


ReadPressureFloat

ReadPressureFloat
Reads the pressure as a floating point value in Bars. Calls the ReadPressureRaw function and then converts to a meaningful value. 
- FLOAT Return


ReadTemperatureFloat

ReadTemperatureFloat
Reads the temperature as a floating point value in °C. Resultion sets the return bit value and conversion time. Calls the ReadTemperatureRaw function and then converts to a meaningful value. 
- FLOAT Return


Reset

Reset
Resets the device 
- VOID Return


Property reference

Properties
I2C Properties
Slave Address
 
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SCL
Pin used for SCL (clock signal) 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
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.  
Sensor Properties
Compensation
Compensation formulas in double precision floating point or 32 bit fixed point 
Pressure Oversampling
 
Temperature Oversampling
 
Mode
 
Standby Normal Mode (ms)
 
Filter Coefficient
 
Simulation
Simulate Comms
Allows the simulation data to come from the panel GUI or relayed via an injector component. 

Component Source Code

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

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