Tuesday, June 4, 2019

Control The Speed Of The DC Motor Engineering Essay

Control The Speed Of The DC Motor Engineering EssayDirect original (DC) drive is utilize in a coarse range of applications air divisionicularly in automation technology due to minimal potency consumption. In the proposal DC motor plays an effective role in Hardw be fulfilation. The principal(prenominal) principle behind the pop is to use the exhibiti cardinalr support to run the DC motor its one of best feed posterior simplenesslers. For estimating the velocity and the armature rate of flow of the DC motor with 24 volts and a dsPIC Micro comptroller is programmed .The high up all operation is done in a closed control circulate function.Table of contents1.2 Objective2. Specific Aims of the projectChapter 11. Introduction1.1 BackgroundBrushed DC MotorDC motor modelDigital control of dc motorAdvantages of dc with respect to hotfoot controlAnalogue control of dc motor2.1 ds PICdsPIC30f 30102.2 MPLAB IDE3. Design and ResearchCascade controlCurrentloop dynamicsSpeed loop dynamics3.1 Components for controlling 24v clanked Dc motor3.1. elastic inverted board3.2.1 Generating PWM wave hurls3.1.2 H-Bridge converter3.2 Softw atomic number 18 techniques utilize in DC motorProgramming micro ascendency in Flexible inverted board4. Results and Discussion5. Conclusion6. AppendixList of FiguresFIGURE 1 movement of brushed DC MotorFIGURE2 General immobilise diagram of repair loop and incumbent loop of DC MotorFIGURE3 H-bridge converter with different potential drop V VCHAPTER 11. INTRODUCTION1.1 ObjectiveThe main function of the project is to control the speed of the DC Motor utilise a dsPIC30f3010 micro comptroller. For that implement a separate hardw be to satisfy the main function of the project.1.2 Specific Aim of the projectIn order to achieve the main core of the project, take a leak up Hardw ar for controlling the speed control of DC motor. The main hardw ar requirements areds PIC microcontrollerICD interface connector for placement int erfaceDC power supplyMOSFETCurrent sensorsThe above components are required to construct a hardware called Flexible Inverted Board 4.1.3 OUTLINE OF PROJECTStep1In this paper a flexible inverted board is constructed with the series of hardware componentsStep2Then communicate the Flexible inverted board with governance using MPLAB IDE software outline with ICD-3 interface 4.the language apply in the MPLAB software is C-language.Step3The speed loop and the reliable loop are the dickens important functions for controlling the speed of the Dc motor. In our project the key promontory is to control both the loops by C-programming language using MPLAB ICD-3.The speed loop of the microcontroller is called speed controller and the la leaven loop of the microcontroller is called menstruation controller.CHAPTER 2THEORITICAL TECHNIQUES AND THEIR REVIEWS2 Background2.1 Brushed DC MotorIn automotive industries DC motor is use widely in go off pump control, electronic steering control, e ngine control and electric vehicle control 6for its cost effective and it is utilise in many applications like glop and paper industries, fan pumps, press, winder motors 2,home appliances, washers, dryers and compressors6 are some of the best examples. DC motor is one of the important hardware employed in this paper, it consists of a rotor coil and stator, and the parts are placed in a permanent magnetic field. Commutator and brush are placed in between the rotor and stator. Positioning the brush at a particular direction in the rotor is classified into some categories and they are radial, trailling or leading 3 positions. When the rotor rotates the commutator and carbon brush interface at a point, which produces an enormous gist of magnetic field from the brush of the motor and it produces ongoing to the armature winding of the Dc motor.FIGURE 1 Operation of BRUSHED DC Motora2.2 DC Motor model 8 for each one motor will have different specification and requirements. According to motor requirements and details the model deal be designed. The aim of motor model, deals with controlling the applied voltage of both speed and modern. The basic model for a Dc Motor is shown underFIGURE2 DC Motor modelThe above diagram is a simple RL circuit. RL circuit is called tube inductance circuitand a 24v DC Motor. All these components combine to form RL circuit.Now the derivation part of the RL circuit is explained belowT (t) = Jw is the Angular velocityJ is the moment of inertiaB is the crashT is the armature TorqueT (t) = (t)is the Torque constantis Armature currentAccording to Kirchhoffs law(t) (t) = (t) +and are the inductance and resistance for the armature current (ia)The electromotive of the motor chamberpot be determined by multiplying the back emf with speedThe relationship for the electromotive force is shown below(t) =The situate model for any DC motor using ia and w (speed) is mentioned below.= +2.3 ds PIC -microchipds PIC stands for Programmable Interf ace Controller or programmable intelligent computer, which act as an important controlling unit for entire system. The main objective of this project is to make the ds PIC to generate 6PWM waveform. In an ideal condition the waveform from the heartbeat width modulation rat control the H-bridge converter. It not only serves as an interface controllers but also plays a role of a programmable logic controller (PLC). 16,20ds pic has a entrepot of 16bit microcontroller that has two major functions. Firstly it can act as a software part serving software functions and the other is a hardware part serving hardware functions.The input preindications that are attain from the feedback serve system are received by the software part which in turn utilizes the codes that are written on the chip on C language to analyze the input and operate the hardware. Finally the software makes sure the hardware runs based on the software functions to gain the required siding. 18, 20Our project concentra ted on working experiments that were run at lab conditions. Since a couple of systems have certain differences from the comment that have been run in real conditions compared to ideal conditions. This in turn is the working of the microcontroller.dsPIC30F 3010, 2010 4011 and 3012 are the series of chips that have been available in the Lab. The letter F in ds PIC30F and such chip states that the chip contains flash retentivity. The reason for considering this flash remembering product is because 30F has an ex-ordinary performance when compared to EPROM (Erasable Programmable Read-Only Memory) and one time programmable chips (OTP). This has been a major requirement for the running of this project to get the required output.16-bit modified Harvard architecture has been added to the CPU containing ds PIC30F for utilizing the info and upgrading the set of guide lines for running digital repoint processing (DSP) 14. There is a lengthy flexible opcode field which has been installed i n the CPU that has a 24 bit wide user coder memory area and the total addressing speed can go up to 4M-24 bit. This programming model has sixteen 16bit working registers in ds PIC30F chip. There are two classes of introduction controlling unit that have been integrated and use for execution they are integrated and utilize for execution 2.2.3.1 dsPIC30F 3010This section is about the crepuscule configuration and the components available in dsPIC30F3010 microcontroller. Normally the memory allocation in dsPIC30F 3010 can classified in to three categories they areS beat in in BytesEEPROM in BytesProgrammable memory in Bytes/instruction2.3.1.1 SRAMSRAM stands for static RAM (Random Access Memory). According to the tabulation shown below the selective information condition for static RAM should not exceed 1024 bytes. The memory in the function can classified in two types they areX Data RAMY Data RAMThe static RAM uses X -RAM and Y_RAM for storing infos.2.3.1.2EEPROMThe memory allo cation for EEPROM is same as static RAM. In read only memory one of the important types of ROM used to entrepot memory is EEPROM. The main function of this ROM is based on two parameters they are endurance and retention 2. Endurance is to retain the data even by and by the ROM fails. Therefore the data cant be deleted at any instant. Time period is required to store data that is taken care by retention 2.2.3.1.3Program memoryIn a particular program ds PIC30f microcontroller has a separate memory allocation for storing both the address and data. The memory bounds for the program memory is 24K.program address space anda data address spaceTABLE 1 Tabulation for memory allocation in ds PIC30f3010The pin configuration of dsPIC30f3010 is described belowFIGURE 3 Pin configuration of dsPIC30F 30102Pin descriptions(PWM1L and PWM1H), (PWM2L and PWM2H) (PWM3L and PWM3H) 2 these are six different types PWM channels used in the pin configuration. In which each PWM pair generates three duty cycles with one high output (H) and one low output (L).INT0, INT1INT2 are the relegate buffers used in the PIC. VSS and VDD 2 are the supply voltage and ground in the PIC controller.U1RX U1TX, U1ARX U1ATX 2 are the series of pins used for communicating PIC microcontroller with PC, in other system interface operation can be done by UART function. In that RX stands for receiver and TX stands for transmitter. The above pin function plays an important in our project.CHAPTER 3methodological analysis3.1 Components for controlling 24v brushed Dc motorSince the project is fully based on hard ware so many components are available and how they work in that operation.3.1.1Cascade control operation in Dc MotorThe below operation is done by using Double cascaded layout, it consists of two loops they are current controller with current reference and speed controller with speed reference 5 as shown in .FIGURE4 General block diagram of speed loop and current loop of DC Motor bThe current loop is covered by the speed loop, in the block diagram it has the two circles home(a) circle is called inward loop and the outer circle is called outer loop since the inner circle operation is always quicker than the outer circle. In other words inner circle performance is multiple of ten times quicker than the remaining one. The cascade control principle is mainly used in our project to insist the speed of the motor at a constant level and the current loop in the cascade control is the armature current and it is otherwise called as torque. sometimes armature current may exceed the limit to avoid this situation in cascade control, it has limiter, and the main function of the limiter is to limit the values of the armature current. For example To limit the armature current to 64volt i.e. 1 ampere. So that the armature wont exceed those limits since the limiter is available in cascade control. The speed controller in the cascade control used to produce demand current ia*. The motor runs t o overcome the demand current values. The demand current value will always higher than the normal current values. So that the speed motor gradually increases.PI controller(proportional Integral controller)Current controllerSpeed controllerThe above all components construct a cascade controller and the function each component is described below3.1.1.1PI controller (proportional and integral controller)In cascade controller function various controllers are used for detecting the speed and control of the motor, but PI controller is recommended as high efficient controller because it consist to constant gain Kip and Kid. By manually tuning the gain of both Kii and Kpi will bring low the steady state illusion and the stability of the system will be increased. In recent survey more than 70% cascade controller used PI controller for controlling the speed control DC Motor. In order to reduce the steady state error in the closed loop system, gradually increase the proportional gain consta nt Kp. As the gain of the Kp increases the steady state error in the system decreases. But the stability of the system will not be stable. To make the system stable, integral term Ki is introduced in the system. When both the proportional and integral term sum each other to reduce the steady state error and make the system stable .the above two functions can be done simultaneously in the PI controller. The mathematical expression for PI controller is explained below.FIGURE 5 PI controller of a closed loop function 1Kp-proportional gainKi-Intergral gainY- Output of the PI controllerErr-Error in the PI controllerAt the beginning error (Err) will pass through both Kp and Ki.For proportional gain the output is Kp Erry1= Kp Err eqn1 1y2 = eqn 2 1y = y1 + y2 eqn 3 1eqn 4 1The key point in this PI controller is the error Err in intergral gain Ki will be integrated. so that the steady error will be reduced and the system will be stable.3.1.1.2Current controllerThe current controller in the closed loop functions of the cascade control. The current loop is also called as current controller. It is used to protect cascade circuit from damage. The main function of the cascade function is to control the speed. Before controlling the speed the current of the controller should be controlled. The current obtained from the closed loop function is from armature circuit of the DC Motor 7.the input in the current controller is the back emf (ia*). powerfulness converter is mainly used to improve the control in the system. It has high switching frequency, since the power converter in the current loop is very quick. The output of the converter is armature voltage (Va).(-E) is the disturbance occurred in the current loop, in order avoid the disturbance-Eiaia*RL CIRCUITTPower ConverterPIFIGURE 6 useable block diagram of Current controllerThe disturbance is added along with RL circuit, and the equation is shown belowVa = (S La + Ra) ia + EThe function of the RL circuit is reduce comple xityVa is Armature voltage.ia is armature current (trying to control)Ra is Armature resistanceE is DisturbanceRL = 1/(S La + Ra)Current loop is carried out by transmitting the from ia(armature current) to ia*(demand armature current). As quick as likely without making the over shoot getting so high. If the over shoot is high it creates problem to the converter. Similarly when the gain values (Kp and Ki) increases in PI controller the over shoot value reduces, but the same time there is more amount of oscillation which may affect the system. Care should be taken in choosing both Kp and Ki values.tsiaia**FIGURE 7 graph for armature current vs settling timeia Armature currentia* Demand armature currentts Settling time3.1.2 Flexible inverted boardThe major hardware has been designed and implemented as Flexible inverted board.It consists of many components they are dsPIC30F3010 microcontroller, H-bridge converter and dc motor. The functions of these hardware components are explained earlier. The above all operation is implemented in a single hard ware called flexible inverted board.FIGURE 8 Functional block diagram of Flexible inverted board3.1.2.1 IR2130 furnish drive circuitThere are three input signal beginning blocks which are up to(p) of providing two outputs each gives the inputs to the six output drivers. L1, L2 and L3 are signal generators which drive precisely the three low-side output drivers although H1, H2 and H3 signal generators must be level shifted to begin with it is ply to the high-side output drivers.The floating points of the driver, gate charge requirements of the power switch and the level best power switch ON times receives power from three bootstrap capacitors C1, C2 and C3. Bootstrap capacitors also feed supply to the internal floating driver current. Once these energy requirements are met there must be considerable amount of charge still on the 8.3V nominal to prevent stopping. D7, D8 and D9 should be super-fast.VCC level seen by an under-voltage detector circuit gives an input to outlaw six outputs of the signal generator circuits. Current sensor R1 derives the ITRIP signal in the main power circuit of the motor when it is segregated with a 0.5 volt reference to outlaw the six signal generator outputs. ITRIP inputs sets up a fault logic circuit which in turn gives open drain TTL output for system gesture.FIGURE 9 rophy diagram for IR2130 gate drive circuit3.1.2.2Trim port function with PWMTrim port are humbled in size and they are very small in size .it is mainly used in many PCB construction board since its occupies less space.The trim port act like a skunk and it is otherwise called as trimmer . By tuning the trim port, resistance value can be minimized or maximized. For example if a 50ohm resistance can be tuned by trim port from 0 50.The two leg of H-bridge converter produce two pulse wave form one with low output (1L) and another one with high output (1H). The duty ratio of the PWM wave form can adjust using trim port.3.1.2.3DC aim ENCLOSED WITH A ENCODERThe best methods of calculating the speed of the DC motor is using optical encoder method. It consists of a magnetic disc, Light Emitting Diode (LED) and optical sensor 6. The record book is fitted with the rotor, as the rotor rotates the disk starts spinning along with the rotor and it is placed in between the LED source and the light sensor. Once the rotation starts the disk passes through the LED source and the optical sensor gets started, from which the speed of the motor can be calculated because the optical sensor acts like a tachometer. In other words the encoder in the DC motor is otherwise called as speed detecting sensors. 63.1.2.4 H-Bridge converterDC motor runs differential speed, but the applied voltage of the motor varies at every interval of time. Since the voltage is directly proportional speed, as the voltage increases the speed of the motor also increases. Speed can be calculated by tachometer which is in build in the DC motors, the applied voltage can be supplied and controlled by a converter called h-bridge converter.GDGD Gate Drive CircuitFIGURE 10 H-bridge converter with different voltage V VcIn this H-bridge circuit it produces two unipolar pulse width modulations because it has two leg inverter. Effective modulation takes place only in the first half of the inverter. As a pass two inconstant voltages are generated on either side of the armature winding.In H-bridge, modulation index is followed as (+mi) and the reciprocal of modulation index is represent as (-mi).the motor in our project actually experiencing two pulse width. Both the pulses are inversely proportional to each other producing a unipolar PWM.The two legs in the converter are called the switching signals or switching frequency. Bigger converter relatively has lower frequency and smaller converter has higher frequency. If the frequency in the leg1 is high in contrast the frequency in the leg2 will be low.In our project consider V and V are the switching channels of the H- bridge converter . they are inversely proportional to each other.The carrier signal is called the input frequency . the carrier frequency used in our project is 10khz. According to the carrier frequency the time period of V and V differs.In C coding V and V is mentioned as PDC1and PDC2 from the below graphFIGURE 11 graphical representation of PWM signals in H- Bridge converter.The output voltage of the h-bridge converter can be obtained both prejudicious and positive voltage distribution 1. heartbeat width modulation in the h-bridge converter helps to control the armature circuit of the DC motor 1. Maximum armature current (torque) can be obtained by comparing time constant of both field winding and the armature winding 1. Since the motor is connected directly to the field windings supply voltage in the field winding is more when compared with the armature winding. To maintain equal time constant in both field and a rmature winding 1, the applied voltage in the armature winding should be increased, as the armature current increases the torque output is maximized 1.3.1.3 Generating PWM wave formsAs the torque output gets maximized, pulse width modulation is introduced in the H-bridge system to avoid the disturbance in the armature current.it can be done by increase the frequency level of the H-bridge converter at a higher range.As the torque output gets maximized, pulse width modulation is introduced in the H-bridge system to avoid the disturbance in the armature current.it can be done by increasing the frequency level of the H-bridge converter at a higher range.FIGURE 12 Diagrammatic representation of the pulse width modulation is shown below 6The below specification is referred from 6Ton Time is ON (applied voltage)Toff Time OFF (applied voltage)T Time period.Duty cycle =.The average voltage of the DC motor can be shown in an equation belowAverage = Duty cycle - Vin 6When the motor is runni ng at a constant speed the back emf of the motor is also remain constant.As the back emf remain the same the motor running at constant speed and the armature current (Ia) is zero. PWM is one main part that is required for the operation of cascade control.4. Software used to drive the Motors4.1 Programming microcontroller in Flexible inverted board using C-languageIn the flexible inverter board PIC microcontroller plays a major position in directing the pulse width modulation. The Ton time in the pulse width modulation (PWM) signal can be modulated or controlled by the microcontroller, as the microcontroller varies the time, the velocity of the motor changes with respect to time. The Programing language used in microcontroller is embedded C. The programming codes are downloaded in the microcontroller chip, the downloading approach can be done by a software development tool called MPLAB, this software exists in monitoring the systems, this software should be first installed in the PC, the programmers will write the codes to modulate the PI controller to acquire Applicable source from the current loop of the cascade control function. Once the codes are accepted according to the current loop 1, the programs can be downloaded in the microcontroller through universal sequent bus or in circuit Debugger (ICD) ICD is a bus which interfaces PC system and the flexible inverter Board. 6In order to program the microcontroller examine whether the hardware components are interfaced with the controller. The programming language used for programming the controller is C language. In c-language the datas are classified in to input data and output data. The microcontroller send the breeding in parallel signal, where the C-language wont accept analogue signals .To avoid the situation ADC converter and encoder interface are introduced in the system. ADC stands for analogue to digital converter it converts the analogue signal in to digital signals. Then the digital signals get re ceived by the C-program as input data. In turns c-program will send the output data to the PWM unit. UART communication system is a bidirectional so that microcontroller and PC can communicate simultaneously. UART stands for universal asynchronous receiver transmitter. The basic diagrammatic representation for system communication with C-language is shown belowFIGURE 13 System communication in C Programming Language.In C-language firstly initialise all the functions required for the speed control of motor.4.1.1Current sensor inputThe current in the motor coils is one important parameter in the effective running of the motor. So it is essential to whole step the value of this current. The measurement of the current is performed by using special sensors call Hall Effect Sensors. The range of the current is determined by the rating of the motor. every over current in the motor can badly damage the motor. The Hall Effect sensors produce a voltage corresponding to the phase current. Th is is fed to the ADC inputs of the micro controller where it is converted into the digital signals. This is then fed into the microcontroller program. Hence the current needs to be limited within specific limits.CL1, CL2 and CL3 are the three current sensors variables used in this coding. The bit ratio of the ADC input is 10 so the input data ranges from 0 to 1023. The maximum data limit for the current sensor is 1023.so the current sensor value in the C- code is initiated asCL1 = 511 CL2 = 511 CL3 = 04.1.2 Encoder inputFor any speed controller, the actual speed of the rotor forms the arse for the control signals. The speed control signal can be changed only if there is an error between the actual speed of the rotor and the desired speed of the rotor. If the measured speed is less than the desired speed then the PWM pulses are varying accordingly to increase the speed. To perform this action a hawkshaw encoder is used. The shaft encoder uses an opto-mechanical system to generate p ulses.These pulses then are used to derive the speed of the rotor. A reference pulse is used as an indicator to count the pulse. This schooling is fed to the microcontroller, which then uses a special timing circuit that processes these encoder pulses. The motor speed to be accessed by the microcontroller needs to be stored in a variable within the micro controller code. The variable used in this program is a variable called rpm. This variable is accessed to calculate all functions related to the motor speed.4.1.3 Pulse Width ModulationThe MOSFETs in the circuit is used as switches. These MOSFETs are switched according to a PWM. To drive these MOSFETs a gate driver circuit is required. The gate drive signal generates the voltage required for the operation of these MOSFETs. The PWM is generated by the microcontroller according to the program and is supplied to the gate drive circuit. The PWM signals are separate for each if the 3 legs of the MOSFET inverter. Each of the PWM requires a modulation index to generate the signal. These modulation indexes are stored in a register. The registers are named as PDC1, PDC2, and PDC3. These variables are very crucial in generating the PWM signals for the MOSFET drivers. Since data limit is 1023.4.1.4 Initializing the code in C languageBefore performing any function in C-language, it requires an initialisation. It is important to initializing the variable of a function. Some the functions are initialized below.Init PORT ()This function initialize the digital input and output port or analogue input and analogue output of the microcontroller.Init UART ()It is one of pin in the microcontroller .The main function of the UART is used for bidirectional communication with PC. Since UART can able to detect the transmission speed in data transfer between the microcontroller and PC. The maximum transmission speed is some 19200.the data transfer wont exceed the limit.Init PWM ( )The input frequency of our PWM signal is 10kHz.the ti me limit for the modulation index is around 0-1474.in the h-bridge converter has two legs so each leg produces a PWM signal with a maximum time limit of 0-737. Hence the Ton time of PWM signal will be in 11 duty ratio.Init ADC ( )It is used to convert the analogue signals in to digital signals. In the microcontroller there are quintet pins reserved for the ADC inputs. During the data transmission ADC functions plays a important role in interrupting the signal. An initialisation is required for the interrupt to perform any function in C- language.Init gravel ( )The capture function is mainly used to measure the frequency and time period of the PWM wave form generated from the two legs J30 and J31 pins of the H-bridge converterInitTimer3 ( ) and InitTimer1 ( )To set initial time in the microcontroller for the capture function and timer 1 set the starting time for the interrupt function happened in the UART communication system.InterruptsInterrupts are occurred only during the data t ransfer, when the transmission speed that is the baud rate is known means the interrupts can be added to the system easily.in our project the baud rate is 19200.the main function of the interrupt is used synchronize time period of PWM with the speed loop and the current loop of the motor. In our project four different type of interrupt attend to routine are used.They are ISR_ADCInterput ( )This interrupt is triggered when the ADC finishes its conversion and hence its get synchronized to the microcontroller PWM time base. From this all the application control code to be implemented in this interrupts service routine.ISR_T1Interput ( )The various information to the PC is transferred by using the UART communication link in this interrupts service routine. All the variables that are needed to be mentioned in this routine using standard C function sprint ( ).ISR_U1RXInterput( )Various information is transferred from the PC in to the C program. This routine concedes us to thwart the asp ects of the program when it is running.ISR_IC1Interput( )It measures the speed value from timing data that are attained in the input capture module.FIGURE 14 The connection diagram for the speed control of Dc motor is shown aboveCHAPTER 55 Results and discussionAs discussed earlier the various functions of hardware components in this project, this section discusses the details regarding how the project deals with comparing and evaluating the results. Project has a series of steps each step is assigned with different operation techniques to execute the final results.5.1 Initial connection test between MPLAB IDE and Flexible inverted BoardInitially the system needs to be interfaced using the flexible inverter board. This operation is performed by conne

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.