WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

matlab and Arduino hardware problem

 

schweinebauch
Forum-Newbie

Forum-Newbie


Beiträge: 4
Anmeldedatum: 04.05.16
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 04.05.2016, 22:55     Titel: matlab and Arduino hardware problem
  Antworten mit Zitat      
hi guys i have simulated my theory with matlab, the controller was designed using PID controller, now i want to implement this theory in Arduino platform written in c++. my problem is implementing 5 non-holonomic agents to make a formation control. The matlab PID gains are shown in follwoing table, for hardware I just want to realize the same result that realized in matlab, so I want to know whether I should change the gains for hardware in matlab or not?
Private Nachricht senden Benutzer-Profile anzeigen


Jan S
Moderator

Moderator


Beiträge: 11.057
Anmeldedatum: 08.07.10
Wohnort: Heidelberg
Version: 2009a, 2016b
     Beitrag Verfasst am: 05.05.2016, 11:40     Titel: Re: matlab and Arduino hardware problem
  Antworten mit Zitat      
Dear schweinebauch,

Please note that we are not all "guys" and it is polite to acknoledge the female members also.

The mentioned table is not attached.

Zitat:
so I want to know whether I should change the gains for hardware in matlab or not?

This is a vague question and I cannot answer it. What about trying it and check if you obtain equivalent results?

Kind regards, Jan
Private Nachricht senden Benutzer-Profile anzeigen
 
schweinebauch
Themenstarter

Forum-Newbie

Forum-Newbie


Beiträge: 4
Anmeldedatum: 04.05.16
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 05.05.2016, 13:54     Titel: Re: matlab and Arduino hardware problem
  Antworten mit Zitat      
Sorry Jan, I do not know how to attach a figure, I also asked this question in Mathworks, you can check there, if you know the answer. THX.

https://de.mathworks.com/matlabcent.....-arduino-hardware-problem
Private Nachricht senden Benutzer-Profile anzeigen
 
Jan S
Moderator

Moderator


Beiträge: 11.057
Anmeldedatum: 08.07.10
Wohnort: Heidelberg
Version: 2009a, 2016b
     Beitrag Verfasst am: 05.05.2016, 22:11     Titel: Re: matlab and Arduino hardware problem
  Antworten mit Zitat      
Hi schweinebauch,

Attaching the figure is not the problem. I think your question contains to few information to be answered.

Kind regards, Jan
Private Nachricht senden Benutzer-Profile anzeigen
 
schweinebauch
Themenstarter

Forum-Newbie

Forum-Newbie


Beiträge: 4
Anmeldedatum: 04.05.16
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 06.05.2016, 09:21     Titel:
  Antworten mit Zitat      
hi Jan

can you tell me why my question is vague? I can clarify my question if you have any confussng?
Private Nachricht senden Benutzer-Profile anzeigen
 
Jan S
Moderator

Moderator


Beiträge: 11.057
Anmeldedatum: 08.07.10
Wohnort: Heidelberg
Version: 2009a, 2016b
     Beitrag Verfasst am: 06.05.2016, 10:53     Titel: Re: matlab and Arduino hardware problem
  Antworten mit Zitat      
Dear schweinebauch,

Zitat:
the controller was designed using PID controller

What does this exactly mean? Did you do this in Matlab and programmed your own PID controller or is this implemented in Simulink?

Zitat:
now i want to implement this theory in Arduino platform written in c++

Should this be performed automatically based on the Matlab or Simulink model? Or do you want to program this from scratch? Note that "theories" cannot be implemented, just algorithms. This might be nitpicking, but remember that the readers do not have the faintest idea about what you are doing.

Zitat:
my problem is implementing 5 non-holonomic agents to make a formation control.

I assume the terms are clear for all scientists, who are working exactly in the same field as you. You reach mot readers in the forum, if you provide more information.

Zitat:
The matlab PID gains are shown in follwoing table,

On one hand there is no table. On the other hand, it is not clear to me, why the values of the parameters concern the question. If you implement an algorithm, I assume that these parameters are variables and can be set as requiered. So what exactly is the problem?

Zitat:
for hardware I just want to realize the same result that realized in matlab

How exact do you expect the results to be "the same"? There will be a difference due to numerical reasons.

Zitat:
so I want to know whether I should change the gains for hardware in matlab or not?

What are "gains for hardware"? What is the connection between implementing the controller for the hardware and the adjustment of the gain factors?

What have you tried so far to solve your problem? Do you have some code or perhaps a Simulink model?

You see, currently I cannot recognize what your actual question is. If it only concerns, whether you should "change the gains", it sounds like you can try it: Perform a measurement with and without changing and examine what happens.

Of course I assume that other scientists understand more of your problem, when they are familiar with your field. But it does not seem like they are easy to find. Therefore I suggest to improve the question and provide more explicit details.

Kind regards, Jan
Private Nachricht senden Benutzer-Profile anzeigen
 
Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2025 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.