Speed Control of 2-Pole DC Motor Using PWM PROTEUS VSM 7.9 & AVR STUDIO (SOFTWARE)
Speed Control of 2-Pole DC Motor Using PWM PROTEUS VSM 7.9 & AVR STUDIO (SOFTWARE)
Kanak Chakravorty
Assistant Professor
Department of Electrical and Electronic Engineering
DBIT (Dehradun)
Abstract
The project reveals speed control of DC motor using PWM technique. In present days the power semiconductor devices have
completely revolutionized the control of drives especially in the area of control usage of thyristors igbts power MOsFET etc.
was increased. The digital circuit can be interfaced to microcontroller. So that speed can be controlled by Microcontroller. This
project is mainly concerned on design and implementation of bidirectional dc motor speed by using microcontroller ATmega16
and PROTEUS VSM software. Through the keypad we can achieve any speed at the time of running & also in initial starting
period. Pulse Width Modulation (PWM) technique is used which is generated using microcontroller Atmega16 the PWM signal
generated will drive the motor driver circuit. By varying the duty cycle the voltage across the motor is varied. PROTEUS VSM
software is used to provide a graphic user interface (GUI) for the user.
Keywords: ATmega16, DC MOTOR, LCD 16*2, MOTOR DRIVER L293D, PWM
________________________________________________________________________________________________________
I. INTRODUCTION
Speed control means intentional change of the drive speed to a value required for performing the specific work process. Through
this concept we can control speed of a motor on its running condition. Speed control is a different concept from speed regulation
where there is natural change in speed due change in load on the shaft. Speed control is either done manually by the operator or
by means of some automatic control device. In the past, speed controls of dc drives are mostly mechanical and requiring large
size hardware to implement. The development has launched these drives back to a position of formidable relevance, which were
hitherto predicted to give way to ac drives. Some important applications are: rolling mills, paper mills mine winders, hoists,
machine tools, traction, printing presses, and textile mills. Through this work we can bring motor speed in any rpm with the help
of setting counter through keypad.
199
Speed Control of 2-Pole DC Motor using PWM Proteus VSM 7.9 & AVR STUDIO (Software)
(IJSTE/ Volume 1 / Issue 10 / 039)
The magnetic field produced by the stators permanent magnets is fixed and therefore cannot be changed but if we change the
strength of the armatures electromagnetic field by controlling the current flowing through the windings more or less magnetic
flux will be produced resulting in a stronger or weaker interaction and therefore a faster or slower speed. Then the rotational
speed of a DC motor (N) is proportional to the back emf (Vb) of the motor divided by the magnetic flux (which for a permanent
magnet is a constant) times and electromechanical constant depending upon the nature of the armatures windings (Ke) giving us
the equation of: N V/Ke
C. Controller Overview
The ATmega16 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing
powerful instructions in a single clock cycle, the ATmega16 achieves throughputs approaching 1 MIPS per MHz allowing the
system designed to optimize power consumption versus processing speed.
D. Pulse Width Modulation
PWM is a very efficient way of providing intermediate amounts of electrical power between fully on and fully off. A simple
power switch with a typical power source provides full power only, when switched on. PWM is a comparatively recent
technique, made practical by modern electronic power switches. The microcontroller, ATmega16 has four PWM Channels.
Among them, timer/counter 0 and 2 are featured with PWM. We have used timer/counter0 (8-bit) to generate PWM for varying
the speed of DC motor. We used fast pwm mode. Again, it has 2 different mode of operation-inverted and non-inverted mode.
Inverted mode is used here.
E. Modes of Operation :
[2]
The mode of operation, i.e., the behavior of the Timer/Counter and the Output Compare pins, is defined by the combination of
the Waveform Generation mode (WGM01:0) and Compare Output mode (COM01:0) bits. The Compare Output mode bits do
not affect the counting sequence, while the Waveform Generation mode bits do. The COM01:0 bits control whether the PWM
output generated should be inverted or not (inverted or non-inverted PWM). For non-PWM modes the COM01:0 bits control
whether the output should be set, cleared, or toggled at a compare match.
200
Speed Control of 2-Pole DC Motor using PWM Proteus VSM 7.9 & AVR STUDIO (Software)
(IJSTE/ Volume 1 / Issue 10 / 039)
[2]
The fast Pulse Width Modulation or fast PWM mode (WGM01:0 = 3) provides a high frequency PWM waveform generation
option. The fast PWM differs from the other PWM option by its single-slope operation.
The counter counts from BOTTOM to MAX then restarts from BOTTOM. In non-inverting Compare Output mode, the
Output Compare (OC0) is cleared on the compare match between TCNT0 and OCR0, and set at BOTTOM. In inverting
Compare Output mode, the output is set on compare match and cleared at BOTTOM. Due to the single-slope operation, the
operating frequency of the fast PWM mode can be twice as high as the phase correct PWM mode that uses dual slope operation.
This high frequency makes the fast PWM mode well suited for power regulation, rectification, and DAC applications. High
frequency allows physically small sized external components (coils, capacitors), and therefore reduces total system cost. In fast
PWM mode, the counter is incremented until the counter value matches the MAX value. The counter is then cleared at the
following timer clock cycle. The timing diagram for the fast PWM mode is shown in Figure 1. The TCNT0 value is in the timing
diagram shown as a histogram for illustrating the single-slope operation. The diagram includes non-inverted and inverted PWM
outputs. The small horizontal line marks on the TCNT0 slopes represent compare matches between OCR0 and TCNT0.
III. EQUATION
Counter Between 0 255
0= 0%, 255= 100%
The Function sets the duty cycle of pwm output generated on OC0 PIN. The average voltage on this output pin will be
Vout =
; Duty=maximum count, V=supply voltage, VOUT =Terminal voltage
The average voltage at output is given by Va= 1/T V0dt = t1/T Vs = (ft1) Vs (f=1/T) = kVs (k=f t1)
2
201
Speed Control of 2-Pole DC Motor using PWM Proteus VSM 7.9 & AVR STUDIO (Software)
(IJSTE/ Volume 1 / Issue 10 / 039)
V. CONCLUSION
The microcontroller based speed control of dc motor has been introduced. Controlling a permanent magnet DC motor by setting
PWM counter which finally result in change in duty cycle. The system will be made user friendly so that anybody can operate
the system without any trouble. LCD display will used to show the information of the system. Knowing the required speed user
can change the amount of duty cycle if necessary.
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
[8]
[9]
BL Thereja. A Text Book of Electrical Technology, Volume II. S Chand & Co, New Delhi, 1992
Pulse width modulator module (PWM), ATmega16 data sheet.
Data sheet L293D
Valter Quercioli, Pulse width modulated (PWM) power supplies, Elsevier, 1993
MDPR,Jayawickrama SS, PC based speed controlling of a dcmotor, A final year report University of Moratuwa Illiniaus USA, 2001102.
Atmel AVR Microcontroller Primer: Programming and Interfacing. Steven Frank Barrett, Daniel J. Pack Morgan & Claypool Publishers, 2008
LCD interfacing, the microcontroller and embedded systems by Muhammad Ali Mazidi,Janice , GillispieMazidi, Rolin D.Mckinlay
Ali, Y.S.E. , Putra Malaysia, Selangor, Malaysia ;Noor, S.B.M. ; Bashi, S.M. ; Hassan, M.K. ; Microcontroller performance for DC motor speed control
system; In the Proceedings of National Power Engineering Conference, 2003. PEC, 2003; 15-16 Dec. 2003; pp 104 - 109.
Ettomi, Y.S. Dept. of Electr. & Electron. Eng., Putra Malaysia Univ., Malaysia Moor, S.B.M. ; Bashi, S.M. ; Hassan, M.K.; Micro controller based
adjustable closed-loop dc motor speed controller; In the Proceedings of Student Conference In the Proceedings of Student Conference on Research and
Development, 2003; 25-26 Aug. 2003.pp 59 63.
202