How can I get the MPU9250 data in simulink with a raspberry pi?
Show older comments
Hi. I want to make a feedback controller with a raspberry pi. So I need to get the acceleration and angular velocity data from mpu9250. I can get the data in the matlab. But I can't get the data in the simulink because there is no mpu9250 block for the raspberry pi. There is only arduino mpu 9250 block. I tried to use the I2C read block, but I can't take valid data. And I tried to use matlab function block, this time I can get the data with matlab commands. But I can't use the matlab function block with other GPIO blocks. Because, when I use the matlab function block, I need to define raspberry pi with "raspi" command, and I think it is not possible to use "raspi" command with other GPIO block. How can I get the data from mpu9250 with my raspberry pi in simulink?
Accepted Answer
More Answers (0)
Categories
Find more on Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!