Measure acceleration, angular rate, magnetic field, and temperature along axes of MPU-9250 sensor
Simulink Support Package for Arduino Hardware / Sensors
The MPU9250 IMU Sensor block reads data from the MPU-9250 sensor that is connected to the hardware.
The block outputs acceleration, angular rate, strength of the magnetic field, and temperature along the axes of the sensor. The block outputs all the values except for temperature as a 3-by-1 double-precision array. The temperature data is output as a scalar double.
Note
The output from the MPU-9250 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-9250 sensor.
If you simulate a model that contains the MPU9250 block without connecting it to the hardware, the block outputs zeros. For more information, see Block Produces Zeros or Does Nothing in Simulation.