SlideShare a Scribd company logo
1 of 22
Download to read offline
Controlling DC Motor speed, Using ARM
Microcontroller
Department of Biomedical Engineering
Faculty of Engineering
University of Isfahan
Seyed Yahya Moradi, Farzad Shahi,ETC
1
Table of Contents
Application of Dc Motor Controller
DC Motor Modeling
Control System Principles
ARM Microcontroller
Motor Driver & Optocounter
Schematic and PCB of the system
Conclusion
For many years the motor controller was a box which provided the motor
speed control and enabled the motor to adapt to variations in the load.
Designs were often lossy or they provided only crude increments in the
parameters controlled.
Application:
• Fans in cooker hoods
• Robotic Arms
• Surgery Robots
• Fan controller
• Medical Application (Electrocauter, ...)
• Drums and pumps in washing machines
• Compressors and fans in refrigerators
2
Applicationof Dc MotorController
ABSTRACT
3
Applicationof This Purpose
ABSTRACT
DC Motor Modeling
DC Motor plays a crucial role in research, industry and laboratory experiments
because of their low cost.
The position of the motor can be controlled by three methods namely terminal
voltage control method, armature rheostat control method and flux control
method. Here in this paper terminal voltage control method is employed.
4
Components of DC Motor
DC Motor Transfer Function
DC Motor Model
INTRODUCTION
Control System Principles
5
Open Loop Systems (Manual Control)
In an open loop control system the controlling parameters are fixed or set
by an oerator and the system finds its own equilibrium state.
Closed Loop Systems (Automatic Control)
Once the initial operating parameters have been set, an open loop system
is not responsive to subsequent changes or disturbances in the system
operating environment such as temperature and pressure, or to varying
demands on the system such as power delivery or load conditions.
©http://addhelium.com/site/wp-content/uploads/2013/11/MediaItem_258.jpg
INTRODUCTION
Block Control System
6
INTRODUCTION
ARM Microcontroller – STM 32
ARM, originally Acorn RISC Machine, later Advanced RISC Machine, is a family of
reduced instruction set computing (RISC) architectures for computer processors,
configured for various environments. British company ARM Holdings develops the
architecture and licenses it to other companies, who design their own products that
implement one of those architectures—including systems-on-chips (SoC) that
incorporate memory, interfaces, radios, etc. It also designs cores that implement this
instruction set and licenses these designs to a number of companies that incorporate
those core designs into their own products.
A RISC-based computer design approach means processors require fewer transistors
than typical complex instruction set computing (CISC) x86 processors in most personal
computers. This approach reduces costs, heat and power use. These characteristics
are desirable for light, portable, battery-powered devices—including, smartphones,
laptops and tablet computers, and other embedded systems
7
©http://addhelium.com/site/wp-content/uploads/2
INTRODUCTION
ARM Microcontroller
8
INTRODUCTION
Schematic of the system
9
• Push Button as input for ARM Microcontroller
• ICSP for programming PIC microcontroller
• Interface Precision Potentiometer
• Interface LCD (2x 16 Characters)
• Power supply for the circuit
• Interface L298D
METHOD
Interface LCD (2*16 Characters)
10
2*16 character LCD Connection of LCD
Pin Name Pin Function Connection
1 VSS Ground GND
2 VCC Positive Supply 5V
3 VEE Brightness -
4 RS Select Register RB7
5 R/W Select
Read/Write
GND
6 E Start
Read/Write
RB6
7 DB0 Data Bus PIN RB5
8 DB1 Data Bus PIN RB4
9 DB2 Data Bus PIN RB3
10 DB3 Data Bus PIN RB2
11 DB4 Data Bus PIN RB1
12 DB5 Data Bus PIN RC5
13 DB6 Data Bus PIN RC4
14 DB7 Data Bus PIN RC3
15 LED+ Backlight + 5V
16 LED- Backlight - GND
To use the LCD display, users have to solder
16 pin header pin to the LCD display. Figure
is a 2*16 character LCD and table 1 is all PIN
and connectors.
METHOD
Power supply for the circuit
11
User can choose either AC to DC adaptors or 12V to power up the
circuit. Higher input voltage will produce more heat at LM7805 voltage
regulator.
There are two type of power connector for the circuit, DC plug (J1)
and 2510-02 (Power Connector). Normally AC to DC adaptor can be
plugged to J1 type connector
Power supply for the circuit
METHOD
Interface L298D
11
The L298 is an integrated monolithic circuit
in a 15-lead Multiwatt and PowerSO20
packages. It is a high voltage, high current
dual full-bridge driver designed to accept
standard TTL logic levels and drive
inductive loads such as relays, solenoids,
DC and stepping motors. Two enable
inputs are provided to enable or disable the
device independently of the input signals.
The emitters of the lower transistors of
each bridge are connected together and
the corresponding external terminal can be
used for the connection of an external
sensing resistor. An additional supply input
is provided so that the logic works at a
lower voltage.
METHOD
Interface L298D
12
METHOD
Optocounter
13
Optocounter
14
Final PCB
15Figure 11: PID Gains and Angle Adjusters
circuit
RESULT
Final Code
16
RESULT
//Main program:
Alcd_Init(16, 2); //LCD settings
HAL_TIM_Base_Start_IT (&htim1); //optocounter timer counter start counting
HAL_TIM_Base_Start_IT (&htim17); // 1hz timer interrupt start counting
HAL_TIM_PWM_Start_IT(&htim3,TIM_CHANNEL_1); //start pwm counting
Alcd_Clear(); // clear lcd
Alcd_Puts(0, 0, "Initializing..."); //write the string on lcd first line
HAL_Delay(1000); // pause 1000ms
sprintf(str,"Desired=%05uRPM",desired_speed_rpm); //write desired speed on string of 2nd
line of lcd
Alcd_Puts(0, 1, str); //write on LCD 2nd line
while (1)
{
Alcd_Puts(0, 1, str); //write line2
sprintf(str0,"Speed= %05uRPM",real_speed_rps*60); //print real speed
on 1st line
Alcd_Puts(0, 0, str0); //write line1
HAL_Delay(500); //delay 500ms
}
Final HardWare
17
Result
• Anti Noise and Powerful
• ARM Microcontroller
• Automatic and Feedback controller
• PID and digital controller
• Low cost
• Minimum Size
• Gain Controller
• (Manual and Auto)
18
RESULT
References
1. Xue, D., C. Zhao, and Y. Chen. Fractional order PID control of a DC-motor with elastic shaft: a case
study. in Proceedings of American control conference. 2006.
2. Saranya, M. and D. Pamela, A real time IMC tuned PID controller for DC motor. International Journal of
Recent Technology and Engineering, 2012. 1(1): p. 65-70.
3. Kaya, I., IMC based automatic tuning method for PID controllers in a Smith predictor configuration.
Computers & chemical engineering, 2004. 28(3): p. 281-290.
4. Inaba, H., et al., Control apparatus for DC motor. 1978, Google Patents.
5. Leonhard, W., Control of a Separately Excited DC Machine. Control of Electrical Drives, 2001: p. 77-96.
6. Yeung, K. and J. Huang, Development of a remote-access laboratory: a dc motor control experiment.
Computers in Industry, 2003. 52(3): p. 305-311.
7. Naveenkumar, R. and D.P. Krishna, Low Cost Data Acquisition and Control using Arduino Prototyping
Platform and LabVIEW. International Journal of Science and Research, 2013. 2(2): p. 366-369.
8. Rubaai, A. and R. Kotaru, Online identification and control of a DC motor using learning adaptation of
neural networks. Industry Applications, IEEE Transactions on, 2000. 36(3): p. 935-942.
9. Zouari, F., K.B. Saad, and M. Benrejeb, Adaptive Internal Model Control of a DC Motor Drive System
Using Dynamic Neural Network. Journal of Software Engineering and Applications, 2012. 5(03): p. 168.
10. Rao, A.P.C., Y. Obulesu, and C.S. Babu, Robust Internal Model Control Strategy based PID Controller for
BLDCM. International Journal of Engineering Science and Technology, 2010. 2(11): p. 6801-6811.
11. Petráš, I., Fractional-order feedback control of a DC motor. Journal of Electrical Engineering, 2009.
60(3): p. 117-128.
12. Mazidi, M.A., et al., Pic microcontroller and embedded systems. 2005: Prentice-Hall, Inc.
13. Peatman, J.B., Design with PIC microcontrollers. 1997: Simon & Schuster Trade.
19
DC motor controlling

