MATLAB Answers


Modeling accelerometer and gyroscope in simulink

Asked by chfakht chfakht on 22 Jan 2015
Latest activity Answered by Behnam Mohammad on 13 Mar 2018
Hi everyone , i'm working on a tracking system project that will localise people inside a building during their mouvements using the IMU : inertial measurement unit (gyroscope + accelerometer) , and i have chosen the kalman filter algorithm to read the output of the IMU and estimate and update the actual position
i need if it possible a module in simulink that simulate the gyroscope and accelerometer and also how to implement the algorthm using kalman filter
thanks in advance :)


Good question. Are you planning on using an arduino to interface with the gyroscope ?
YES , in the beginning i need a model that simulate the IMU : gyroscope + accelerometer thnks
the model will be deployed in the final stage to the arduino for real time data acquisition

Sign in to comment.

2 Answers

Answer by Ankitkumar on 16 Mar 2016

It is possible to model accelerometer and gyroscope in SIMULINK. Just letme know which gyro you are using, then I may help you. Just now I have modeled MPU6050 in simulink.


I am trying to simulate the ADXL345 accelerometer and the L3G4200D gyroscope, if you could help that would be awesome! I wanted to use the aerospace software but unfortunately I do not have access to it
im trying to simulate mpu6050 using matlab too. Ankitkumar, how did u simulate it in simulink?
can you post the model of mpu6050 here? i am trying to model an IMU in simulink. i am using mpu6050 for the same. If possible, please post it here. It will be of great help to me.

Sign in to comment.

Answer by Behnam Mohammad on 13 Mar 2018

Hi there,
Is it possible to share your codes with me, the code you have used to model MPU6050 or ADXL335/345 ? I am a bit struggling to get the data separately through I2C using Arduino support in MATLAB and also getting analog data as well! I have gone and tried both way and haven't made any success!!
Thank you


Sign in to comment.