DC Motor Speed Regulation with A PWM Feed Back System

By

DC Motor Speed Regulation with A PWM Feed Back System


Basic PWM
One of the easiest ways of generating an analog voltage from a digital value is by pulse-width modulation ( PWM ). I PWM a high frequency square wave is generated as a digital output. For example, a port bit continuously swiched on and off at a reltive high frequency. The signal is fed to a low pass filter. The voltage at the otuput of filter is equal to ther Roo Mean Squeare ( RMS ) of the squeare wave signal. The RMS of the square wave signal may then be varied by changing the duty cycle of the signal. A cycle is initiated by a low to high transition of the signal and terminates at the next such transition. During one cycle if the time the signal stays high is equal to the time the signal stays low, then the duty cycle is said to be 50 percent.
Figure 1. Duty Cycle 30 %
The following circuit shows a DAC constructed with PWM. The Program controls the speed of a DC motor by pulse widht modulation ( PWM ). Bit P3.0 Drives a switching transistor as shown in the circuit diagram. Motor is swiched on for a period of time, and then off. The fraction of time the motor is on is call the duty cycle.
Microcontroller Motor Speed Control
Figure 2. Pulse widht modulation to Control Motor Speed





This program uses a byte to store the time the motor is on, that is the number of cycles out of 256 cycles while the motor is on. a value of 10 means that the motor is on 10 cycles and off 246 cycles.The duty cycle value is stored in the internal register labeled dCycle. The complement of the duty cycle is similarly stored in register labeled dCycleC. ( Download File : motor.zip )
dCycle   equ 30h
dCycleC  equ 31h
count    equ 32h
Analog0  equ 33h
Analog1  equ 34h
PWM      bit P3.0
Channel  bit P3.1
PortADC  equ P0
DCLB     equ 000h
DCUB     equ 0F0h
MotorCondition bit 20h
;
         org 0h
         ljmp start
         org 0bh
         ljmp Timer_Interrupt0
start:   call Init_Interrupt_Timer0
         clr PWM ; Turn off motor
;==================
; Main Routine
;==================
Forever: call ADC
         call Update
         sjmp Forever
;
;======================
;Subrutine Timer Interruption
;======================
Timer_Interrupt0:
         JB MotorCondition,MotoroFF
         Setb PWM
         Mov TH0,dCycle
         Setb MotorCondition
         reti 
;
Motoroff:clr PWM
         mov TH0,dcycleC
         clr MotorCondition 
         reti 
;
;=========================
;Subrutine Initialize Timer Interrupt
;timer 0 as counter 8 bit mode 2
;========================
Init_interrupt_Timer0:
         mov TH0,#dCycle
         Mov TMOD,#00000010b ;
         setb ET0 ; Enable Timer 0 Interrupt
         Setb EA ; Master Interrupt Enable 
         setb TR0 ; start rock and roll timer 0
         Setb MotorCondition
         mov count,#50
         mov dCycle,#0
         mov dCycleC,#0FFh
         ret
;
;========================
;Subrutine Update - Update duty cycle
;=========================
Update:  djnz count,upDone
         mov A,analog1; reference voltage
         mov b,analog0; tachometer voltage
         clr c
         subb a,b
         jnz update1
         ret
Update1: jc decrease
         call higherDC
         ret
Decrease:
         call lowerDC
UpDone: 
         ret
;
;====================
;Subrutine lowerDC 
;====================
LowerDC: mov a,dCycle
         cjne a,#DCLB,DecDC
         ret
         DecDC: dec dCycle
         inc dCycleC
         ret
;
;===================
;Subrutine HigherDC 
;===================
HigherDC:
         mov a,dCycle
         cjne a,#DCUB,IncDC
         ret
         IncDC: Inc dCycle
         dec dCycleC
         ret
;
;=============
;Subrutine ADC 
;=============
ADC: Clr channel ; Pick channel X0 from multiplexer 4051
     mov Analog0,PortADC
     Setb channel ;Pick channel X1 from multiplexer 4051
     mov Analog1,PortADC
     ret
; 
     end