More Related Content

What's hot

subission report
subission reportsubission report
subission report
Manoj Kumar
 

What's hot (20)

40220140505004
4022014050500440220140505004
40220140505004
 
Introduction of Programmable Logic Controller to Electric Overhead Travelling...
Introduction of Programmable Logic Controller to Electric Overhead Travelling...Introduction of Programmable Logic Controller to Electric Overhead Travelling...
Introduction of Programmable Logic Controller to Electric Overhead Travelling...
 
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
IRJET- Control Strategy of Induction Motor Drive by using Universal Controlle...
 
IRJET- Industrial Safety Device for Employees in Overhead Bridge Crane us...
IRJET-  	  Industrial Safety Device for Employees in Overhead Bridge Crane us...IRJET-  	  Industrial Safety Device for Employees in Overhead Bridge Crane us...
IRJET- Industrial Safety Device for Employees in Overhead Bridge Crane us...
 
Implementation and Controlling of Electrical Appliances by using Bluetooth
Implementation and Controlling of Electrical Appliances by using BluetoothImplementation and Controlling of Electrical Appliances by using Bluetooth
Implementation and Controlling of Electrical Appliances by using Bluetooth
 
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
 
IRJET- Multiple Load Controller for Industry using ARM Cortex
IRJET-  	  Multiple Load Controller for Industry using ARM CortexIRJET-  	  Multiple Load Controller for Industry using ARM Cortex
IRJET- Multiple Load Controller for Industry using ARM Cortex
 
