L293D DC Motor
R2026bLibraries:
Simulink Support Package for Arduino Hardware /
Common
Description
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
The L293D DC Motor block controls power and direction of a DC motor connected to motor driver shields such as L293D and L298N.
Supported Hardware
The L293D DC Motor block supports all Arduino boards.
Ports
Input
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"arduinolib/L293D DC Motor"
Example: add_block("arduinolib/L293D DC Motor","myModel/myBlock",MakeNameUnique="on")
Version History
Introduced in R2023a