Keywords:dc motor pwm frequency, dc motor pwm control, dc motor pwm
control arduino, dc motor pwm frequency selection, dc motor pwm circuit, dc
motor pwm vs voltage, dc motor pwm speed control h bridge, dc motor pwm duty
cycle, dc motor pwm control circuit, dc motor pwm driver, dc motor pwm, dc
motor pwm arduino, dc motor pwm avr, dc motor pwm amplifier, dc motor and pwm, dc
motor control pwm arduino, dc motor pwm control avr, dc motor interfacing and
pwm, dc motor control using pwm abstract, dc motor speed control using pwm avr,
dc motor speed control using pwm atmega, controlling a dc motor with pwm, driving
a dc motor with pwm, dc motor pwm back emf, dc motor pwm brake, dc motor pwm h
bridge, dc motor control by pwm, brushless dc motor pwm, brushless dc motor pwm
frequency, dc motor speed control by pwm technique, dc brushed motor pwm
frequency, brushed dc motor pwm, brushed dc motor pwm control, dc motor pwm
current control, dc motor pwm current, dc motor pwm capacitor, dc motor pwm
control torque, dc motor pwm controller ic, pwm dc motor c code, ccs c pwm dc
motor, dc motor pwm driver ic, dc motor pwm drive, dc motor pwm direction, dc
motor driver pwm speed control, motor dc dengan pwm, pengaturan motor dc dengan
pwm, driver motor dc dengan pwm, pwm dc motor drive circuit, dc motor pwm emc, dc
motor pwm emi, dc motor pwm efficiency, dc motor pwm entstören, dc motor
control using pwm efy, pwm en motor dc, speed control of dc motor using pwm efy,
dc motor pwm filter, dc motor fet pwm, dc motor speed control using pwm from
arduino, dc motor speed control using pwm from pic16f628a, pwm dc motor
controller for pic16f877, pwm dc motor transfer function, pwm generator dc
motor, gemini pwm dc motor drive, dc motor control pwm h bridge, dc motor speed
control pwm hho rc controller, 1/2 hp dc motor + pwm speed control, pwm dc
motor hız kontrolü, pwm ile dc motor hız kontrolü, pwm ile dc motor hız ve yön
kontrolü, pwm ile dc motor hız kontrol devresi, dc motor h-brücke pwm, h bridge
dc motor pwm, h-bridge pwm dc motor control, h bridge dc motor driver with pwm,
arduino dc motor h bridge pwm, dc motor pwm ic, dc motor control using pwm in
avr, brushed dc motor driver ic pwm control, how to drive dc motor in pwm, dc
motor interfacing using pwm, pwm in dc motor, speed control of dc motor using
pwm in matlab, igbt pwm dc motor, dc motor pwm kontrol, dc pwm motor speed controller
kit, pwm dc motor controller kit, kendali motor dc pwm, pengaturan kecepatan
motor dc pwm, dc motor hız kontrolü pwm, pwm dc motor kontrol devresi, pwm ile
dc motor kontrolü, pwm ile dc motor kontrol devreleri, dc motor pwm labview, l293d
dc motor pwm, l298n dc motor pwm, arduino l293d dc motor pwm, arduino l298 dc
motor pwm, pwm based dc motor closed loop speed controller, pwm based dc motor
closed loop speed controller.pdf, l298 pwm dc motor schematic, l298 dc motor
pwm, l6203 pwm dc motor circuit, dc motor pwm microcontroller, dc motor mosfet
pwm, dc motor control using pwm microcontroller, dc motor speed control pwm
mach3 speed control, dc motor speed control using pwm method, speed control dc
motor using pwm microcontroller, pwm dc motor control matlab, permanent magnet
dc motor pwm, dc pwm motor speed controller - 15a max, 10a dc motor speed
control pwm mach3, dc motor pwm noise, dc motor speed control pwm using ne555, pwm
dc motor control noise, arduino pwm dc motor, pwm ne555 dc motor, dc motor
control with pwm on atmega, pwm of dc motor, speed control of dc motor pwm, speed
control of dc motor pwm technique, pwm dc motor control based on the arduino
microcontroller, dc motor pwm rate, dc motor speed control using pwm report, pwm
dc motor regulator, raspberry pi dc motor pwm, speed control of dc motor using
pwm research paper, pwm dc motor controller rev.1, dc motor regler pwm, pwm dc
motor controller rev.2, pwm dc motor speed regulator, dc motor pwm speed
control, dc motor pwm soft start, dc motor pwm simulink, dc motor pwm schematic,
dc motor pwm signal, dc motor pwm snubber, dc motor pwm torque, dc motor pwm
theory, dc-motor pwm torque control, dc motor pwm tutorial, dc motor pwm
transistor, dc motor control pwm technique, arduino dc motor pwm transistor, dc
motor control through pwm, dc motor control using pwm technique, dc motor speed
control pwm tutorial, dc motor pwm using 555, dc motor using pwm, dc motor
control using pwm ppt, dc motor control using pwm pdf, dc motor control using
pwm circuit, dc motor control using pwm project report, dc motor control using
pwm arduino, dc motor speed using pwm, dc motor torque vs pwm, 12 volt dc pwm
motor controller, pwm dc motor vezérlés, pwm motor dc vhdl, control velocidad
motor dc pwm, control velocidad motor dc pwm arduino, controlar velocidad motor
dc pwm, control velocidad motor dc pwm 555, dc motor pwm wiki, dc motor pwm
waveform, dc motor with pwm, dc motor with pwm control, driving dc motor with
pwm, controlling dc motor with pwm arduino, dc motor control with pwm circuit, dc
motor speed control with pwm technique, dc motor speed control using pwm with
pic microcontroller, control de motor dc con pwm y pic, pwm y motor dc, control
de motor dc con pwm y puente h, pwm za dc motor, 12v dc motor pwm, 180v dc
motor pwm, 12v dc motor pwm controller, 100a digital dc pwm motor speed
controller, 16f628 pwm dc motor, 16f877a pwm dc motor, 3v dc motor pwm, pwm dc
motor speed control 30 amp, 30a pwm dc motor speed control, pwm para motor dc
30a com pic 16f877a, pwm dc motor controller rev.3, pwm 12v dc motor 30a, 3. dc
motor speed control using pwm technique, 3 amp pwm dc motor controller, dc
motor pwm 555, pwm dc motor controller 50a, 50a-dc-pwm-motor-speed-controller, pwm
dc motor controller 555, pwm dc motor circuit 555, 50a digital dc pwm motor
speed controller, 555 pwm dc motor speed control circuit, pwm dc motor control
using 555 timer, speed control of dc motor using pwm 555, 6v dc motor pwm, dc
motor control using pwm 8051, dc motor speed control using pwm 8051, 8051 dc
motor pwm, dc motor speed control using pwm 8051 project, dc motor speed
control using pwm 8051 ppt, pwm control dc motor using 89c51, 8051 pwm dc motor
speed control,


0 comments:

Post a Comment

If you have any questions or droughts feel free to ask here.