BMM150
Libraries:
NVIDIA Jetson and NVIDIA DRIVE /
Sensors /
IMU sensors
Description
Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.
The BMM150 block outputs the values of magnetic field along X, Y, and Z axes as measured by the BMM150 sensor connected to an NVIDIA® embedded board.
Ports
Output
Magnetic field strength in micro Tesla (µT) measured by a BMM150 sensor connected
to an NVIDIA embedded board, along the X, Y, and Z axes. The block outputs the
magnetic field as a 1-by-3 vector.
Data Types: double
Status of magnetic field reading. 0 indicates that the data
read is new and 1 indicates that the data read is not new.
Dependencies
This output port appears only if you select the Status parameter.
Data Types: int8
Parameters
The I2C module to be used for communication to the BMM150 sensor. The number of I2C modules supported varies across different NVIDIA embedded boards.
Programmatic Use
Block Parameter:
I2CModule
|
| Type: character vector |
Values:
''|positive integer |
Default:
'' |
The I2C address used by BMM150 sensor communicating with the an NVIDIA embedded board. The default parameter value (0x13)
corresponds to the I2C address used by the BOOSTXL-SENSORS
BoosterPack™ Plug-in Module.
Programmatic Use
Block Parameter:
I2CAddress
|
| Type: character vector |
Values:
'0x10'|'0x11'|'0x12'|'0x13' |
Default:
'0x13' |
Select this parameter to set Magnetic Field Status as one of the output ports.
Programmatic Use
Block Parameter:
Status |
| Type: character vector |
Values: 'on' |
'off' |
Default: 'on' |
Specify the preset value for the operating condition of BMM150 sensor while reading the values. The selection of one of the four preset values affects the electrical characteristics (like supply current) and the required output accuracy with respect to ODR and output noise.
Programmatic Use
Block Parameter:
MagnetometerPreset
|
| Type: character vector |
Values:
'Low
power'|'Regular'|'Enhanced'|'High
accuracy' |
Default:
'Low power' |
Specify the output data type for the values read from BMM150 sensor. The default
data type for an NVIDIA embedded boards is single. Use this parameter to change
the values to double, if required.
Programmatic Use
Block Parameter:
DataType
|
| Type: character vector |
Values:
'single'|'double' |
Default:
'single' |
Specify how often this block reads the data from the BMM150 sensor. When you set this parameter to -1, Simulink determines the best sample time for the block based on the block context within the model.
Programmatic Use
Block Parameter:
SampleTime
|
| Type: character vector |
| Values: scalar | vector |
Default:
'0.1'
|
Version History
Introduced in R2022b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)