SlideShare a Scribd company logo
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 398
DC MOTOR SPEED CONTROL WITH FEEDBACK MONITOR BASED
ON C# APPLICATION
Prithviraj R. Shetti1
, Ashok G. Mangave2
1
lecturer, E&TC Engg, Ashokrao Mane Polytechnic, Kolhapur, Maharashtra, India
2
lecturer, E&TC Engg, Ashokrao Mane Polytechnic, Kolhapur, Maharashtra, India
Abstract
Precise, cheap control and monitoring the speed of DC motor is ever hot area of work. In the present paper we have attempted to
implement speed control and feedback monitoring for a 12 Volt/1000 RPM rated motor. Speed control is done with help of PWM pins
on Arduino/AVR board and H-bridge IC L293D. Feedback speed monitoring is based on IR pair based interrupt monitoring. Hence
Sensing and calculation part of process is handled by Arduino/AVR board. All of this is implemented with help of PC based user
interface developed in C#. In a typical user interface speed control is achieved with help of trackBar and speed monitoring with help
of Text window, was we get direct readout of current speed in RPM.
Keywords: Arduino/AVR board, PWM, DC motor, IR based speed monitoring using interrupt, C# etc…
----------------------------------------------------------------------***------------------------------------------------------------------------
1. INTRODUCTION
DC motors are mainstay of electric traction drives on both
electric and diesel-electric locomotives, street-cars/trams and
diesel electric drilling rigs for many years. The introduction of
DC motor and an electric grid system to run the machinery
started in 1870’s and cause second industrial revolution.
Today DC motors are still found in toys and disk drives, or in
large sizes to operate steel rolling mills and paper
machines.[1] Speed Control of DC motor is a area we are
always interested in. For the reason that the solution has to
precise and more importantly cheap. Interested sectors include
small/heavy industry and research laboratory. Here it is to be
noted that speed control and speed regulation are different
terms. For present project we demonstrate speed control.
However since this application is PC based wherein we
monitor current speed, it can be successfully modified for
speed regulation tasks. With the help of present system user
can control speed of DC motor with help of a friendly user
interface. User can select direction of rotation viz.
Clockwise/Anticlockwise at click of a button during any time
of operation. He can select speed of rotation with help of
trackBar. Stop motor with button click. And also monitor
current speed in text window.
The development of such a system was assisted and made easy
going by open source Arduino/AVR board which has ready to
use PWM pins and also to mention the CMOS H-bridge IC
L293D motor driver IC. It is possible to control direction and
speed both with help of this IC.
2. RELATED WORK
Obviously the idea of DC motor speed control is not new.
Particularly speaking, for the kind of motor we use in our
project. We can find numerous authentic websites
demonstrating speed control with help of Arduino[2] and
L293D[3] which is a motor driver IC. In most cases
potentiometer is used to demonstrate speed control using
PWM capabilities of Arduino.
3. PROPOSED SYSTEM
Fig 1 shows the block level representation of system. IR pair
is used monitor the speed of motor. Very cheaply available
unmatched pair is used to have test results in bad conditions.
The H-bridge motor driver IC L293D requires a +5volt for
operation and a separate 0-24volt external supply for motor. It
is used to change speed and direction of motor. The PC based
application has trackBar for speed control, Buttons to
open/close serial port, change direction of rotation, stop motor
and a text window for monitoring speed. Motor is 12volt/1000
RPM rated motor.
Fig -1: Proposed system
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 399
4. HARDWARE DESIGN
4.1 Arduino/AVR Board
Either a standalone Arduino board or minimal Arduino
configuration works fine. We used standard Arduino available
as Freeduino board in India. Fig 2 shows sketch of circuit
setup developed using fritzing[4].
Fig -2: Circuit arrangement in fritzing
4.2 Motor Driver Unit
Motor driver unit has IC L293D. The pin connections can be
found in datasheet[3]. logic for changing direction of motor
and controlling motion in Table 1. Table 1 indication the way
pins must be configured for changing direction of rotation.
Pins 2 and 7 of L293D are connected to Arduino pins4 and 5
respectively. These pins are used to control direction of
rotation. Pin1 of L293D connected to PWM pin3 of Arduino.
This pin is used to control speed of rotation. Values written in
the range of 0-5 volt on this pin change the speed of motor
from 0-max rated.
4.3 IR Pair
IR pair is used for speed measurement. For this external
interrupt int0 of Arduino is used. On Arduino pin2 is available
as int0. The photodetector cathode goes to +5volt and junction
of anode with 10Kohm resistance goes to int0. The other end
of 10Kohm resistance is ground. Here the function of
photodetector and 10Kohm resistance acts as source of
interrupt. For present arrangement whenever something
appears in the path of IR transmitter LED and IR detector,
interrupt is applied to the Controller.
4.4 Motor Unit
Motor is 12volt/1000RPM rated DC motor. Motor is
connected to pins 3 and 6 of L293D.
4.5 Power Supply
External 0-24volt supply required for Motor. The supply is in
actual connected between Pin8 of L293D and Ground.
Arduino board itself receives power from USB cable used for
serial communication.
Table -1: LOGIC TABLE FOR H-BRIDGE IC L293D
EN 1A 2A FUNCTION
HIGH LOW HIGH Turn CW
HIGH HIGH LOW Turn CCW
HIGH LOW LOW Stop
HIGH HIGH HIGH Stop
LOW Ignored Ignored Stop
5. SOFTWARE DESIGN
5.1 Arduino Code
Arduino code is written in C using the open source IDE. The
two important commands used in program are
digitalWrite(pin,HIGH) & analogWrite(pin,value). Writing a
high/low to any pin brings it to +5volt/0volt. Analog write
function can be used in case of PWM pins. The flowchart
corresponding to Arduino code is shown in fig 3.
5.2 PC Application Code
The PC based application is developed in C# using windows
forms. There are important functions to handle like
opening/closing serial port, reading and characterising
incoming serial data, reading button states and taking action
accordingly. The flowchart corresponding to C# code is shown
in fig 4.
Fig -3: Flowchart for Arduino code
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 400
Fig -4: Flowchart for PC application code
6. RESULT
Fig5-6 show the photographs of actual setup in running mode
and fig7. shows PC based User interface. Fig8-9 give more
closer look. In the user interface we can see RPM readings
displayed in text window.
Fig -5: Running Demo
Fig -6: Running Demo (zoom)
Fig -7: Running PC application
Fig -8: Running PC application (zoom)
IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308
__________________________________________________________________________________________
Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 401
Fig -9: Running PC application (zoom)
7. CONCLUSIONS
Traditionally speed control is achieved based on potentiometer
approach. We have tried to bring precision, neatness and user
friendliness to the setup. The actual concept of hardware setup
is recent but provision of PC based user interface has brought
better usability and remote operation. But to mention, the
readings obtained have a variation of +/-10RPM. We hope that
we can improvise on this in future.
REFERENCES
[1]. http://www.en.m.wikipedia.org/wiki/DC_motor
[2]. http://www.playground.arduino.cc/main/DCMotorControl
[3].http://www.users.ece.utexas.edu/~valvano/Datasheets/L29
3d.pdf
[4]. http://www.fab.fritzing.org
BIOGRAPHIES
Prithviraj R. Shetti has received B.E in
Electronics and Telecommunication from Shivaji
University, Kolhapur in May 2006. His research
interests include Embedded system design
related to Electronics and electrical problems.ID:
prsece@gmail.com
Ashok G. Mangave has received M.E in
Electronics from Shivaji University, Kolhapur in
Jan. 2014. His research interests include Control
systems and Instrumentation. ID:
mangave2404@gmail.com

