SlideShare a Scribd company logo
2
Most read
3
Most read
8
Most read
SPEED CONTROL OF DC MOTOR Page 1
International Islamic University
Islamabad
CONTROL SYSTEM LAB PROJECT
SPEED CONTROL OF DC MOTOR
Group Members:
Mafaz Ahmed 1882-F12D
Rafi Uzman 1891-F12D
Submitted To:
Sir Muhammad Asad
SPEED CONTROL OF DC MOTOR Page 2
TABLE OF CONTENTS Page
1. Introduction …………………………………………………….(3)
2. Schematic …………………………………………………….(3)
3. DC MOTOR …………………………………………………….(3)
 Types
4. Arduino …………………………………………………….(4)
 Featured
5. PCB design …………………………………………………….(5)
6. H-Bridge …………………………………………………….(6)
7. Optocoupler ……………….…………………………………….(7)
8. Rotary Encoder ………………………….………………………….(8)
9. Code …………………………………………………….(8)
10.Conclusion …………………………………………..……….(10)
11.References …………………………………………………….(10)
SPEED CONTROL OF DC MOTOR Page 3
INTRODUCTION:
In this project wewill be controlling the speed of Dc motor
using Arduino controller. Dc motor is driveby using PWM technique and then
using encoder to sensethe rpm of DC motor. Encoder produces pulses in the
output, which is feed into Arduino and Arduino controls the speed of DC
motor. So we have implemented the feedback systemwhich controls the
speed of DCmotor.
Schematic:
DC motor:
DC motor is a type of electric machines which converts direct current
into mechanical power. The very basic construction ofa dc motor contains
a current carrying armature which is connected to the supplyend through
commutatorsegments and brushes and placed within the north south
poles of a permanent or an electro-magnet.
ARDUINO
DC motor
ENCODER
and SENSOR
H-Bridge
SPEED CONTROL OF DC MOTOR Page 4
TYPES:
There are three types of DC motor,
1. ShuntDC motor
2. Series DC motor
3. Compound DC motor
Arduino:
Arduino is an open sourcecomputer hardware. An Arduino board
consists of an Atmel 8-, 16- or 32-bit AVRmicrocontroller with complementary
components that facilitate programming and incorporation into other circuits.
Ithas 14 digital input/output pins (of which 6 can be used as PWMoutputs), 6
analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an
ICSP header, and a resetbutton. Itcontains everything needed to supportthe
microcontroller; simply connect it to a computer with a USB cable or power it
with AC-to-DC adapter or battery.
SPEED CONTROL OF DC MOTOR Page 5
FEATURES:
Microcontroller ATmega8
Operating Voltage 5V
InputVoltage (recommended) 7-12V
InputVoltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 providePWMoutput)
Analog InputPins 6
DC Currentper I/O Pin 40 mA
DC Currentfor 3.3V Pin 50 mA
EEPROM 1 KB
Clock Speed 16 MHz
PCB design:
SPEED CONTROL OF DC MOTOR Page 6
H-Bridge (L293D):
An H bridgeis an electronic circuit that enables a
voltage to be applied across a load in either direction. These circuits are often
used in robotics and other applications to allow DC motors to run forwards and
backwards.
L293D is a dual H-bridgemotor driver integrated circuit (IC). Motor drivers act
as current amplifiers since they take a low-currentcontrolsignaland providea
higher-currentsignal. This higher current signalis used to drivethe motors.
L293D contains two inbuilt H-bridgedriver circuits. In its common mode of
operation, two DC motors can be driven simultaneously, both in forward and
reversedirection. The motor operations of two motors can be controlled by
input logic at pins 2 & 7 and 10 & 15. Inputlogic 00 or 11 will stop the
corresponding motor. Logic 01 and 10 will rotate it in clockwiseand
anticlockwisedirections, respectively. Enable pins 1 and 9 (corresponding to
the two motors) mustbe high for motors to start operating. When an enable
input is high, the associated driver gets enabled. As a result, the outputs
become active and work in phase with their inputs. Similarly, when the enable
input is low, that driver is disabled, and their outputs are off and in the high-
impedance state.
SPEED CONTROL OF DC MOTOR Page 7
Optocoupler:
An optical coupler, also called opto-isolator,
optocoupler, optocoupler, photocoupler or optical isolator, is a passiveoptical
component that can combine or split transmission data (optical power) from
optical fibers. Itis an electronic device which is designed to transfer electrical
signals by using light waves in order to providecoupling with electrical
isolation between its input and output. The main purposeof an optocoupler is
to prevent rapidly changing voltages or high voltages on one side of a circuit
fromdistorting transmissions or damaging components on the other side of
the circuit.
SPEED CONTROL OF DC MOTOR Page 8
Rotary Encoder:
A rotary encoder is an electro-mechanical device that
converts the angular position or motion of a shaftor axle to an analog or digital
code. Our encoder is self-made which is attach to the motor.
CODE:
float rev=0;
int rpm;
int prpm=1100;
int dcyl=155;
int oldtime=0;
int time;
void isr() //interruptservice routine
{rev++;
}
void setup()
{attachInterrupt(0,isr,FALLING); //attaching the interrupt
pinMode(9, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
}void loop()
{
delay(2000);
detachInterrupt(0); //detaches the interrupt
time=millis()-oldtime; //finds the time
SPEED CONTROL OF DC MOTOR Page 9
rpm=(rev/(2*time))*60000; //calculates rpm
oldtime=millis(); //saves the currenttime
rev=0;
digitalWrite(7, LOW);
digitalWrite(8, HIGH);
if(rpm>(prpm-10 ) && rpm<(prpm+10))
{dcyl=dcyl;}
else if(rpm>prpm)
{ if (dcyl>154)
dcyl-=5;}
else if(rpm<prpm)
{ if (dcyl<251)
dcyl+=5;}
else
dcyl=dcyl;
analogWrite(9, dcyl);
//sets the desired speed
//finds the duty cycle %
attachInterrupt(0,isr,FALLING);
delay(200);
}
SPEED CONTROL OF DC MOTOR Page 10
Conclusion:
We haveimplemented a feedback control of DCmotor. When
Speed changes, sensor (auto coupler) output changes (pulses). Fromthe pulses
Arduino detects change of speed, and tries to minimize it by increasing the
duty cycle.
REFERENCES:
http://en.wikipedia.org/wiki/Arduino
http://www.electrical4u.com/working-or-operating-principle-of-dc-motor/
http://www.arduino.cc/en/Main/ArduinoBoardUno
https://www.futureelectronics.com/en/optoelectronics/optocouplers.aspx

More Related Content

PPTX
Three Phase to Three phase Cycloconverter
PPT
Dc motor starters
PDF
3 ph induction motor ppt
PDF
Speed control of dc motors
PPTX
Closed loop speed control
PPTX
speed control of three phase induction motor
PPTX
Dc motor ppt
PPTX
Dc motor
Three Phase to Three phase Cycloconverter
Dc motor starters
3 ph induction motor ppt
Speed control of dc motors
Closed loop speed control
speed control of three phase induction motor
Dc motor ppt
Dc motor

What's hot (20)

PPTX
Braking methods of induction motor
PPTX
A presentation on inverter by manoj
PDF
Starting method of induction motors
DOCX
Two Quadrant chopper
PPT
Synchronous motor
PDF
Synchronous generators
PDF
Power system stability
PDF
Electric Drives and Controls Unit 1 Introduction
PPTX
Switched Reluctance Motor SRM - Introduction
PPT
3phase circuits
PDF
Equivalent circuit of Induction Motor
PPTX
Pulse width modulated inverter
PPTX
Speed Control of Synchronous Motor
PPTX
PDF
Per unit analysis
PPT
Per unit system
PDF
Drives lec 11_12_Braking of DC Motors
PPT
Boost converter
PPT
Current Transformer and Potential Transformer
PDF
Module 3 electric propulsion electric vehicle technology ppt
Braking methods of induction motor
A presentation on inverter by manoj
Starting method of induction motors
Two Quadrant chopper
Synchronous motor
Synchronous generators
Power system stability
Electric Drives and Controls Unit 1 Introduction
Switched Reluctance Motor SRM - Introduction
3phase circuits
Equivalent circuit of Induction Motor
Pulse width modulated inverter
Speed Control of Synchronous Motor
Per unit analysis
Per unit system
Drives lec 11_12_Braking of DC Motors
Boost converter
Current Transformer and Potential Transformer
Module 3 electric propulsion electric vehicle technology ppt
Ad

Viewers also liked (20)

DOCX
Report on speed control of d.c. motor using pwm method
PPTX
Speed Control of DC Motor using Microcontroller
PPTX
Dc motor speed control
PPTX
Speed control of dc motor using pulse width modulation
PPTX
TO control the speed of DC Motor Simple Project
PPTX
Speed control of DC Machine
PPTX
Speed Controller for DC Motor
PDF
Doc speed control of a dc motor using micro controller 8051
PPT
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
PPTX
BLDC Motor Speed Control with RPM Display and PWM
PPTX
Speed control of DC motor using pulse width modulation technique
PDF
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
PPT
Parallel Operation on Alternators.
PDF
To control the dc motor speed using PWM from LabVIEW
PDF
An overview of a continuous monitoring and control system for 3 phase induct
PDF
Dc motor speed control with feedback monitor based on c# application
PDF
Power electronics titles 2015 2016
PDF
Best Practices for Motion Control: Stepper Motor and Encoder Selection
PDF
implementing pid controller in c programing
DOCX
Low drift high impedance jfet dc voltmeter
Report on speed control of d.c. motor using pwm method
Speed Control of DC Motor using Microcontroller
Dc motor speed control
Speed control of dc motor using pulse width modulation
TO control the speed of DC Motor Simple Project
Speed control of DC Machine
Speed Controller for DC Motor
Doc speed control of a dc motor using micro controller 8051
BIDIRECTIONAL SPEED CONTROL OF DC MOTOR USING 8051 MICROCONTROLLER
BLDC Motor Speed Control with RPM Display and PWM
Speed control of DC motor using pulse width modulation technique
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Parallel Operation on Alternators.
To control the dc motor speed using PWM from LabVIEW
An overview of a continuous monitoring and control system for 3 phase induct
Dc motor speed control with feedback monitor based on c# application
Power electronics titles 2015 2016
Best Practices for Motion Control: Stepper Motor and Encoder Selection
implementing pid controller in c programing
Low drift high impedance jfet dc voltmeter
Ad

Similar to Speed Control of DC Motor (20)

PPTX
Design and Development of a prototype of AGV
PPTX
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
PPTX
major project ppt 27-4-16
PPTX
Metal Detector Robotic Vehicle
PPTX
AUTOMATIC WIRELESS POWER GRID CONTROL
PDF
PLCandSCADA.pdf
PDF
Manual fsr'14
PDF
Cockpit White Box
PDF
Arm Processor Based Speed Control Of BLDC Motor
PPTX
Arm cortex ( lpc 2148 ) based motor speed control
PPTX
Arm cortex ( lpc 2148 ) based motor speed control
PPTX
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
PDF
Wifi controlled rover prototype
PPTX
Fabrication of Design a prototype of AG1V
DOCX
INTELIGENT RAILWAY SYSTEM
PPTX
DOC
Obstacle avoiding robot(Lab report)
PDF
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
PDF
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
PPTX
Module 4
Design and Development of a prototype of AGV
DC MOTOR SPEED CONTROL USING ON-OFF CONTROLLER BY PIC16F877A MICROCONTROLLER
major project ppt 27-4-16
Metal Detector Robotic Vehicle
AUTOMATIC WIRELESS POWER GRID CONTROL
PLCandSCADA.pdf
Manual fsr'14
Cockpit White Box
Arm Processor Based Speed Control Of BLDC Motor
Arm cortex ( lpc 2148 ) based motor speed control
Arm cortex ( lpc 2148 ) based motor speed control
MICROPROCESSOR BASED SUN TRACKING SOLAR PANEL SYSTEM TO MAXIMIZE ENERGY GENER...
Wifi controlled rover prototype
Fabrication of Design a prototype of AG1V
INTELIGENT RAILWAY SYSTEM
Obstacle avoiding robot(Lab report)
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
Module 4

More from Mafaz Ahmed (20)

PDF
A course in fuzzy systems and control by li xin wang solution manual
PPTX
INTERACTIVE FLOOR PROJECTION SYSTEM
PDF
Series and parallel operation of power devices
PDF
Series and parallel connection of igbt
PDF
Series and parallel connection of mosfet
PDF
Electronic Instrumentation and Measurement Solution Manual
PPTX
Project loon
PPTX
Internet of Things
PPTX
Interoperability among various Generations of Telecom Technologies
PPTX
Dc motor drive
PPTX
Energy Crisis, Different Energy Sources and Role of Power Electronics
PPTX
RADIO ON RADIO OVER FIBER EFFICIENT FRONTHAULING FOR SMALL CELLS AND MOVING C...
DOCX
Temperature Control Fan Using 8051 Microcontroller
PPTX
Project Management Project
DOCX
Real Time Clock Interfacing with FPGA
PDF
Tweety modelling in pro engineering
PDF
Truck modelling in pro engineering
PDF
Bicycle modelling in pro engineering
PDF
Laptop modelling in pro engineering
PDF
Chair modelling in pro engineering
A course in fuzzy systems and control by li xin wang solution manual
INTERACTIVE FLOOR PROJECTION SYSTEM
Series and parallel operation of power devices
Series and parallel connection of igbt
Series and parallel connection of mosfet
Electronic Instrumentation and Measurement Solution Manual
Project loon
Internet of Things
Interoperability among various Generations of Telecom Technologies
Dc motor drive
Energy Crisis, Different Energy Sources and Role of Power Electronics
RADIO ON RADIO OVER FIBER EFFICIENT FRONTHAULING FOR SMALL CELLS AND MOVING C...
Temperature Control Fan Using 8051 Microcontroller
Project Management Project
Real Time Clock Interfacing with FPGA
Tweety modelling in pro engineering
Truck modelling in pro engineering
Bicycle modelling in pro engineering
Laptop modelling in pro engineering
Chair modelling in pro engineering

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
web development for engineering and engineering
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Welding lecture in detail for understanding
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPT
Project quality management in manufacturing
DOCX
573137875-Attendance-Management-System-original
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Digital Logic Computer Design lecture notes
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
web development for engineering and engineering
Strings in CPP - Strings in C++ are sequences of characters used to store and...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Welding lecture in detail for understanding
OOP with Java - Java Introduction (Basics)
Lecture Notes Electrical Wiring System Components
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Operating System & Kernel Study Guide-1 - converted.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Foundation to blockchain - A guide to Blockchain Tech
Project quality management in manufacturing
573137875-Attendance-Management-System-original
Structs to JSON How Go Powers REST APIs.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Digital Logic Computer Design lecture notes

Speed Control of DC Motor

  • 1. SPEED CONTROL OF DC MOTOR Page 1 International Islamic University Islamabad CONTROL SYSTEM LAB PROJECT SPEED CONTROL OF DC MOTOR Group Members: Mafaz Ahmed 1882-F12D Rafi Uzman 1891-F12D Submitted To: Sir Muhammad Asad
  • 2. SPEED CONTROL OF DC MOTOR Page 2 TABLE OF CONTENTS Page 1. Introduction …………………………………………………….(3) 2. Schematic …………………………………………………….(3) 3. DC MOTOR …………………………………………………….(3)  Types 4. Arduino …………………………………………………….(4)  Featured 5. PCB design …………………………………………………….(5) 6. H-Bridge …………………………………………………….(6) 7. Optocoupler ……………….…………………………………….(7) 8. Rotary Encoder ………………………….………………………….(8) 9. Code …………………………………………………….(8) 10.Conclusion …………………………………………..……….(10) 11.References …………………………………………………….(10)
  • 3. SPEED CONTROL OF DC MOTOR Page 3 INTRODUCTION: In this project wewill be controlling the speed of Dc motor using Arduino controller. Dc motor is driveby using PWM technique and then using encoder to sensethe rpm of DC motor. Encoder produces pulses in the output, which is feed into Arduino and Arduino controls the speed of DC motor. So we have implemented the feedback systemwhich controls the speed of DCmotor. Schematic: DC motor: DC motor is a type of electric machines which converts direct current into mechanical power. The very basic construction ofa dc motor contains a current carrying armature which is connected to the supplyend through commutatorsegments and brushes and placed within the north south poles of a permanent or an electro-magnet. ARDUINO DC motor ENCODER and SENSOR H-Bridge
  • 4. SPEED CONTROL OF DC MOTOR Page 4 TYPES: There are three types of DC motor, 1. ShuntDC motor 2. Series DC motor 3. Compound DC motor Arduino: Arduino is an open sourcecomputer hardware. An Arduino board consists of an Atmel 8-, 16- or 32-bit AVRmicrocontroller with complementary components that facilitate programming and incorporation into other circuits. Ithas 14 digital input/output pins (of which 6 can be used as PWMoutputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a resetbutton. Itcontains everything needed to supportthe microcontroller; simply connect it to a computer with a USB cable or power it with AC-to-DC adapter or battery.
  • 5. SPEED CONTROL OF DC MOTOR Page 5 FEATURES: Microcontroller ATmega8 Operating Voltage 5V InputVoltage (recommended) 7-12V InputVoltage (limits) 6-20V Digital I/O Pins 14 (of which 6 providePWMoutput) Analog InputPins 6 DC Currentper I/O Pin 40 mA DC Currentfor 3.3V Pin 50 mA EEPROM 1 KB Clock Speed 16 MHz PCB design:
  • 6. SPEED CONTROL OF DC MOTOR Page 6 H-Bridge (L293D): An H bridgeis an electronic circuit that enables a voltage to be applied across a load in either direction. These circuits are often used in robotics and other applications to allow DC motors to run forwards and backwards. L293D is a dual H-bridgemotor driver integrated circuit (IC). Motor drivers act as current amplifiers since they take a low-currentcontrolsignaland providea higher-currentsignal. This higher current signalis used to drivethe motors. L293D contains two inbuilt H-bridgedriver circuits. In its common mode of operation, two DC motors can be driven simultaneously, both in forward and reversedirection. The motor operations of two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Inputlogic 00 or 11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwiseand anticlockwisedirections, respectively. Enable pins 1 and 9 (corresponding to the two motors) mustbe high for motors to start operating. When an enable input is high, the associated driver gets enabled. As a result, the outputs become active and work in phase with their inputs. Similarly, when the enable input is low, that driver is disabled, and their outputs are off and in the high- impedance state.
  • 7. SPEED CONTROL OF DC MOTOR Page 7 Optocoupler: An optical coupler, also called opto-isolator, optocoupler, optocoupler, photocoupler or optical isolator, is a passiveoptical component that can combine or split transmission data (optical power) from optical fibers. Itis an electronic device which is designed to transfer electrical signals by using light waves in order to providecoupling with electrical isolation between its input and output. The main purposeof an optocoupler is to prevent rapidly changing voltages or high voltages on one side of a circuit fromdistorting transmissions or damaging components on the other side of the circuit.
  • 8. SPEED CONTROL OF DC MOTOR Page 8 Rotary Encoder: A rotary encoder is an electro-mechanical device that converts the angular position or motion of a shaftor axle to an analog or digital code. Our encoder is self-made which is attach to the motor. CODE: float rev=0; int rpm; int prpm=1100; int dcyl=155; int oldtime=0; int time; void isr() //interruptservice routine {rev++; } void setup() {attachInterrupt(0,isr,FALLING); //attaching the interrupt pinMode(9, OUTPUT); pinMode(8, OUTPUT); pinMode(7, OUTPUT); }void loop() { delay(2000); detachInterrupt(0); //detaches the interrupt time=millis()-oldtime; //finds the time
  • 9. SPEED CONTROL OF DC MOTOR Page 9 rpm=(rev/(2*time))*60000; //calculates rpm oldtime=millis(); //saves the currenttime rev=0; digitalWrite(7, LOW); digitalWrite(8, HIGH); if(rpm>(prpm-10 ) && rpm<(prpm+10)) {dcyl=dcyl;} else if(rpm>prpm) { if (dcyl>154) dcyl-=5;} else if(rpm<prpm) { if (dcyl<251) dcyl+=5;} else dcyl=dcyl; analogWrite(9, dcyl); //sets the desired speed //finds the duty cycle % attachInterrupt(0,isr,FALLING); delay(200); }
  • 10. SPEED CONTROL OF DC MOTOR Page 10 Conclusion: We haveimplemented a feedback control of DCmotor. When Speed changes, sensor (auto coupler) output changes (pulses). Fromthe pulses Arduino detects change of speed, and tries to minimize it by increasing the duty cycle. REFERENCES: http://en.wikipedia.org/wiki/Arduino http://www.electrical4u.com/working-or-operating-principle-of-dc-motor/ http://www.arduino.cc/en/Main/ArduinoBoardUno https://www.futureelectronics.com/en/optoelectronics/optocouplers.aspx