This is the part two of the project: “interfacing L298N with arduino using matlab GUI”. In this part of the tutorial, we are going to make required GUI for our project.
So as I mentioned in the last tutorial, In this part of the project we are going to make required GUI through which we can give commands to Arduino. Now our Aim is to control each motor individually as well as simultaneously. For this purpose we need two push button for each individual motor to rotate them in both directions. And two extra push button to run them simultaneously. That gives us a total of 6 push buttons.
Watch video version of this part of project for better understanding:
Objective is to Create this GUI on Matlab: (How to create GUI on Matlab)
A. PUSHBUTTONS
For Left Motor OR Left Column:
TOP PUSHBUTTON
String name= “M1 fwd”
Tag name= “M1F”
BOTTOM PUSHBUTTON
String name= “M1 back”
Tag name= “M1B”
For Right Motor OR Right Column:
TOP PUSHBUTTON
String name= “M2 fwd”
Tag name= “M2F”
BOTTOM PUSHBUTTON
String name= “M2 back”
Tag name= “M2B”
For Middle column:
TOP PUSHBUTTON
String name= “FWD”
Tag name= “FWD”
BOTTOM PUSHBUTTON
String name= “BWD”
Tag name= “BWD”
B. EDIT TEXT BOXES:
LEFT :
String name= ” “
Tag name= “edit1”
MIDDLE :
String name= ” “
Tag name= “edit2”
RIGHT :
String name= ” “
Tag name= “edit3”
C. STATIC TEXT BOXES:
LEFT :
String name= “PWM M1 “
Tag name= “No changes”
Color=”GREY”
MIDDLE :
String name= ” PWM “
Tag name= “No changes”
Color=”GREEN”
RIGHT :
String name= ” PWM M2 “
Tag name= “No changes”
Color=”ORANGE”
Hi, your tutorial is helpful to me. I would like to ask if I already follow your tutorial Interfacing L298N with Arduino using MATLAB GUI, do I need to coding some code to Arduino?
Thank you
Yeah! after creating Gui, you have to program that Gui. You can find code in “part 3” of this project:
https://www.etechnophiles.com/1-5-2-programming-gui-interfacing-l298n-with-arduino-uno-using-matlab-gui/
If you have any other doubt, feel free to ask.
hi, thank you for replying me. What I mean is do I need to code something in arduino file, give command to arduino?
NO, you don’t have to do anything with arduino IDE.