1.5.1: Creating GUI :”Interfacing L298N with Arduino using MATLAB GUI” (PART 2)

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.

ALL MATLAB GUI TUTORIALS:

1.5.2 PROGRAMMING GUI: “Interfacing L298N with Arduino UNO using Matlab GUI”

1.2 Controlling brightness of LED using Matlab GUI and Arduino in 2017

1.1 Controlling status of LED from MATLAB GUI and Arduino in 2017

1.0 Installing Arduino support package & Matlab GUI basics in 2017

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”

 

 

 

 

 

 

 

 

4 Comments

4 Replies to “1.5.1: Creating GUI :”Interfacing L298N with Arduino using MATLAB GUI” (PART 2)”

  1. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: