Hey guys ! We are back again with another tutorial on how to interface a DC motor with Arduino using the L293D Motor Driver. Here i’ll give you the code and the interfacing schematic of the IC to get you going with the running DC motor. So let’s get started !
Material Required :
- Jumper Wires
- L293D Motor Driver IC
- Arduino Uno
- DC Motor
- DC 5-36 volt supply depending upon the Motor
Connections and Explanation :
The description about the motor driver IC has been given below . Make the connections as shown below . The arduino will run on 5V supply whereas the Motor will require 5-36 volts depending upon its configurations .
- Connect the Pin 1 of IC to 5v as it is enable for the left part of IC .
- Connect Pin 2 of IC i.e the inputpin1 to Arduino digital Pin 10 .
- Connect Pin 3 of IC i.e the outputpin1 to one terminal of the DC motor.
- Connect Pin 4 and Pin 5 of IC i.e the GND pin to a common ground given by Arduino on the Breadboard.
- Connect Pin 6 of IC i.e the Outputpin2 to the other terminal of Arduino .
- Connect Pin 7 of IC i.e the inputpin2 to Arduino digital Pin 11 .
- Connect Pin 8 of IC i.e the VSS to 5v.
- Connect Pin 16 of IC i.e the VCC pin to 5v for internal voltage to the IC.
For connections to a second motor , follow similar steps looking at the pin diagram of L293D and just add bit of a code for that motor as well .
The Motor Driver is a module for motors that allows you to control the working speed and direction of two motors simultaneously .This Motor Driver is designed and developed based on L293D IC. L293D is a 16 Pin Motor Driver IC. This is designed to provide bidirectional drive currents at voltages from 5 V to 36 V.
const int inputPin1 = 10; // Pin 2 of L293D IC
const int inputPin2 = 11; // Pin 7 of L293D IC
******The Circuit has been stimulated on Tinker CAD ******
*******For more Arduino Projects Refer here http://circuitcooks.com/category/projects/arduino/ ******