LSM303C IMU Sensor
R2026bMeasure linear acceleration, magnetic field strength, and temperature from LSM303C sensor
Since R2022b
Libraries:
Raspberry Pi Blockset /
Sensors /
IMU Sensors
Description
The LSM303C IMU Sensor block outputs the values of linear acceleration and magnetic field strength along x-, y- and z- axes as measured by the LSM303C sensor connected to Raspberry Pi® board. The block also outputs the temperature as read by the LSM303C sensor.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiIMUsensorslib/LSM303C IMU Sensor"
Example: add_block("raspberrypiIMUsensorslib/LSM303C IMU Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022b