More Related Content

PDF
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
PDF
Design and operation of synchronized robotic arm
PDF
IRJET - Controlling 4 DOF Robotic ARM with 3-Axis Accelerometer and Flex ...
PDF
Controlling of Personal Transport Vehicle
PDF
IRJET- Design Analysis of Land Surveying Robot using Arduino UNO
PDF
Camera Movement Control using PID Controller in LabVIEW
PDF
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
PDF
PC Based DC Motor Speed Control using PID for Laboratory
IRJET - Vehicle Commencement Process using Fingerprint with Speed Locking Sys...
Design and operation of synchronized robotic arm
IRJET - Controlling 4 DOF Robotic ARM with 3-Axis Accelerometer and Flex ...
Controlling of Personal Transport Vehicle
IRJET- Design Analysis of Land Surveying Robot using Arduino UNO
Camera Movement Control using PID Controller in LabVIEW
A Low Cost Yet Super efficient Means to Prevent Overloading as Well as Accide...
PC Based DC Motor Speed Control using PID for Laboratory

What's hot (20)

PDF
Bi directional speed control of dc motor and stepper motor through mat lab us...
PDF
IRJET- AC Motor Fault Analyser by Characteristic Analysis
PDF
IRJET- Study of Audible Identification Alert System for Rash Driving
PDF
IRJET- Driverless Metro Train
PDF
Industrial Monitoring System Using Wireless Sensor Networks
PDF
IRJET- Automatic Vehicle Speed Controller System in Restricted Areas
PDF
IRJET- Smart Digi Train
PDF
18 digital
PDF
Floor cleaning robot report vatsal shah_ec_7th sem
PDF
IRJET- Smart Digi Train
PDF
IRJET- Multiple Load Controller for Industry using ARM Cortex
PDF
Joystick Controlled Wheelchair
PDF
IRJET- Mechanical Design and Fabrication of Hand Motion Controlled Robotic...
PDF
IRJET- Industrial Safety Device for Employees in Overhead Bridge Crane us...
PDF
Intelligent vehicle control based on identification of road signs by solar po...
PDF
IRJET- Design and Fabrication of Steering System using Servo Motors
PDF
IRJET- Automation on PA Grading Machine for Cable Forming
PDF
IRJET - Construction of "One Belt and One Road" Intelligent Analysis System
PDF
A Novel Idea on Semi-Automated Operation Theatre Assistance for Doctors Based...
PDF
A Flexible Closed Loop PMDC Motor Speed Control System for Precise Positioning
Bi directional speed control of dc motor and stepper motor through mat lab us...
IRJET- AC Motor Fault Analyser by Characteristic Analysis
IRJET- Study of Audible Identification Alert System for Rash Driving
IRJET- Driverless Metro Train
Industrial Monitoring System Using Wireless Sensor Networks
IRJET- Automatic Vehicle Speed Controller System in Restricted Areas
IRJET- Smart Digi Train
18 digital
Floor cleaning robot report vatsal shah_ec_7th sem
IRJET- Smart Digi Train
IRJET- Multiple Load Controller for Industry using ARM Cortex
Joystick Controlled Wheelchair
IRJET- Mechanical Design and Fabrication of Hand Motion Controlled Robotic...
IRJET- Industrial Safety Device for Employees in Overhead Bridge Crane us...
Intelligent vehicle control based on identification of road signs by solar po...
IRJET- Design and Fabrication of Steering System using Servo Motors
IRJET- Automation on PA Grading Machine for Cable Forming
IRJET - Construction of "One Belt and One Road" Intelligent Analysis System
A Novel Idea on Semi-Automated Operation Theatre Assistance for Doctors Based...
A Flexible Closed Loop PMDC Motor Speed Control System for Precise Positioning
Ad

