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

Welcome to the 8th tutorial of the series using matlab gui with arduino and this is part 3 of the project “interfacing l298n motor driver with arduino using matlab gui” .


Click here to read previous tutorial, “Part 2: Creating GUI


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

1.5.0 PROJECT OVERVIEW: Interfacing L298N motor driver with Arduino using Matlab GUI

1.4 Potentiometer’s analog input to control brightness of LED using Arduino and Matlab GUI

1.3 Print Analog input from a potentiometer on Matlab Command Window using Arduino

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


In the last tutorial we created this gui for our project and today we will write code for it so that required commands can be given to arduino through this GUI:


Watch video version of this part of project for better understanding of Commands used:



1. Under Opening function type:

2. Under M1f pushbutton function type:

3. Under M1b pushbutton function type:

4. Under M2f pushbutton function type:

5. Under M2b pushbutton function type:

6. Under FWD pushbutton function type:

7. Under BWD pushbutton function type:

Leave a Comment