Power system automation
Power system automationPower system automation
Power system automation
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Speed and direction control of dc motor using android mobile application grv ...
Speed and direction control of dc motor using android mobile application grv ...Speed and direction control of dc motor using android mobile application grv ...
Speed and direction control of dc motor using android mobile application grv ...
 
Gx3412721276
Gx3412721276Gx3412721276
Gx3412721276
 
Speed control of single phase induction motor by android bluetooth
Speed control of single phase induction motor by android bluetoothSpeed control of single phase induction motor by android bluetooth
Speed control of single phase induction motor by android bluetooth
 
IRJET- AC Motor Fault Analyser by Characteristic Analysis
IRJET-  	  AC Motor Fault Analyser by Characteristic AnalysisIRJET-  	  AC Motor Fault Analyser by Characteristic Analysis
IRJET- AC Motor Fault Analyser by Characteristic Analysis
 
Power system automation introduction
Power system automation introductionPower system automation introduction
Power system automation introduction
 
AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...
AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...
AN INSIDE LOOK IN THE ELECTRICAL STRUCTURE OF THE BATTERY MANAGEMENT SYSTEM T...
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...Bi directional speed control of dc motor and stepper motor through mat lab us...
Bi directional speed control of dc motor and stepper motor through mat lab us...
 
IRJET- PLC using Renesas Controller
IRJET-  	  PLC using Renesas ControllerIRJET-  	  PLC using Renesas Controller
IRJET- PLC using Renesas Controller
 
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...IRJET-  	  Transformer Monitoring and Protection System using AVR Atmega16 Mi...
IRJET- Transformer Monitoring and Protection System using AVR Atmega16 Mi...
 
subission report
subission reportsubission report
subission report
 

Similar to DC motor controlling

Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
PUBLISHERJOURNAL
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
researchinventy
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
researchinventy
 
Design and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.pptDesign and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.ppt
EEESrproject
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
Journal For Research
 
Robotic Vehicle with Hand Motion Control Using a RF Module
Robotic Vehicle with Hand Motion Control Using a RF Module Robotic Vehicle with Hand Motion Control Using a RF Module
Robotic Vehicle with Hand Motion Control Using a RF Module
Associate Professor in VSB Coimbatore
 