Viewers also liked (20)

PPT
Chapter 6 dc motor speed control
PPTX
Major project report on MEASUREMENT, PROTECTION, SPEED CONTROL AND GRAPHICAL ...
PPTX
TO control the speed of DC Motor Simple Project
DOCX
Report on speed control of d.c. motor using pwm method
PDF
Detection of uncontrolled motion behavior in human crowds
PDF
Portable wireless traffic light system (pwtls)
PDF
Study of parameters requiried for quanitification of
PDF
Concrete composition analysis cast as a plate solar
PDF
The growth of hsr networks around the world
PDF
Directly coupled microstrip array antennas for wideband application
PDF
Uw as ns design challenges in transport layer
PDF
Analysis of circular disc antenna using defective
PDF
Eyeblink artefact removal from eeg using independent
PDF
Comparative assessment of noise levels in various laboratories and constructi...
PDF
The effect of band engineering of semiconductors on
PDF
Analysis of dc capacitor voltage balance method for h bridge inverter based p...
PDF
Mobile robot path planning using ant colony optimization
PDF
A study on influences of lighting on resource usage in
PDF
Appraisal of multilevel car parking facility at kg road cbd area, bengaluru city
PDF
Effect of superplasticizers compatibility on the workability, early age stren...
Chapter 6 dc motor speed control
Major project report on MEASUREMENT, PROTECTION, SPEED CONTROL AND GRAPHICAL ...
TO control the speed of DC Motor Simple Project
Report on speed control of d.c. motor using pwm method
Detection of uncontrolled motion behavior in human crowds
Portable wireless traffic light system (pwtls)
Study of parameters requiried for quanitification of
Concrete composition analysis cast as a plate solar
The growth of hsr networks around the world
Directly coupled microstrip array antennas for wideband application
Uw as ns design challenges in transport layer
Analysis of circular disc antenna using defective
Eyeblink artefact removal from eeg using independent
Comparative assessment of noise levels in various laboratories and constructi...
The effect of band engineering of semiconductors on
Analysis of dc capacitor voltage balance method for h bridge inverter based p...
Mobile robot path planning using ant colony optimization
A study on influences of lighting on resource usage in
Appraisal of multilevel car parking facility at kg road cbd area, bengaluru city
Effect of superplasticizers compatibility on the workability, early age stren...
Ad

