Skip to content

Commit 9e64938

Browse files
committed
(37955a0af338bf5b6457d580dd816208dafa7278) on Friday, November 7, 2025 4:01:34 PM
1 parent e671f22 commit 9e64938

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
<img alt="Microchip Logo." src="images/microchip_logo_black_red.png">
55
</picture>
66

7-
# MATLAB/Simulink Model for I2C Peripheral Example: Curiosity Platform Development Board, dsPIC33AK128MC106 Curiosity GP DIM and MPU9250
7+
# MATLAB/Simulink Model for I2C Peripheral Example: Roll and Pitch Angles Esitimation using Curiosity Platform Development Board, dsPIC33AK128MC106 Curiosity GP DIM and MPU9250
88

99
## 1. INTRODUCTION
1010

1111
This document describes the setup requirements for demonstration of I2C communication on the hardware platform
1212
[EV74H48A](https://www.microchip.com/en-us/development-tool/EV74H48A) "Curiosity Platform Development Board" and [EV02G02A](https://www.microchip.com/en-us/development-tool/EV02G02A) "dsPIC33AK128MC106 General Purpose Dual In-Line Module (DIM)" using MPU9250 sensor on the MPU 9DOF Click Board.</p>
1313

14-
MPU-9250 is a multi-chip module (MCM) with 9-axis MotionTracking device that combines a 3-axis gyroscope, 3-axis accelerometer, 3-axis magnetometer and a Digital Motion Processor™ (DMP).
14+
MPU-9250 is a multi-chip module (MCM) with 9-axis MotionTracking device that combines a 3-axis gyroscope, 3-axis accelerometer, 3-axis magnetometer and a Digital Motion Processor™ (DMP). This example exclusively uses 3-axis gyroscope, and the 3-axis accelerometer to estimate the roll and pitch angles.
1515

1616
## 2. SUGGESTED DEMONSTRATION REQUIREMENTS
1717

@@ -31,8 +31,8 @@ To clone or download this MATLAB model on GitHub,
3131
- Simulink Coder (v24.2)
3232
- MATLAB Coder (v24.2)
3333
- Embedded Coder (v24.2)
34-
- MPLAB Device blocks for Simulink (v3.59)
35-
- Motor Control Blockset (v24.2)
34+
- MPLAB Device blocks for Simulink (v3.62)
35+
- Motor Control Blockset (v24.2)
3636
> **_NOTE:_**
3737
>The software tools used for testing the model during release is listed above. It is recommended to use the version listed above or later versions for building the model.
3838
@@ -74,7 +74,7 @@ This section describes the hardware setup required for the demonstration.
7474
<p align="left" >
7575
<img src="images/dem1.png"width="500"></p>
7676

77-
3. Double click on the I2C example Simulink model - **curiosity_i2c.slx**. This opens the Simulink model as shown below.
77+
3. Double click on the I2C example Simulink model - **curiosity_i2c_pitch_roll.slx**. This opens the Simulink model as shown below.
7878

7979
<p align="left">
8080
<img src="images/dem3.png"width="500"></p>
@@ -120,7 +120,7 @@ This section describes the hardware setup required for the demonstration.
120120
<img src="images/led_rgb.png"width="500"></p>
121121
</p>
122122

123-
9. <p style='text-align: justify;'> To view the I2C communication from <b>"MPU9250" </b> double click on the scope. This opens the scope view. Tilt or turn the development board by hand to view variations in the signal from the <b>accelerometer, gyroscope and magnetometer sensors of MPU9250</b>.
123+
9. <p style='text-align: justify;'> To view the estimated roll and ptch angle from the <b>accelerometer, gyroscope sensors of MPU9250</b> double click on the scope. This opens the scope view. Tilt or turn the development board by hand to view variations in the roll and pitch angles.
124124

125125
<p align="left">
126126
<img src="images/dem9.png"width="500"></p>
@@ -132,6 +132,8 @@ This section describes the hardware setup required for the demonstration.
132132
<img src="images/dem10.png"width="500"></p>
133133
</p>
134134

135+
> **Note:** </br>
136+
>Ensure that at startup, the **development board** and **MPU9250** remain static and level for about 2 seconds for calibration. After calibration, the board can be tilted or rotated to observe angle variations.
135137
136138
## REFERENCES:
137139
For more information, refer to the following documents or links.

images/dem1.png

1.38 KB
Loading

images/dem3.png

-2.97 KB
Loading

images/dem9.png

-77.9 KB
Loading
163 KB
Binary file not shown.

project/docs/README.pdf

-90.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)