MATLAB
MATLAB is a matrix calculation software with simple syntax.With its functionsspecialized functions, MATLAB can also be considered as a programming language
programming suitable for scientific problems.
MATLAB is an interpreter: the instructions are interpreted and executed.
line by line.MATLAB works in several environments such as
XWindows, Windows, Macintosh
There are two operating modes:
1. interactive mode: MATLAB executes the instructions as they are given by the userthey are given by the user
executive mode:MATLAB executes a "?chier M" (program in MATLAB language) line by line.
in MATLAB language).
Command Window: In this Window, the user gives the instructions and MATLAB returns the results. Graphical Windows: MATLAB plots the graphs in these Window M Files: These are programs written in MATLAB language (written by the user).
Toolboxes: These are collections of M files developed for specific application domains. specific application domains (Signal Processing Toolbox, System Identification Identification Toolbox, Control System Toolbox, u-Synthesis and Analysis Toolbox, Chemometrics Toolbox, Fuzzy Logic Toolbox, etc.)
Simulink: It is the graphical extension of MATLAB that allows working with block diagrams.
Block sets: These are collections of Simulink blocks developed for specific application domains (DSP Block set, Power System Block set,
etc.)
1. Programming the Arduino Uno board as an interface board.
2. Use of the ArduinoIO package.
3. Use of the Arduino Target package
Arduino, which allows sending and acquiring binary data via the port serial (USB) and on the other hand to develop a program under Simulink to process or visualize this data
a wide range of inductive loads such as relays, solenoids, DC and bipolar stepper motors, as well as other high current and high voltage. All inputs are TTL compatible and tolerant up to 7 V. Each outing is a completed totem training circuit, with a Darlington sink transistor and a pseudo-Darlington source.
The L293x has TTL-compatible inputs and high-voltage outputs for inductive load control.
The current outputs can reach up to 2 A using the L293.The information contained in the sections following applications are not part of the component specifications TI, and TI does not guarantee the accuracy or completeness. TI customers are responsible for determining the suitability of the components for their purposes. The clients must validate and test the implementation of the design to confirm the functionality of the system
support package that must be installed on the ARDUINO side to establish communication
communication with the ARDUINO board.It's once installed, you have
need an ID and a password to complete the process
installation
1.Open MATLAB and click on the Add-Ons dropdown menu at the top of right of the MATLAB window and select it
2. Select the installation from the Internet as the installation source of the support package
4. Then click and log in to your Mathworks account. If you don't have a MathWorks account, you can create one during the process installation. then continue and complete the installations.
Simulink: It is the graphical extension of MATLAB that allows working with block diagrams.
Block sets: These are collections of Simulink blocks developed for specific application domains (DSP Block set, Power System Block set,
etc.)
ARDUINO BOARD
Arduino is a project created by a team of developers. It is a tool that will allow beginners, hobbyists, or professionals to create systems more or less complex electronic systems.
Arduino Matlab/Simulink interfacing
There are three possibilities to interface the Arduino board with Matlab/Simulink, namely:1. Programming the Arduino Uno board as an interface board.
2. Use of the ArduinoIO package.
3. Use of the Arduino Target package
Programming the Arduino Uno board as an interface board
This solution consists on the one hand of using the functions offered by the languageArduino, which allows sending and acquiring binary data via the port serial (USB) and on the other hand to develop a program under Simulink to process or visualize this data
L293D
The L293 and L293D are high-intensity quadruple half-H drivers. These devices are designed to drivea wide range of inductive loads such as relays, solenoids, DC and bipolar stepper motors, as well as other high current and high voltage. All inputs are TTL compatible and tolerant up to 7 V. Each outing is a completed totem training circuit, with a Darlington sink transistor and a pseudo-Darlington source.
| L293D |
The L293x has TTL-compatible inputs and high-voltage outputs for inductive load control.
The current outputs can reach up to 2 A using the L293.The information contained in the sections following applications are not part of the component specifications TI, and TI does not guarantee the accuracy or completeness. TI customers are responsible for determining the suitability of the components for their purposes. The clients must validate and test the implementation of the design to confirm the functionality of the system
| Inputs and Outputs of L293D |
Motor control
The figure below illustrates a typical configuration for using the L293D. as a bipolar motor driver. Refer to the operating conditions for the appropriate high and low voltage levels. recommended operating conditions for the appropriate high and low voltage levels for each channel of the device.| Configuration for using the L293D |
Description of possible scenarios
- The user decides to consult the command and control interface control The spider
- The user discovers the current state of the different spider modules
- MATLAB displays information related to the different modules.
- The user decides to modify the state of one or more spider nodes spider.
- The user confirms the changes.
- MATLAB approves the changes and executes the codes.
- The spider sends back feedback.
Connection ARDUINO with MATLAB
To connect ARDUINO with MATLAB, we need a packagesupport package that must be installed on the ARDUINO side to establish communication
communication with the ARDUINO board.It's once installed, you have
need an ID and a password to complete the process
installation
1.Open MATLAB and click on the Add-Ons dropdown menu at the top of right of the MATLAB window and select it
| Instruction for Matlab |
2. Select the installation from the Internet as the installation source of the support package
| Instruction for selecting support package |
4. Then click and log in to your Mathworks account. If you don't have a MathWorks account, you can create one during the process installation. then continue and complete the installations.
The graphical interface is:
Source Code
Conclusion
Demo Video

Comments
Post a Comment