MATLAB Answers

Modeling accelerometer and gyroscope in simulink

75 views (last 30 days)
chfakht chfakht
chfakht chfakht on 22 Jan 2015
Commented: fatima zohra soussi on 29 Aug 2020 at 12:21
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 :)


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

Sign in to comment.

Answers (2)

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.


Show 1 older comment
Hanani Puaad
Hanani Puaad on 30 Oct 2016
im trying to simulate mpu6050 using matlab too. Ankitkumar, how did u simulate it in simulink?
shreyas joshi
shreyas joshi on 26 Oct 2017
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.
fatima zohra soussi
fatima zohra soussi on 29 Aug 2020 at 12:16
Ankitkumar please can you help me i went also modele MPU6050 in simulink please if you can give me your email i went to understand how please

Sign in to comment.

Behnam Mohammad
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

  1 Comment

fatima zohra soussi
fatima zohra soussi on 29 Aug 2020 at 12:21
Behnam Mohammad are you modeling the mpu6050 if yes can you help me please

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by