Download Arduino Based DC Motor Speed Control

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Distributed control system wikipedia , lookup

Electric machine wikipedia , lookup

Opto-isolator wikipedia , lookup

Control theory wikipedia , lookup

Resilient control systems wikipedia , lookup

Electrification wikipedia , lookup

Control system wikipedia , lookup

Voltage optimisation wikipedia , lookup

Pulse-width modulation wikipedia , lookup

Brushless DC electric motor wikipedia , lookup

Electric motor wikipedia , lookup

AC motor wikipedia , lookup

Induction motor wikipedia , lookup

Brushed DC electric motor wikipedia , lookup

Stepper motor wikipedia , lookup

Variable-frequency drive wikipedia , lookup

Transcript
Arduino Based DC
Motor Speed Control
Arduino Based DC Motor Speed
Control
Introduction
 This project is designed to control speed of a DC motor using
an Arduino development board. Speed of the DC motor is
directly proportional to the voltage applied across its
terminals. Hence, if the voltage across the motor terminal is
varied, then the speed can also be varied.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Block Diagram
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Hardware Requirements
•
•
•
•
•
•
•
•
•
•
•
Arduino develop Board
Crystal
DC Motor
Motor Driver IC
LED
Resistors
Capacitors
Diodes
Transformer
Voltage Regulator
Push Buttons.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Software Requirements
 Arduino software
 Language: Arduino programming language
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Arduino
 The Arduino microcontroller is an easy to use yet powerful single board
computer that has gained considerable traction in the hobby and
professional market.
 The Arduino is open-source, which means hardware is reasonably priced
and development software is free.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Arduino Board
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Working of Arduino
 Inexpensive :
•
Arduino boards are relatively inexpensive compared to other
microcontroller platforms.
 Cross-platform :
• The Arduino software runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to
Windows.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
Working of Arduino
 Programming environment :
• The Arduino programming environment is easy-to-use for beginners,
yet flexible enough for advanced users to take advantage of as well.
 Open source and extensible software :
• The Arduino software and is published as open source tools, available
for extension by experienced programmers.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
PWM
 The PWM switching frequency has to be much faster than what would
affect the load, which is to say the device that uses the power.
 The term duty cycle describes the proportion of on time to the regular
interval or period of time.
 A low duty cycle corresponds to low power, because the power is off for
most of the time. Duty cycle is expressed in percent, 100% being fully on.
http://www.edgefxkits.com/
Arduino Based DC Motor Speed
Control
PWM Applications
 Telecommunications
 Power delivery
 Voltage regulation
 Audio effects and amplification.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
LED
 LEDs are semiconductor devices are made out of silicon.
 When current passes through the LED, it emits photons as a
byproduct.
 Normal light bulbs produce light by heating a metal filament
until its white hot.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
LED
 LEDs present many advantages over traditional light sources including
 Lower energy consumption.
 Longer lifetime.
 Improved Robustness.
 Smaller Size.
 Faster Switching.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Liquid Crystal Display (LCD)
 Most common LCDs connected to the microcontrollers are 16x2 and 20x2
displays.
 This means 16 characters per line by 2 lines and 20 characters per line by 2
lines, respectively.
 The standard is referred to as HD44780U.
 It refers to the controller chip which receives data from an external source
and communicates directly with the LCD.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
LCD Background
 If an 8-bit data bus is used the LCD will require 11 data lines (3 control lines
plus the 8 lines for the data bus).
 The three control lines are referred to as EN, RS, and RW.
 EN=Enable (used to tell the LCD that you are sending it data).
 RS=Register Select (When RS is low (0), data is treated as a command)
(When RS is High(1), data being sent is text data ).
 R/W=Read/Write (When RW is low (0), the data written to the LCD)
(When RW is low (0), the data reading to the LCD).
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
LCD Diagram
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
DC- Motor
 A DC motor is an electric motor that runs on direct current (DC)
electricity.
 In any electric motor, operation is based on simple electromagnetism.
 A simple 2-pole DC electric motor (here red represents a magnet or
winding with a "North" polarization, while green represents a magnet
or winding with a "South" polarization).
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
DC- Motor
 Every DC motor has six basic parts -- axle, rotor (a.k.a.,
armature), stator, commutator, field magnet(s), and brushes.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Simplest DC Motor Circuit
 Connect the motor to a DC power supply.
Switch open
Switch closed
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Current Continues After Switch is Opened
 Opening the switch does not immediately stop current in the
motor windings.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Reverse Current
 Charge build-up can cause damage.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Motor Driver (l293d)
 L293D is a typical Motor driver or Motor Driver IC which allows DC
motor to drive on either direction.
 L293D is a 16-pin IC which can control a set of two DC motors
simultaneously in any direction.
 Control two DC motor with a single L293D IC. Dual H-bridge Motor
Driver integrated circuit(IC).
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
L293D Pin Diagram
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
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.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Circuit Diagram For l293d Motor Driver IC
Controller
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Voltage Specification
 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.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Voltage Specification
 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 up to 36v.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Motor Driver Features
 Output current 1A per channel (600 mA for L293D).
 Peak output current 2 A per channel (1.2 A for L293D).
 Output clamp diodes for Inductive Transient suppression(L293D).
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Working Principle
 The voltage supplied to a DC motor controls its speed.
 Arduino cannot supply variable DC output.
 Arduino lacks a true analog output.
 Use Pulse-width modulation (PWM) to simulate a variable DC supply
voltage.
 PWM is a common technique for supplying variable power levels to
“slow” electrical devices such as resistive loads, LEDs, and DC motors.
 Arduino Uno has 6 PWM pins: Digital I/O pins 3, 5, 6, 9,10, and 11.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Arduino UNO
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Applications:
 Wide supply-voltage range: 4.5V to 36V
 Separate input- logic supply
 Internal ESD protection
 Thermal shutdown
 High-Noise-Immunity input
 Functional Replacements for SGS L293 and SGS L293D
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Further Enhancement
 The project can be enhanced by using power electronic
devices such as IGBTs to achieve the speed control higher
capacity industrial motors and DC Motor Controller.
http://www.edgefxkits.com/
Arduino based DC Motor Speed
Control
Conclusion
 The Circuit was designed and implemented. this project
can be enhanced by using power electronic devices such as
IGBTs to achieve the speed control higher capacity
industrial motors and DC Motor Controller. A motor-driver
IC is interfaced to the Arduino board for receiving PWM
signals and delivering desired output for speed control of a
small DC motor.
http://www.edgefxkits.com/
http://www.edgefxkits.com/