0% found this document useful (0 votes)
136 views

ARDUINO

The document discusses interfacing a DC motor. It states that DC motors are used because their speed can be controlled over a wide range using variable voltage or current. Small DC motors are used in tools, toys, and appliances. It then discusses using an L293D motor driver IC to allow a DC motor to drive in clockwise or counterclockwise directions by controlling the input and output pins. Finally, it provides a simple program to drive a DC motor connected to the motor driver in both directions.

Uploaded by

Gagleen Rissam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views

ARDUINO

The document discusses interfacing a DC motor. It states that DC motors are used because their speed can be controlled over a wide range using variable voltage or current. Small DC motors are used in tools, toys, and appliances. It then discusses using an L293D motor driver IC to allow a DC motor to drive in clockwise or counterclockwise directions by controlling the input and output pins. Finally, it provides a simple program to drive a DC motor connected to the motor driver in both directions.

Uploaded by

Gagleen Rissam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

 INTERFACING OF DC MOTOR

 A DC motor is any of a class of rotary electrical motors that


converts direct current electrical energy into mechanical energy

 DC motors are used because they have better speed control ie a


DC motor's speed can be controlled over a wide range, using
either a variable supply voltage or by changing the strength of
current in its field windings.

 Small DC motors are used in tools, toys, and many appliances.


 CIRCUIT AND PROGRAM
 LN293D MOTOR DRIVER-Pin description
L293D is a typical Motor driver or Motor Driver IC which allows DC motor to drive on
either direction i.e. clockwise or anti-clockwise.
The VSS is where the power supply is given. IN4 and IN3 will be used for direction control.
OUT4 and OUT3 will be connected to the DC motor.
The 12 and 13 GND pin will be grounded.
Enable2 (EN2) is used to control the speed of the
DC motor.
 CIRCUIT DESCRIPTION
 The power terminal that is VSS is connected to the positive terminal of the
breadboard which is further connected to the 5v of the Arduino board.
 The input 4 (IN4) is connected to the 4th
pin of the Arduino chip, while the OUT Vss(power
output 4 (OUT4) pin is connected 4 terminal)

to the DC motor.
IN4

5V of Arduino
 Both the ground pins are grounded on the negative terminal.
 There is an external power supply(9v)
GROUND
used because Arduino alone cannot handle
PINS
the DC motor. The positive terminal of the
power supply is connected to the positive
External
of the breadboard which further is power
connected to the VS of the DC motordriver supply
for extra power.
 The negative terminal of the power supply
is connected to the ground of the
breadboard
 PROGRAM-To drive dc motor in clockwise and anti
clockwise direction
 MINI PROJECT-EVM
.
 DESCRIPTION OF PINS USED
 SWITCHES- Three switches SW1,SW2 &SW3 are connected with the digital
pins 10,9,8 of the Arduino board.

 LCD PINS-
1) Enable pin-The enable pin is used by the LCD to latch information
presented to its data pins. This pin is connected to pin no. 11 on the Arduino
board.
2) RS (register select)-There are two important registers inside the LCD. The
RS pin is used for their selection as follows. If RS=0, the instruction command
code register is selected, then allowing to user to send a command such as clear
display, cursor at home etc.. If RS=1, the data register is selected, allowing the
user to send data to be displayed on the LCD.
3) D0-D4 (data lines)-The 8-bit data pins, D0-D4, are used to send
information to the LCD or read the contents of the LCD’s internal registers.
These data lines are connected to the digital pins 5,4,3&2 of the Arduino
board.
4)Potentiometer- A potentiometer is also used. By varying the resistance of
the potentiometer we can vary the screen brightness or the screen contrast
of the LCD
 PROGRAM
THANK YOU

You might also like