MPU6050 IMU Sensor
Measure acceleration, angular rate, and temperature along axes of MPU-6050 sensor
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Libraries:
Simulink Support Package for Arduino Hardware /
Sensors
Description
The MPU6050 IMU Sensor block reads data from the MPU-6050 sensor that is connected to the hardware.
The block outputs acceleration, angular rate, and temperature along the axes of the
sensor. The block outputs acceleration and angular rate as a
3-by-n
double-precision array, where
n
is the value specified as Samples per frame. The temperature
data is output as a scalar double.
Note
The output from the MPU-6050 sensor may have a finite non-negligible offset value
except for the Temperature
output. You
may consider correcting this offset value for such cases.
This diagram shows the default orientation of the x-, y-, and z-axes of the MPU-6050 sensor.
If you simulate a model that contains the MPU6050 IMU Sensor block without connecting it to the hardware, the block outputs zeros. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Ports
Output
Parameters
Version History
Introduced in R2020a