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

19 views (last 30 days)
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 Comments
Canberk Suat Gurel
Canberk Suat Gurel on 25 Mar 2018
Edited: Canberk Suat Gurel on 25 Mar 2018
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.

Sign in to comment.

Answers (3)

Alfredo GD
Alfredo GD on 15 Aug 2015
Anyone can help?

jifeng rgj
jifeng rgj on 21 Sep 2015
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 on 5 Dec 2017
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!