Similar to Dc motor speed control with feedback monitor based on c# application (20)

PDF
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
PPTX
New عرض تقديمي من Microsoft PowerPoint.pptx
PPT
Design and Construction of DC Motor Speed Controller Using Android.ppt
PDF
Control robotic module using LIFA
PDF
Wireless Speed Control of AC/DC motor
PDF
Iaetsd autonomous pick and place rover for long distance
PPTX
BLDC Motor Speed Control with RPM Display and PWM
PDF
Hand Gesture Control Robot
PDF
Paraplegic Wheelchair
PDF
AUTOMATIC ACCELERATION CONTROL IN TRAFFIC SIGNAL/SCHOOL ZONE
PPT
360 degree Steering Android.ppt
PDF
IRJET - IoT based Speed Control of DC Motor using PWM Technique
PPTX
final yr project
DOCX
bidirectional report
PDF
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
DOCX
Speed Control of DC Motor
PPTX
Gesture Control Robot
DOCX
Speed and direction control of dc motor using android mobile application chan...
DOCX
Speed and direction control of dc motor using android mobile application chan...
PPTX
WIFI Based Motor Speed Control
IRJET- Closed Loop Speed Control of DC Motor by using PI Controller
New عرض تقديمي من Microsoft PowerPoint.pptx
Design and Construction of DC Motor Speed Controller Using Android.ppt
Control robotic module using LIFA
Wireless Speed Control of AC/DC motor
Iaetsd autonomous pick and place rover for long distance
BLDC Motor Speed Control with RPM Display and PWM
Hand Gesture Control Robot
Paraplegic Wheelchair
AUTOMATIC ACCELERATION CONTROL IN TRAFFIC SIGNAL/SCHOOL ZONE
360 degree Steering Android.ppt
IRJET - IoT based Speed Control of DC Motor using PWM Technique
final yr project
bidirectional report
Design-and-Implementation-of-an-Improved-Automatic-DC-Motor-Speed-Control-Sys...
Speed Control of DC Motor
Gesture Control Robot
Speed and direction control of dc motor using android mobile application chan...
Speed and direction control of dc motor using android mobile application chan...
WIFI Based Motor Speed Control

More from eSAT Publishing House (20)