Similar to DC motor controlling (20)

Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
 
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
 
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
DESIGN AND DEVELOPMENT OF A LOW-COST MICROCONTROLLER BASED SINGLE PHASE WATER...
 
Arm Processor Based Speed Control Of BLDC Motor
Arm Processor Based Speed Control Of BLDC MotorArm Processor Based Speed Control Of BLDC Motor
Arm Processor Based Speed Control Of BLDC Motor
 
E044081720
E044081720E044081720
E044081720
 
IRJET- Explosive Ordinanace Disposal Robot
IRJET- Explosive Ordinanace Disposal RobotIRJET- Explosive Ordinanace Disposal Robot
IRJET- Explosive Ordinanace Disposal Robot
 
Robotic Catching Arm using Microcontroller
Robotic Catching Arm using MicrocontrollerRobotic Catching Arm using Microcontroller
Robotic Catching Arm using Microcontroller
 
Design and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.pptDesign and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.ppt
 
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
[IJET-V2I3P18] Authors: Mr. B. N. Patil , Mr. Sandesh Sonar , Mr. Pavankumar ...
 
Android Based Voice Controlled Smart Wheelchair
Android Based Voice Controlled Smart WheelchairAndroid Based Voice Controlled Smart Wheelchair
Android Based Voice Controlled Smart Wheelchair
 
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLERFOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
FOUR QUADRANT SPEED CONTROL OF DC MOTOR USING AT89S52 MICROCONTROLLER
 
IRJET- IoT based Industrial Automation
IRJET-  	  IoT based Industrial AutomationIRJET-  	  IoT based Industrial Automation
IRJET- IoT based Industrial Automation
 
Reviews of Cascade Control of Dc Motor with Advance Controller
Reviews of Cascade Control of Dc Motor with Advance ControllerReviews of Cascade Control of Dc Motor with Advance Controller
Reviews of Cascade Control of Dc Motor with Advance Controller
 
Automation(plc&scada)
Automation(plc&scada)Automation(plc&scada)
Automation(plc&scada)
 
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROL
 
An industrial automation satyaaaa
An industrial automation  satyaaaaAn industrial automation  satyaaaa
An industrial automation satyaaaa
 
Robotic Vehicle with Hand Motion Control Using a RF Module
Robotic Vehicle with Hand Motion Control Using a RF Module Robotic Vehicle with Hand Motion Control Using a RF Module
Robotic Vehicle with Hand Motion Control Using a RF Module
 
B43050518
B43050518B43050518
B43050518
 

More from Seyed Yahya Moradi (18)

Arduino
ArduinoArduino
Arduino
 
Fpga 1
Fpga 1Fpga 1
Fpga 1
 
Verilog
VerilogVerilog
Verilog
 
Research
ResearchResearch
Research
 
Statistic Dist
Statistic DistStatistic Dist
Statistic Dist
 
Commercialization workshop
Commercialization workshop Commercialization workshop
Commercialization workshop
 
Fpga 2
Fpga 2Fpga 2
Fpga 2
 
ECG
ECGECG
ECG
 
Neuroanatomy
NeuroanatomyNeuroanatomy
Neuroanatomy
 
Fuzzy motor
Fuzzy motorFuzzy motor
Fuzzy motor
 
Mean cardiac axis (cardiac vector)
Mean cardiac axis (cardiac vector)Mean cardiac axis (cardiac vector)
Mean cardiac axis (cardiac vector)
 
Chaos and chaotic
Chaos and chaoticChaos and chaotic
Chaos and chaotic
 
Presentation
PresentationPresentation
Presentation
 
Ip mv workshop
Ip mv workshopIp mv workshop
Ip mv workshop
 
BCI
BCIBCI
BCI
 
مگس درمانی
مگس درمانیمگس درمانی
مگس درمانی
 
SSVEP-BCI
SSVEP-BCISSVEP-BCI
SSVEP-BCI
 
Bio Sensor
Bio SensorBio Sensor
Bio Sensor
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 

