How can i read MPU6050 (accelerometer/gyroscope) using a simulink and ccs 3.3 in a GUI?
조회 수: 8 (최근 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
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
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개)
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!