Arduino 9 axes motion shield not working on simulink with arduino mega board.

7 visualizaciones (últimos 30 días)
ALEE
ALEE el 13 de Abr. de 2025
Comentada: ALEE el 16 de Jul. de 2025
Hi.. I would like to explain my problem.. I had a full working simulink model using arduino mega and arduino 9 axes motion shield on matlab 2019/2020.. now I have new purchases of the same arduino mega and arduino 9 axis motion shield and I am trying to operate them with the same model (all supporting arduino packages are properly installed). The mega board is working and detected but the 9 axis motion shield is not recognised and all readings are zeros and status spits out -1.
Any help would be appreciated as I can see that I miight need to do extra setting for the boards in the model preferences but I cannot figure out from where to start.

Respuestas (1)

Dhruv
Dhruv el 14 de Jul. de 2025
Hi @ALEE,
I would suggest following the approach highlighted in the below MATLAB Answers Post:
For more information on “bno055” function, you may refer to the below documentation:
I hope this helps!
  1 comentario
ALEE
ALEE el 16 de Jul. de 2025
Hi @Dhruv, Thank you for your answer.. As per the first link, you can check that I already have a question there expalining the issue I have (and still having).
for the second link, I shall try the steps again. I also develped some code in matlab trying to read something from the Arduino 9 axis motion shield (based on BnO055), but I still believe that there is some conflicts in the matlab built-in library for this particular shield.
If you have some knowledge about how to create a custom library for it in simulink, I' would be so grateful.
Regards

Iniciar sesión para comentar.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by