How can i read MPU6050 (accelerom​eter/gyros​cope) using a simulink and ccs 3.3 in a GUI?

8 ビュー (過去 30 日間)
Alfredo GD
Alfredo GD 2015 年 8 月 13 日
編集済み: Canberk Suat Gurel 2018 年 3 月 25 日
Hi, im trying to see the registers value in real time or the value of the MPU6050 via RTDX using simulink
I wanna make a GUI, or use a scope or display in simulink to read the data in real time using RTDX but when i tried doesnt work
when i compilate using the ccs 3.3 without the block of rtdx works fine but i dont know if is reading the data of the MPU6050, for that reason i need put something to see the datas in real time, i put the rtdx to try to see in a GUI but when i put the rtdx block appear the next error in the ccs 3.3.
inside of the block can see that the type of data are single, can i use a scope or display? when i tried, doesnt work
i will put all the programs in that link, have a pdf with examples, the programs that im using, have a .m with all the registers that need execute in the workspace of matlab before to compilate in simulink, a GUI that i try to make... https://www.dropbox.com/s/ksregwucy13g6bu/MPU-6050.rar?dl=0
im using: Simulink (matlab 2012a), Ccs 3.3 (Code Composer Studio, Embedded code library of Texas Instrument), F28027 C2000 Piccolo Launchpad
  2 件のコメント
Hamadou meroua
Hamadou meroua 2018 年 3 月 18 日
hello, please can you tell me how can i get the i2c block ?
Canberk Suat Gurel
Canberk Suat Gurel 2018 年 3 月 25 日
編集済み: Canberk Suat Gurel 2018 年 3 月 25 日
Click on "Get Add-Ons" in the Home pane. Then search for i2c and install the relevant package. The i2c block will appear in your Simulink Library Browser.

サインインしてコメントする。

回答 (3 件)

Alfredo GD
Alfredo GD 2015 年 8 月 15 日
Anyone can help?

jifeng rgj
jifeng rgj 2015 年 9 月 21 日
Hi, Your model make a great help to me. I will help you with your question. you can use the Graph in the CCS to see the signal. (1)Add a Buffer Block to the signal in the model; (2)Run the project,Select View---Graph---Time/Frequecy; (3)In the Dialog, Set the Start Address as "&XXXX_Y.XXX",DSP Data Type to "32 float".etc

Mohamed Osama Abozaid
Mohamed Osama Abozaid 2017 年 12 月 5 日
I'am trying to access the drobbox file and it's not there Please add it again.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by