Professional Documents
Culture Documents
Rahul Singh
Rahul Singh
USING ARDUINO
A Major Project Report
Submitted in partial fulfillment of the requirement for the award of Degree of Bachelor
of Engineering in Electrical & Electronics
Submitted to
Submitted By
RAHUL SINGH
(0176EX151020)
ii
Project Guide
Prof Dr. Amol Barve
iii
LAKSHMI NARAIN COLLEGE OF TECHNOLOGY
EXCELLENCE,BHOPAL
CERTIFICATE
This is to certify that the work embodied in this Major Project title
“SPEED CONTROL OF DC MOTOR USING ARDUINO” has been
satisfactorily completed by RAHUL SINGH student of Final year. It is a
bonafied piece of work, carried out under my supervision and guidance
in the Department of Electrical & Electronics Engineering, Lakshmi Narain
College of Technology, Bhopal, for partial fulfillment of the Bachelor of
Engineering during the academic year 2108-19.
___________________
Project Guide
Prof Dr. Amol Barve
Approved By
_______________
Dr. Sachin Tiwari
Head of the Department
Forwarded by
________________
Dr. Vinay Kumar Sahu
Principal
i
LAKSHMI NARAIN COLLEGE OF TECHNOLOGY
EXCELLENCE,BHOPAL
DECLARATION
_______________
RAHUL SINGH
Enrollment No.0176EX151020
ii
Date:10 -04-2019
ACKNOWLEDGEMENT
Reasons can be given & they can be many but nothing can replace the efforts of
numerous people behind the work, put in by the creator, giving us constant support all
the way. On the very outset I would like to thank Dr. Vinay Kumar Sahu Principal,
LNCTE, Bhopal for providing me the glorious opportunity to work on this project. I
express my hearty gratitude to Prof. Sachin Tiwari, Head of Department Electrical &
Electronics Engineering. His invaluable guidance, advice & time from her extremely
busy schedule made this work an enthusiastic experience. I wish to express my most
sincere gratitude for her whole hearted cooperation.
iii
TABLE OF CONTENTS
Certificate i
Declaration ii
Acknowledgement iii
Table of contents iv
List of figures vi
List of tables vi
Abstract vii
iv
CONTENTS:
4.1 Transformer 13
4.2 Resistances 14
4.3 Capacitors 15
4.4 Diodes 15
4.5 LED 16
4.6 Arduino Uno 16
4.7 DC Motor 18
v
Chapter 6: Future work (20)
LIST OF FIGURES
LIST OF TABLES
Table between duty cycle and voltage 18
References 21
vi
ABSTRACT
one n-p-n transistor, diodes, one micro farad capacitor,1killo ohm resistors,one
potentiometer ,small step down transformer and one pressure button . This method
was used to control the speed of the DC motor. The control signals are
for protection of motor. Capacitor is used for bypass the noise generated from the
motor. By using pressure switch the speed of motor can vary at different levels. The
vii
CHAPTER 1
INTRODUCTION
Pulse width Modulation (PWM) is the term used to describe using a digital signal
to generate an analog output signal. PWM is one of the powerful techniques used in
control systems today. This is usually used to control the average power to a load in a
1
motor speed control circuit. It is used in wide range of application which includes: speed
control, power control, measurement and communication.
2
CHAPTER 2
Literature Review
This work presents a simple speed control application for a DC motor in laboratory use.
The purpose of this application is to maintain the desired speed on a generator operating
on the same axis to the motor.
3. Kumara MKSC, Dayananda PRD, Gunatillaka MDPR, Jayawickrama SS, “PC based
speed controlling of a dc motor”, A fmal year report University of Moratuwa
Illiniaus USA, 2001102.
This method was used to control the speed of the DC motor. The control signals
are transferred from Arduino UNO microcontroller to pressure button
5. A Khoei Kh. Hadidi, “MicroProcessor Based Closed- Loop Speed Control System for
DC Motor Using Power MOSFET”, 3rd IEEE international conference
3
on Electronics, Circuits and Systems( 1996) vol.2, pp.1247-1250.
The control of the DC motors is necessary in industries. The major use of controlling
the speed is in industries like drilling, robot industries.
6. Peter Spasov, “Microcontroller Technology: The 68HC11” Prentice Hall, 5th edition,
2004.
A pulse width modulator (PWM) is a device that may be used as an efficient DC motor
speed controller or light dimmer.
The micro controller keeps on tracking the determined speed by varying duty cycle in a
closed loop control system.
4
CHAPTER 3
METHODOLOGY
3.1 Introduction to speed control of dc motor:
The DC motors are in general much more adaptable speed drives than AC motors which
are associated with a constant speed rotating field. Indeed one of the primary reasons for
the strong competitive position of DC motors in modern industrial drives is the wide
range we know the equation
N= K ( ϕ)
=K (V-Ia Ra / ϕ)
5
This equation gives two methods of effective speed changes.i.e.
The variation of field excitation, if this causes in the flux per pole Φ and is known
as the field control.
field rheostat. Since in relatively small, shunt field rheostat has to carry only a small,
so that rheostat is small in size. This method therefore very efficient in non-interpolar
machines the speed can be increased by this method in the ratio 2:1 any further
weakening of flux Φ adversely affect the communication
And hence puts a limit to the maximum speed obtainable with this method
in machines fitted with interlopes in ratio of maximum to minimum speeds of 6:1 is
fairly common.
The connection diagram for this type of speed control is shown in figure below.
Field rheostat V
6
3.3 ARMATURE OR RHEOSTAT CONTROL METHOD:
Controller
Resistance
Field
V
Ia
armature
Speed,N Resistance in
armature
Armature
current, Ia
Speed, N No
Ia Im
8
Ia = V/Rt
This maximum current and is known as stalling current. This method is very
wasteful, expensive and unsuitable for rapidly changing loads because for a given value
of Rt, speed will change with load. A more stable operation can be obtained by using a
diverter across the armature in addition to armature control resistance.
Now, the changes in armature current will not be so effective in changing the
potential difference across the armature. The connection diagram for this type of speed
control arrangement is shown in fig.
Series
resistence
In this method, the shunt field of the motor is connected permanently to a fixed
exciting voltage but the armature is supplied with different voltages by connecting it
across one at the several different voltages by means of suitable switchgear. The
armature will be approximately proportional to these different voltages. The
intermediate speeds can be obtained by adjusting the shunt field regulator.
B) WARD-LEONARD SYSTEM:
This system is used where an unusually wide (upto 10:1) and very sensitive speed
control is required as for colliery winders , electric excavators and the main drives in
steel mills and blooming in paper mills.
The field of the motor (M1) whose speed control is permanently connected across
the DC supply lines. The other motor M2 is directly connected to Generator G.
9
The output voltage of G is directly is fed to the main motor M1. The voltage of
generator can be varied from zero to upto its maximum value by means of field
regulator. By reversing the direction of the field current of G by means of the reversing
switch which RS, generated voltage can be reversed and hence the direction of rotation
of M1. It should be remembered that motor set always runs in the same direction.
A modification of the word –Leonard system is known as word –Leonard -linger
system which uses a smaller motor generator set with
The addition of a flywheel whose function is to reduce fluctuations in the Power
demand from the supply circuit .
The chief advantage of system is its overall efficiency especially at right loads. It
has the outstanding merit of giving wide speed Control from maximum in one direction
through zero to the maximum in the opposite direction and of giving a smooth
acceleration.
3.5 PWM Technique
In this circuit, for controlling the speed of DC motor, we use a 100K ohm potentiometer
to change the duty cycle of the PWM signal. 100K ohm potentiometer is connected to
the analog input pin A0 of the Arduino UNO and the DC motor is connected to the
12th pin of the Arduino (which is the PWM pin). The working of Arduino program is
very simple, as it reads the voltage from the analog pin A0. The voltage at analog pin is
10
varied by using the potentiometer. After doing some necessary calculation the duty cycle
is adjusted according to it.
For example, if we feed 256 value to the analog input, then the HIGH time will be
768ms (1024-256) and LOW time will be 256ms. Therefore, it simply means the duty
cycle is 75%. Our eyes cannot see such high frequency oscillation and it looks like
motor is continuously ON with 75% of speed. So that’s how we can control the speed
using Potentiometer.
DUTY CYCLE=Ton/(Ton+Toff)
The complete Arduino code for controlling DC motor speed using potentiometer.
In the below code, we have initialized the variable c1 and c2 and assigned analog pin A0
for the potentiometer output and 12th Pin for ‘pwm’.
int c1 = 0;
int c2 = 0;
Now, in the below code, setting pin A0 as input and 12 (which is PWM pin) as output.
void setup() {
11
pinMode(pot, INPUT); // declares pin A0 as input
Now, in void loop (), we are reading the analog value (from A0)
using analogRead(pot), and saving it to variable c2. Then, subtract c2 value from 1024
and save the result in c1. Then make the PWM pin 12th of Arduino HIGH and then after
a delay of value c1 make that pin LOW. Again, after a delay of value c2 the loop
continues.
The reason for subtracting Analog value from 1024 is, the Arduino Uno ADC is of 10-
bit resolution (so the integer values from 0 - 2^10 = 1024 values). This means that it will
map input voltages between 0 and 5 volts into integer values between 0 and 1024. So if
we multiply input anlogValue to (5/1024), then we get the digital value of input voltage.
Learn here how to use ADC input in Arduino.
void loop()
c2= analogRead(pot);
c1= 1024-c2;
12
delayMicroseconds(c2); // waits for c2 uS (low time)}
CHAPTER 4
COMPONENTS DESCRIPTION
4.1 Transformer:
The transformer is static electrical machine that transforms one alternating current or
power remains the some during the transformation. That transformers play a
13
4.2 RESISTANCES
The resistance are heat dissipating elements and in the electronic circuits they are
mostly used for either control 98ng the currents in the circuit or developing a voltage
drop across it which could be utilized for so application There are various types of
resistance’s which can be classified according to a number of factors depending upon
(V) Cost basically the resistor can be splinted in to the following four parts with the
construction view point (1) Base
(2)Resistance element
(3)Terminals
(2)semivariable
14
4.3 CAPACITORS
The fundamental relation for the capacitance between two flat plates separate be
a dielectric materiel is given by C=0.08854KA where
C= capacitance in p:f.
K= dielectric constant
A=Area per plate in square cm.
D=Distance between two plates in cm
Design of capacitor is connected with the relation of the proper dielectric caterial
with particular type of application. The dielectric material used for capacitors may be
grouped in the various classed like Mica Glass air ceramic paper Aluminum electrolytic
etc. The value of capacitance never remains constant except under certain filed
condition it changed with temperature frequency and aging. The capacitance value
marked on the capacitor strictly applies only at specified room temperature and at low
4.4 DIODES
4.5 LED
As there name indicated it is a forward biased P-N junction which emits visible
light when energized. Charge carrier recombination tacked place when elections from
the N- side cross the junction and recombine with the heeds on the P side Now electrons
are in the higher conduction hand on the N side whereas holes are in the lower valance
band on the P side During recombination some of the energy difference is given up in
the form of heat and light (i.e.proton) in the case of semiconductor materials like
gallium arsenate (Ga As) Gallium phoshide (Gap) and Gallium arsenate phoshide
(GaAsP) a greater percentage of energy is released during recombination and is given
out in the form of light LED’s emit no light when the are reverse biased.
As the ratio of labor to the total cost of production is diminishing where the material ,
power and equipment cost is increasing day by day more need of economic and rational
use of resources is required . This enhance the importance of estimating and costing.
16
Estimating is done for finding the cost , which is likely to incorrect for
The Arduino project started in 2003 as a program for students at the Interaction
Design Institute Ivrea in Ivrea, Italy, aiming to provide a low-cost and easy way
for novices and professionals to create devices that interact with their
environment using sensors and actuators. Common examples of such devices
intended for beginner hobbyists include simple robots, thermostats, and motion
detectors.
17
The name Arduino comes from a bar in Ivrea, Italy, where some of the founders
of the project used to meet. The bar was named after Arduin of Ivrea, who was the
margrave of the March of Ivrea and King of Italy from 1002 to 1014
4.7 DC MOTOR:
A DC motor is based on a fact that similar poles (magnetic poles) repel and dissimilar
poles attract each other. An electromagnet field is generated in a coil of wire in a current
passes through it and is focused at the centre of the coil. When the current changes its
direction or intensity or switching action on and off in the coil, the magnetic field can be
changed be reversed by 180 degrees are can simply generate switching magnetic field.
In a dc motor a stator has a stationary magnets and armature has windings wring around
the insulated stacked around iron pole commonly known as stack teeth with ends
finishing at the commutator. Armature consists of bearings which are mounted at the
middle of the motor and connections of commutator.
18
D (Duty cycle) Voltage Using Voltage
Equation(V) Measured by
Multimeter(V)
The windings is winded around armature and is known as armature winding which uses
conductor(single or parallel) wires which are wrapped around stack teeth. EMF’s
strength depends on several factors such as current in coil, size of the coil and material
ringed around the coil.
Direction of EMF depends upon number of turns and sequence of turns in a coil. By
removing and injecting the coil inside and a great control over the dc motor can be
establish by designing the dc motor in such a way that the magnetic fields generated by
the stator fields using electromagnets.
A dc motor has linear torque-speed relationship. Here, load and speed are inversely
proportional to each other.
CHAPTER 5
RESULTS AND CONCLUSIONS
5.1 Results :
5.2 CONCLUSION:
19
The dc motor speed is controlled by using power electronic device and
the PWM is used which to control the speed of dc motor. The speed pulse
train will be based on required input speed. This circuit is useful to operate
the dc motors at required speed with very low losses and low cost. The
circuit response time is fast. Hence high reliability can be achieved. The
designed circuit was tested for various speed inputs satisfactorily. The
method already employed in traction system and has a good scope ahead.
20
CHAPTER 6
FUTURE SCOPE
This prototype further development and growth and can provide impetus to the cutting
edge technology. This device can be integrated with robotics, drones, cameras, house
doors, lockers, smart systems and buildings. It lays emphasis on eliminating the need
and use of multiple remotes for each individual object using with bluetooth or wireless
handled their motion of motor.
Using pulse width modulation output of an arduino microcontroller controls the speed
of dc motor that simulates a treadmill machine.
21
REFERENCES:
21