PDF
Likely impacts of hudhud on the environment of visakhapatnam
PDF
Impact of flood disaster in a drought prone area – case study of alampur vill...
PDF
Hudhud cyclone – a severe disaster in visakhapatnam
PDF
Groundwater investigation using geophysical methods a case study of pydibhim...
PDF
Flood related disasters concerned to urban flooding in bangalore, india
PDF
Enhancing post disaster recovery by optimal infrastructure capacity building
PDF
Effect of lintel and lintel band on the global performance of reinforced conc...
PDF
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
PDF
Wind damage to buildings, infrastrucuture and landscape elements along the be...
PDF
Shear strength of rc deep beam panels – a review
PDF
Role of voluntary teams of professional engineers in dissater management – ex...
PDF
Risk analysis and environmental hazard management
PDF
Review study on performance of seismically tested repaired shear walls
PDF
Monitoring and assessment of air quality with reference to dust particles (pm...
PDF
Low cost wireless sensor networks and smartphone applications for disaster ma...
PDF
Coastal zones – seismic vulnerability an analysis from east coast of india
PDF
Can fracture mechanics predict damage due disaster of structures
PDF
Assessment of seismic susceptibility of rc buildings
PDF
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
PDF
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...
Likely impacts of hudhud on the environment of visakhapatnam
Impact of flood disaster in a drought prone area – case study of alampur vill...
Hudhud cyclone – a severe disaster in visakhapatnam
Groundwater investigation using geophysical methods a case study of pydibhim...
Flood related disasters concerned to urban flooding in bangalore, india
Enhancing post disaster recovery by optimal infrastructure capacity building
Effect of lintel and lintel band on the global performance of reinforced conc...
Wind damage to trees in the gitam university campus at visakhapatnam by cyclo...
Wind damage to buildings, infrastrucuture and landscape elements along the be...
Shear strength of rc deep beam panels – a review
Role of voluntary teams of professional engineers in dissater management – ex...
Risk analysis and environmental hazard management
Review study on performance of seismically tested repaired shear walls
Monitoring and assessment of air quality with reference to dust particles (pm...
Low cost wireless sensor networks and smartphone applications for disaster ma...
Coastal zones – seismic vulnerability an analysis from east coast of india
Can fracture mechanics predict damage due disaster of structures
Assessment of seismic susceptibility of rc buildings
A geophysical insight of earthquake occurred on 21 st may 2014 off paradip, b...
Effect of hudhud cyclone on the development of visakhapatnam as smart and gre...

Recently uploaded (20)

PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Sustainable Sites - Green Building Construction
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPT
Project quality management in manufacturing
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Welding lecture in detail for understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Well-logging-methods_new................
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Sustainable Sites - Green Building Construction
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Structs to JSON How Go Powers REST APIs.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Project quality management in manufacturing
CH1 Production IntroductoryConcepts.pptx
Welding lecture in detail for understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Well-logging-methods_new................
Arduino robotics embedded978-1-4302-3184-4.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Lesson 3_Tessellation.pptx finite Mathematics
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx

Dc motor speed control with feedback monitor based on c# application

  • 1. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 398 DC MOTOR SPEED CONTROL WITH FEEDBACK MONITOR BASED ON C# APPLICATION Prithviraj R. Shetti1 , Ashok G. Mangave2 1 lecturer, E&TC Engg, Ashokrao Mane Polytechnic, Kolhapur, Maharashtra, India 2 lecturer, E&TC Engg, Ashokrao Mane Polytechnic, Kolhapur, Maharashtra, India Abstract Precise, cheap control and monitoring the speed of DC motor is ever hot area of work. In the present paper we have attempted to implement speed control and feedback monitoring for a 12 Volt/1000 RPM rated motor. Speed control is done with help of PWM pins on Arduino/AVR board and H-bridge IC L293D. Feedback speed monitoring is based on IR pair based interrupt monitoring. Hence Sensing and calculation part of process is handled by Arduino/AVR board. All of this is implemented with help of PC based user interface developed in C#. In a typical user interface speed control is achieved with help of trackBar and speed monitoring with help of Text window, was we get direct readout of current speed in RPM. Keywords: Arduino/AVR board, PWM, DC motor, IR based speed monitoring using interrupt, C# etc… ----------------------------------------------------------------------***------------------------------------------------------------------------ 1. INTRODUCTION DC motors are mainstay of electric traction drives on both electric and diesel-electric locomotives, street-cars/trams and diesel electric drilling rigs for many years. The introduction of DC motor and an electric grid system to run the machinery started in 1870’s and cause second industrial revolution. Today DC motors are still found in toys and disk drives, or in large sizes to operate steel rolling mills and paper machines.[1] Speed Control of DC motor is a area we are always interested in. For the reason that the solution has to precise and more importantly cheap. Interested sectors include small/heavy industry and research laboratory. Here it is to be noted that speed control and speed regulation are different terms. For present project we demonstrate speed control. However since this application is PC based wherein we monitor current speed, it can be successfully modified for speed regulation tasks. With the help of present system user can control speed of DC motor with help of a friendly user interface. User can select direction of rotation viz. Clockwise/Anticlockwise at click of a button during any time of operation. He can select speed of rotation with help of trackBar. Stop motor with button click. And also monitor current speed in text window. The development of such a system was assisted and made easy going by open source Arduino/AVR board which has ready to use PWM pins and also to mention the CMOS H-bridge IC L293D motor driver IC. It is possible to control direction and speed both with help of this IC. 2. RELATED WORK Obviously the idea of DC motor speed control is not new. Particularly speaking, for the kind of motor we use in our project. We can find numerous authentic websites demonstrating speed control with help of Arduino[2] and L293D[3] which is a motor driver IC. In most cases potentiometer is used to demonstrate speed control using PWM capabilities of Arduino. 3. PROPOSED SYSTEM Fig 1 shows the block level representation of system. IR pair is used monitor the speed of motor. Very cheaply available unmatched pair is used to have test results in bad conditions. The H-bridge motor driver IC L293D requires a +5volt for operation and a separate 0-24volt external supply for motor. It is used to change speed and direction of motor. The PC based application has trackBar for speed control, Buttons to open/close serial port, change direction of rotation, stop motor and a text window for monitoring speed. Motor is 12volt/1000 RPM rated motor. Fig -1: Proposed system
  • 2. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 399 4. HARDWARE DESIGN 4.1 Arduino/AVR Board Either a standalone Arduino board or minimal Arduino configuration works fine. We used standard Arduino available as Freeduino board in India. Fig 2 shows sketch of circuit setup developed using fritzing[4]. Fig -2: Circuit arrangement in fritzing 4.2 Motor Driver Unit Motor driver unit has IC L293D. The pin connections can be found in datasheet[3]. logic for changing direction of motor and controlling motion in Table 1. Table 1 indication the way pins must be configured for changing direction of rotation. Pins 2 and 7 of L293D are connected to Arduino pins4 and 5 respectively. These pins are used to control direction of rotation. Pin1 of L293D connected to PWM pin3 of Arduino. This pin is used to control speed of rotation. Values written in the range of 0-5 volt on this pin change the speed of motor from 0-max rated. 4.3 IR Pair IR pair is used for speed measurement. For this external interrupt int0 of Arduino is used. On Arduino pin2 is available as int0. The photodetector cathode goes to +5volt and junction of anode with 10Kohm resistance goes to int0. The other end of 10Kohm resistance is ground. Here the function of photodetector and 10Kohm resistance acts as source of interrupt. For present arrangement whenever something appears in the path of IR transmitter LED and IR detector, interrupt is applied to the Controller. 4.4 Motor Unit Motor is 12volt/1000RPM rated DC motor. Motor is connected to pins 3 and 6 of L293D. 4.5 Power Supply External 0-24volt supply required for Motor. The supply is in actual connected between Pin8 of L293D and Ground. Arduino board itself receives power from USB cable used for serial communication. Table -1: LOGIC TABLE FOR H-BRIDGE IC L293D EN 1A 2A FUNCTION HIGH LOW HIGH Turn CW HIGH HIGH LOW Turn CCW HIGH LOW LOW Stop HIGH HIGH HIGH Stop LOW Ignored Ignored Stop 5. SOFTWARE DESIGN 5.1 Arduino Code Arduino code is written in C using the open source IDE. The two important commands used in program are digitalWrite(pin,HIGH) & analogWrite(pin,value). Writing a high/low to any pin brings it to +5volt/0volt. Analog write function can be used in case of PWM pins. The flowchart corresponding to Arduino code is shown in fig 3. 5.2 PC Application Code The PC based application is developed in C# using windows forms. There are important functions to handle like opening/closing serial port, reading and characterising incoming serial data, reading button states and taking action accordingly. The flowchart corresponding to C# code is shown in fig 4. Fig -3: Flowchart for Arduino code
  • 3. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 400 Fig -4: Flowchart for PC application code 6. RESULT Fig5-6 show the photographs of actual setup in running mode and fig7. shows PC based User interface. Fig8-9 give more closer look. In the user interface we can see RPM readings displayed in text window. Fig -5: Running Demo Fig -6: Running Demo (zoom) Fig -7: Running PC application Fig -8: Running PC application (zoom)
  • 4. IJRET: International Journal of Research in Engineering and Technology eISSN: 2319-1163 | pISSN: 2321-7308 __________________________________________________________________________________________ Volume: 03 Issue: 03 | Mar-2014, Available @ http://www.ijret.org 401 Fig -9: Running PC application (zoom) 7. CONCLUSIONS Traditionally speed control is achieved based on potentiometer approach. We have tried to bring precision, neatness and user friendliness to the setup. The actual concept of hardware setup is recent but provision of PC based user interface has brought better usability and remote operation. But to mention, the readings obtained have a variation of +/-10RPM. We hope that we can improvise on this in future. REFERENCES [1]. http://www.en.m.wikipedia.org/wiki/DC_motor [2]. http://www.playground.arduino.cc/main/DCMotorControl [3].http://www.users.ece.utexas.edu/~valvano/Datasheets/L29 3d.pdf [4]. http://www.fab.fritzing.org BIOGRAPHIES Prithviraj R. Shetti has received B.E in Electronics and Telecommunication from Shivaji University, Kolhapur in May 2006. His research interests include Embedded system design related to Electronics and electrical problems.ID: prsece@gmail.com Ashok G. Mangave has received M.E in Electronics from Shivaji University, Kolhapur in Jan. 2014. His research interests include Control systems and Instrumentation. ID: mangave2404@gmail.com