How can i read MPU6050 (accelerometer/gyroscope) using a simulink and ccs 3.3 in a GUI?
3 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148038/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148039/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148042/image.jpeg)
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/148043/image.png)
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 个评论
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/188686/image.jpeg)
回答(3 个)
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
0 个评论
Mohamed Osama Abozaid
2017-12-5
I'am trying to access the drobbox file and it's not there Please add it again.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!