Problem with Simulink + Arduino Uno

6 visualizaciones (últimos 30 días)
Ignacio Gallego
Ignacio Gallego el 8 de En. de 2016
Editada: Pam Re Lo el 21 de Jun. de 2019
So, i have a real system "Ball and Beam" with 2 sensors of distance and 1 servo motor. What i want to do is to use an Arduino Uno board to read the analog inputs of my sensors and to write the position of the servomotor. This is just what i want arduino does.
At the same time i do a simulink model to process all algorithms because the memory of the arduino is not enough. I think (I am trying it) that i have to use the "External Mode" of Simulink to this.
I have created a subsystem that reads the sensors and send the position to servomotor, just like an I/O interface and i have deployed this subsystem to the Arduino, and it works.
The problem comes when i want to run the hole model in simulink (i supose that the processor of the computer has to do this work), it seems that Arduino is trying to run the hole model because it sends this message: "Not enough memory on target to run this packet:SET_EXTPARAM"
Can anyone help me?
Sorry for my bad english
  1 comentario
Kartheek Suresh
Kartheek Suresh el 16 de Nov. de 2016
Hey did you find solution around this problem! Do u mind sharing it :)

Iniciar sesión para comentar.

Respuesta aceptada

Greg Drayer
Greg Drayer el 8 de En. de 2016
Hola Ignacio. Podemos hablar en español. Por favor explica un poco más lo que quieres decir con:
"At the same time i do a simulink model to process all algorithms because the memory of the arduino is not enough. I think (I am trying it) that i have to use the "External Mode" of Simulink to this."
Arduino UNO tiene sólo 32 KB, por lo que su capacidad para ejecutar modelos de Simulink en "External mode" es limitada.
¿Cuál versión (release) de MATLAB estás usando?
  4 comentarios
Marian Serna Imbachi
Marian Serna Imbachi el 13 de Jun. de 2018
encontraste alguna solución ?.
Pam Re Lo
Pam Re Lo el 21 de Jun. de 2019
Editada: Pam Re Lo el 21 de Jun. de 2019
Hola. Serìa de mucha ayuda que compartas si lograste solucionar tu problema, ya que me pasò algo parecido.
Estoy controlando la velocidad de giro de un motor, con un arduino Uno como interface, y con simulink. Ahi lo estoy sometiendo a distintas referencias. En simulink puse bloques de fuentes Seno , rampla, y Constante , otros bloques de Gain, ademàs de Scopes y algunos Display, Bloque PWM y Analog Input.
De ante mano gracias.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by