LSM303C IMU Sensor
R2026bMeasure linear acceleration, magnetic field strength, and temperature from LSM303C sensor
Libraries:
Simulink Support Package for Arduino Hardware /
Sensors
Description
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
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 Arduino board. The block also outputs the temperature as read by the LSM303C sensor.
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.
"arduinosensorlib/LSM303C IMU Sensor"
Example: add_block("arduinosensorlib/LSM303C IMU Sensor","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2021a