BMM150
Libraries:
C2000 Microcontroller Blockset /
Sensors
Description
The BMM150 block outputs the values of magnetic field along x-, y- and z- axes as measured by the BMM150 sensor connected to C2000 board.
Examples
Read Data from IMU and Environmental Sensors
Use C2000™ Microcontroller Blockset to read data from the BMI160 Inertial Measurement Unit (IMU) sensor and BME280 Environmental sensor that are part of the BOOSTXL-SENSORS BoosterPack™ plug-in module.
Ports
Output
Magnetic field strength (in µT) measured by a BMM150 sensor connected to C2000 board, along the x-, y- and z- axes, specified as a row vector [x,y,z].
Data Types: double
Status of magnetic field 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 C2000 processors. You can find the supported I2C modules corresponding to the processor (which you selected for the Hardware Board parameter in the Simulink model) by opening the Configuration Parameters dialog box and checking the I2C specific tabs under Target hardware resources.
The I2C address used by BMM150 sensor communicating with the C2000 processor. The
default parameter value (0x13
) corresponds to the value mentioned in
the Schematics
section of the BOOSTXL-SENSORS
BoosterPackTM Plug-in Module User's Guide.
Select this parameter to set Magnetic Field Status as one of the output ports.
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.
Specify the output data type for the values read from BMM150 sensor. The default
data type for TI’s C2000™ processors is single
. Use this parameter to change the
values to double
, if required.
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.
Version History
Introduced in R2021b
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.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- 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)