DC motor controlling

  • 1. Controlling DC Motor speed, Using ARM Microcontroller Department of Biomedical Engineering Faculty of Engineering University of Isfahan Seyed Yahya Moradi, Farzad Shahi,ETC
  • 2. 1 Table of Contents Application of Dc Motor Controller DC Motor Modeling Control System Principles ARM Microcontroller Motor Driver & Optocounter Schematic and PCB of the system Conclusion
  • 3. For many years the motor controller was a box which provided the motor speed control and enabled the motor to adapt to variations in the load. Designs were often lossy or they provided only crude increments in the parameters controlled. Application: • Fans in cooker hoods • Robotic Arms • Surgery Robots • Fan controller • Medical Application (Electrocauter, ...) • Drums and pumps in washing machines • Compressors and fans in refrigerators 2 Applicationof Dc MotorController ABSTRACT
  • 5. DC Motor Modeling DC Motor plays a crucial role in research, industry and laboratory experiments because of their low cost. The position of the motor can be controlled by three methods namely terminal voltage control method, armature rheostat control method and flux control method. Here in this paper terminal voltage control method is employed. 4 Components of DC Motor DC Motor Transfer Function DC Motor Model INTRODUCTION
  • 6. Control System Principles 5 Open Loop Systems (Manual Control) In an open loop control system the controlling parameters are fixed or set by an oerator and the system finds its own equilibrium state. Closed Loop Systems (Automatic Control) Once the initial operating parameters have been set, an open loop system is not responsive to subsequent changes or disturbances in the system operating environment such as temperature and pressure, or to varying demands on the system such as power delivery or load conditions. ©http://addhelium.com/site/wp-content/uploads/2013/11/MediaItem_258.jpg INTRODUCTION
  • 8. ARM Microcontroller – STM 32 ARM, originally Acorn RISC Machine, later Advanced RISC Machine, is a family of reduced instruction set computing (RISC) architectures for computer processors, configured for various environments. British company ARM Holdings develops the architecture and licenses it to other companies, who design their own products that implement one of those architectures—including systems-on-chips (SoC) that incorporate memory, interfaces, radios, etc. It also designs cores that implement this instruction set and licenses these designs to a number of companies that incorporate those core designs into their own products. A RISC-based computer design approach means processors require fewer transistors than typical complex instruction set computing (CISC) x86 processors in most personal computers. This approach reduces costs, heat and power use. These characteristics are desirable for light, portable, battery-powered devices—including, smartphones, laptops and tablet computers, and other embedded systems 7 ©http://addhelium.com/site/wp-content/uploads/2 INTRODUCTION
  • 10. Schematic of the system 9 • Push Button as input for ARM Microcontroller • ICSP for programming PIC microcontroller • Interface Precision Potentiometer • Interface LCD (2x 16 Characters) • Power supply for the circuit • Interface L298D METHOD
  • 11. Interface LCD (2*16 Characters) 10 2*16 character LCD Connection of LCD Pin Name Pin Function Connection 1 VSS Ground GND 2 VCC Positive Supply 5V 3 VEE Brightness - 4 RS Select Register RB7 5 R/W Select Read/Write GND 6 E Start Read/Write RB6 7 DB0 Data Bus PIN RB5 8 DB1 Data Bus PIN RB4 9 DB2 Data Bus PIN RB3 10 DB3 Data Bus PIN RB2 11 DB4 Data Bus PIN RB1 12 DB5 Data Bus PIN RC5 13 DB6 Data Bus PIN RC4 14 DB7 Data Bus PIN RC3 15 LED+ Backlight + 5V 16 LED- Backlight - GND To use the LCD display, users have to solder 16 pin header pin to the LCD display. Figure is a 2*16 character LCD and table 1 is all PIN and connectors. METHOD
  • 12. Power supply for the circuit 11 User can choose either AC to DC adaptors or 12V to power up the circuit. Higher input voltage will produce more heat at LM7805 voltage regulator. There are two type of power connector for the circuit, DC plug (J1) and 2510-02 (Power Connector). Normally AC to DC adaptor can be plugged to J1 type connector Power supply for the circuit METHOD
  • 13. Interface L298D 11 The L298 is an integrated monolithic circuit in a 15-lead Multiwatt and PowerSO20 packages. It is a high voltage, high current dual full-bridge driver designed to accept standard TTL logic levels and drive inductive loads such as relays, solenoids, DC and stepping motors. Two enable inputs are provided to enable or disable the device independently of the input signals. The emitters of the lower transistors of each bridge are connected together and the corresponding external terminal can be used for the connection of an external sensing resistor. An additional supply input is provided so that the logic works at a lower voltage. METHOD
  • 17. Final PCB 15Figure 11: PID Gains and Angle Adjusters circuit RESULT
  • 18. Final Code 16 RESULT //Main program: Alcd_Init(16, 2); //LCD settings HAL_TIM_Base_Start_IT (&htim1); //optocounter timer counter start counting HAL_TIM_Base_Start_IT (&htim17); // 1hz timer interrupt start counting HAL_TIM_PWM_Start_IT(&htim3,TIM_CHANNEL_1); //start pwm counting Alcd_Clear(); // clear lcd Alcd_Puts(0, 0, "Initializing..."); //write the string on lcd first line HAL_Delay(1000); // pause 1000ms sprintf(str,"Desired=%05uRPM",desired_speed_rpm); //write desired speed on string of 2nd line of lcd Alcd_Puts(0, 1, str); //write on LCD 2nd line while (1) { Alcd_Puts(0, 1, str); //write line2 sprintf(str0,"Speed= %05uRPM",real_speed_rps*60); //print real speed on 1st line Alcd_Puts(0, 0, str0); //write line1 HAL_Delay(500); //delay 500ms }
  • 20. Result • Anti Noise and Powerful • ARM Microcontroller • Automatic and Feedback controller • PID and digital controller • Low cost • Minimum Size • Gain Controller • (Manual and Auto) 18 RESULT
  • 21. References 1. Xue, D., C. Zhao, and Y. Chen. Fractional order PID control of a DC-motor with elastic shaft: a case study. in Proceedings of American control conference. 2006. 2. Saranya, M. and D. Pamela, A real time IMC tuned PID controller for DC motor. International Journal of Recent Technology and Engineering, 2012. 1(1): p. 65-70. 3. Kaya, I., IMC based automatic tuning method for PID controllers in a Smith predictor configuration. Computers & chemical engineering, 2004. 28(3): p. 281-290. 4. Inaba, H., et al., Control apparatus for DC motor. 1978, Google Patents. 5. Leonhard, W., Control of a Separately Excited DC Machine. Control of Electrical Drives, 2001: p. 77-96. 6. Yeung, K. and J. Huang, Development of a remote-access laboratory: a dc motor control experiment. Computers in Industry, 2003. 52(3): p. 305-311. 7. Naveenkumar, R. and D.P. Krishna, Low Cost Data Acquisition and Control using Arduino Prototyping Platform and LabVIEW. International Journal of Science and Research, 2013. 2(2): p. 366-369. 8. Rubaai, A. and R. Kotaru, Online identification and control of a DC motor using learning adaptation of neural networks. Industry Applications, IEEE Transactions on, 2000. 36(3): p. 935-942. 9. Zouari, F., K.B. Saad, and M. Benrejeb, Adaptive Internal Model Control of a DC Motor Drive System Using Dynamic Neural Network. Journal of Software Engineering and Applications, 2012. 5(03): p. 168. 10. Rao, A.P.C., Y. Obulesu, and C.S. Babu, Robust Internal Model Control Strategy based PID Controller for BLDCM. International Journal of Engineering Science and Technology, 2010. 2(11): p. 6801-6811. 11. Petráš, I., Fractional-order feedback control of a DC motor. Journal of Electrical Engineering, 2009. 60(3): p. 117-128. 12. Mazidi, M.A., et al., Pic microcontroller and embedded systems. 2005: Prentice-Hall, Inc. 13. Peatman, J.B., Design with PIC microcontrollers. 1997: Simon & Schuster Trade. 19