Table of Content S.No Page No.: I 1.1 Conventional Methods of Speed Control 4
Table of Content S.No Page No.: I 1.1 Conventional Methods of Speed Control 4
Table of Content S.No Page No.: I 1.1 Conventional Methods of Speed Control 4
I INTRODUCTION 4
1.1 CONVENTIONAL METHODS OF 4
SPEED CONTROL
2 DC MOTOR 5
3 L293D IC 7
1
L239D IC
3.6 VOLTAGE SPECIFICATIONS 9
4 ARDUINO UNO 9
4.1 INTRODUCTION TO 9
ARDUINO
4.2 TECHNICAL 10
SPECIFIATIONS
4.3 PINS 10
5 WORKING 11
2
ABSTRACT
Due to efficient control methods, DC motors are widely used motors to drive
the loads in industry. Among the different control techniques for the DC motor
speed control,Here we are using L293D IC. L293D is a typical motor driver IC
which allows DC motor to drive on either directions. L239D is a 16-pin IC
which control a set of two DC motors simultaneously in any directions. it means
that you can control two DC motor with a single L293D IC. Dual H-bridge
motor driver integrated circuit(IC).It works on the concept of H-bridge is a
circuit which allows the voltage to be flown either directions. As you know
voltage need to change its directions for being able to rotate the motor in
clockwise directions or anticlockwise,Hence H-bridge IC are ideal for driving a
DC motor. Here in single L293D chip there are two H-bridge circuit inside the
IC which can rotate two dc motor independently
3
CHAPTER-I
INTRODUCTION
1.1 CONVENTIONAL METHODS OF SPEED CONTROL
driving the motor with left H-bridge you need to enable pin 1 to high. And for
right H-Bridge you need to make the pin 9 to high. If anyone of the either pin1
or pin9 goes low then the motor in the corresponding section will suspend
working. It’s like a switch.
4
1.3 BLOCK DIAGRAM
5
CHAPTER-II
DC MOTOR
2.1 WORKING PRINCIPLE OF A DC MOTOR
6
Figure 2.2: DC motor
7
CHAPTER-III
L293D IC
3.1 WORKING PRINCIPLE OF L293D IC
L293D is a typical motor driver IC which allows DC motor to drive on
either directions. L239D is a 16-pin IC which control a set of two DC motors
simultaneously in any directions. it means that you can control two DC motor
with a single L293D IC. Dual H-bridge motor driver integrated circuit(IC).
Figure 3.1:L293D
8
3.3 WORKING OF L293D
There are 4 input pins for L293D, pin 2,7 on the left and pin
15,10 on the right as shown on the pin diagram. Left input pins will regulate the
rotation of motor connected across left side and right input for motor on the
right hand side. The motors are rotated on the basis of the inputs provided
across the input pins as LOGIC 0 or LOGIC 1.
In simple you need to provide Logic 0 or 1 across the input pins for rotating the
motor.
9
3.6 VOLTAGE SPECIFICATIONS
VCC is the voltage that it needs for its own internal
operation 5v; L293D will not use this voltage for driving the motor. For driving
the motors it has a separate provision to provide motor supply VSS (V supply).
L293d will use this to drive the motor. It means if you want to operate a motor
at 9V then you need to provide a Supply of 9V across VSS Motor supply.
The maximum voltage for VSS motor supply is 36V. It can supply a max
current of 600mA per channel.Since it can drive motors Up to 36v hence you
can drive pretty big motors with this l293d.VCC pin 16 is the voltage for its
own internal Operation. The maximum voltage ranges from 5v and upto 36v.
10
CHAPTER IV
ARDUINO UNO
4.1 INTRODUCTION
The Arduino Uno is an open-source microcontroller board based on
the Microchip ATmega328P microcontroller and developed by Arduino.cc The
board is equipped with sets of digital and analog input/output (I/O) pins that
may be interfaced to various expansion boards (shields) and other circuits. The
board has 14 Digital pins, 6 Analog pins, and programmable with the Arduino
IDE (Integrated Development Environment) via a type B USB cable. It can be
powered by the USB cable or by an external 9-volt battery, though it accepts
voltages between 7 and 20 volts. It is also similar to the Arduino Nano and
Leonardo. The hardware reference design is distributed under a Creative
Commons Attribution Share-Alike 2.5 license and is available on the Arduino
website. Layout and production files for some versions of the hardware are also
available.
The word "uno" means "one" in Italian and was chosen to mark the initial
release of the Arduino Software. The Uno board is the first in a series of USB-
based Arduino boards, and it and version 1.0 of the Arduino IDE were the
reference versions of Arduino, now evolved to newer releases. The ATmega328
on the board comes preprogrammed with a bootloader that allows uploading
new code to it without the use of an external hardware programmer.
While the Uno communicates using the original STK500 protocol, it differs
from all preceding boards in that it does not use the FTDI USB-to-serial driver
chip. Instead, it uses the Atmega16U2 (Atmega8U2 up to version R2)
programmed as a USB-to-serial converter.
11
DC Current per I/O Pin: 20 mA
DC Current for 3.3V Pin: 50 mA
Flash Memory: 32 KB of which 0.5 KB used by bootloader
SRAM: 2 KB
EEPROM: 1 KB
Clock Speed: 16 MHz
Length: 68.6 mm
Width: 53.4 mm
Weight: 25 g
4.3 PINS
LED: There is a built-in LED driven by digital pin 13. When the pin is
high value, the LED is on, when the pin is low, it's off.
VIN: The input voltage to the Arduino/Genuino board when it's using an
external power source (as opposed to 5 volts from the USB connection or
other regulated power source). You can supply voltage through this pin,
or, if supplying voltage via the power jack, access it through this pin.
5V: This pin outputs a regulated 5V from the regulator on the board. The
board can be supplied with power either from the DC power jack (7 -
20V), the USB connector (5V), or the VIN pin of the board (7-20V).
Supplying voltage via the 5V or 3.3V pins bypasses the regulator, and can
damage the board.
3V3: A 3.3 volt supply generated by the on-board regulator. Maximum
current draw is 50 mA.
GND: Ground pins.
IOREF: This pin on the Arduino/Genuino board provides the voltage
reference with which the microcontroller operates. A properly configured
shield can read the IOREF pin voltage and select the appropriate power
source or enable voltage translators on the outputs to work with the 5V or
3.3V.
Reset: Typically used to add a reset button to shields which block the one
on the board.
12
Serial / UART: pins 0 (RX) and 1 (TX). Used to receive (RX) and
transmit (TX) TTL serial data. These pins are connected to the
corresponding pins of the ATmega8U2 USB-to-TTL serial chip.
External interrupts: pins 2 and 3. These pins can be configured to trigger
an interrupt on a low value, a rising or falling edge, or a change in value.
PWM (pulse-width modulation): 3, 5, 6, 9, 10, and 11. Can provide 8-bit
PWM output with the analogWrite() function.
SPI (Serial Peripheral Interface): 10 (SS), 11 (MOSI), 12 (MISO), 13
(SCK). These pins support SPI communication using the SPI library.
TWI (two-wire interface) / I²C: A4 or SDA pin and A5 or SCL pin.
Support TWI communication using the Wire library.
AREF (analog reference): Reference voltage for the analog inputs
13
CHAPTER V
WORKING
5.1 L293D FUNCTION TABLE
INPUT OUTPUT
IN1/IN3 IN2/IN4 OUT1/OUT3 OUT2/OUT4
0 0 0 0
1 0 1 0
0 1 0 1
1 1 1 1
The below arduino code just show you how the motor direction changes with
the change in respective input states. As given in the code, for five seconds the
motor runs in the clockwise direction, then in the counterclockwise direction
and then stops; this repeats again.
void loop()
{
clockwise();
delay(5000);
14
anticlockwise();
delay(5000);
brake();
delay(5000);
}
// Input state to rotate 2 motors CW
void clockwise()
{
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
}
// Input state to rotate 2 motors CCW
void anticlockwise()
{
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
}
//Motor Brake
void brake()
{
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
}
15
CHAPTER VI
CONCLUSION
The speed control of DC motor is successfully achieved by using L293D Motor
driver IC based two H- Bridge. for five seconds the motor runs in the clockwise
direction, then in the counterclockwise direction and then stops; this repeats
again. It is practical one and high feasibility according to economic point of
view, reliability and accuracy. It is programmable one. Therefore, it can control
various motors ranging small one to several hp motors.
16
17