File Exchange

image thumbnail

Arduino MPU9150 Driver

version 1.0.0.0 (29 KB) by Techsource Technical Team
Visualize signals from MPU9150 in Simulink

10 Downloads

Updated 14 Jul 2016

View License

By Esther Ling, Edu Engineer.
A driver block written using the S-Function builder to stream accelerometer and gyro values from the IMU MPU9150 into Simulink. Connect the IMU to an Arduino Mega and run in external mode.

Complements the blog post:
https://dashboardproject.wordpress.com/2016/03/25/configuring-mpu-9150-arduino-and-matlab/

Cite As

Techsource Technical Team (2020). Arduino MPU9150 Driver (https://www.mathworks.com/matlabcentral/fileexchange/58221-arduino-mpu9150-driver), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

AFETTOUCHE Massinissa

Hello I'm inspired with your code; I'm working with arduino UNO and seed studio canbus shield (SPI communication). I done the acquisition with succes in matlab but I want to do it in simulink and I don't knew if the code you provide here will be useful.
I tryed to use Serial receive block to communicate with the Arduino and the SPI block to communicate both arduino end the sheild but it doesn't work .
So what I want to knew is that :
when we communicate an arduino in simulink, we should to do an sFunction and programm all the necessar libraries to do the acquisition?
Or we have juste to programm the arduino in arduino IDE and then use tour programm to do generate the C file in simmulink ????

dgmcik

dgmcik

carlos andres

Updates

1.0.0.0

Updated description.

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux