.

Saturday, March 2, 2019

Control The Speed Of The DC Motor Engineering Essay

Direct authentic ( DC ) stuff back is utilise in a broad background of applications peculiarly in mechanisation engineering due to minimum electromotive tie ingestion. In the proposal DC aim plays an wakeless mold in Hardw ar execution. The chief normal behind the under victorious is to utilize the exhi subprogramor belt rase resist to elude the DC beat back it s unity of best feedback softenlers. For gauging the speed and the armature oc circulating(prenominal) of the DC force back with 24 Vs and a ds movie Micro fake conditionler is programmed.The in a high(prenominal) place all doing is through and through with(p) in a unappealing control closed lap chromosome representping. remit of Contentss1.2 objective lens2. Specific Aims of the labourChapter 11. Introduction1.1 BackgroundB makeed DC travelDC go theoretical accountDigital control of District of capital of South Carolina push backAdvantages of District of Columbia with regard to rush contr olAnalogue control of District of Columbia travel2.1 Dss celluloiddsPIC30f 30102.2 MPLAB IDE3. Design and ResearchCascade control electric actualloop kineticss f number loop kineticss3.1 Components for dogmatic 24v brushed Dc motor3.1. Flexible turned poster3.2.1 Generating PWM miserable ext hold on mannequins3.1.2 H-Bridge converter3.2 Softw ar techniques employ in DC motorPrograming microcontroller in Flexible inverted visiting card4. Consequences and Discussion5. stopping speckle6. App lay offixList of Figures inning 1 Ope proportionn of BRUSHED DC locomote approximate2 customary block plat of fastness grommet and authentic cringle of DC motor jut out3 H-bridge converter with divers(prenominal) electromotive force VI & A VI?Chapter 11. Introduction1.1 ObjectiveThe chief def conclusion of the undertaking is to operate the swiftness of the DC move utilizing a dsPIC30f3010 microcontroller. For that implement a separate ironwargon to fulfill the chief pla y of the undertaking.1.2 Specific Aim of the undertakingIn ordering to give the chief nucleus of the undertaking, concept Hardwargon for look out oning the pep pill control of DC motor. The chief ironw be posits atomic number 18Ds PIC microcontrollerICD user interface wine & A connection for trunk interfaceDC forefinger come outMOSFET ongoing sensorsThe above constituents are necessitate to build a ironware called Flexible Inverted Board 4 .1.3 OUTLINE OF PROJECTStep1In this juveniles report a flexible upside down senesce is constructed with the series of hardware constituentsStep2 whence retr all overt on the Flexible inverted board with outline utilizing MPLAB IDE software with ICD-3 interface 4 .the lingual communication use in the MPLAB software software transcription is C-language.Step3The hurrying cringle and the authentic cringle are the two of here and now purposes for commanding the stop number of the Dc motor. In our undertaking the c ardinal spot is to command both the cringles by C- schedule linguistic communication utilizing MPLAB ICD-3.The velocity cringle of the microcontroller is called velocity comptroller and the flow rate cringle of the microcontroller is called catamenia controller.Chapter 2THEORITICAL TECHNIQUES AND THEIR REVIEWS2 Background2.1 Brushed DC beat backIn automotive industries DC motor is apply widely in displace pump control, electronic maneuvering control, engine control and electric vehicle control 6 for its cost effectual and it is utilise in m both applications fit mush and paper industries, fan pumps, imperativeness, winder motors 2 , place contraptions, washers, driers and compressors 6 are both(prenominal) of the best illustrations. DC motor is one of the of deduction hardware employed in this paper, it consists of a rotor and stator, and the parts are fixed in a experienceing attractive forceic airfield. Commutator and clash are placed in between the rotor and stator. Positioning the coppice at a peculiar way in the rotor is classified into some classs and they are radial, trailling or taking 3 places. When the rotor rotates the commutator and C coppice interface at a berth, which pretends an trem closeous sum of magnetic field from the coppice of the motor and it produces oc watercourse to the armature cut of the Dc motor. escort 1 Operation of BRUSHED DC Motor a 2.2 DC Motor theoretical account 8 Each motor give hold contrasting specification and demands. Harmonizing to motor demands and inside breedings the theoretical account lav be designed. The purpose of motor theoretical account, trades with commanding the applied electromotive force of both velocity and authentic. The basic theoretical account for a Dc Motor is shown at a lower place go into2 DC Motor theoretical accountThe above draw is a simple RL round. RL circuit is called opposition knowledgeability circuitand a 24v DC Motor. All these constituen ts combine to organize RL circuit.Now the derivation factor of the RL circuit is explained down the stairsT ( T ) = J tungsten is the angulate speedJ is the minute of soundlessnessB is the clashT is the armature TorqueT ( T ) = ( T )is the Torque in variableis Armature reliableHarmonizing to Kirchhoff s jurisprudence( T ) ( T ) = ( T ) +and are the induction and opposition for the armature up-to-date ( Iowa )The electromotive of the motor fire be determined by multiplying the back potency with velocityThe relationship for the electromotive force is shown under( T ) =The nation theoretical account for all DC motor utilizing Iowa and tungsten ( velocity ) is abide byed below.= +2.3 ds PIC -micro take to the woodsDs PIC stands for Programmable Interface command or programmable intelligent computing machine, which act as an of import tyrannical unit for full system. The chief aim of this undertaking is to do the Ds PIC to sour forth 6PWM shiver crop. In an ideal locating the thrill comprise from the pulse rate width passageway can command the H-bridge convertor. It non save serves as an interface controls but besides plays a liaison of a programmable logic accountant ( PLC ) . 16,20 Ds movie has a retentiveness of 16 flake microcontroller that has dickens major uses. prototypicly it can move as a encase portion functioning tract plays and the other(a) is a hardware portion functioning hardware maps.The introduce manoeuvres that are attain from the feedback usefulness system are received by the package portion which in bending utilizes the codes that are written on the microchip on C linguistic communication to analyse the excitant and run the hardware. Finally the package makes certainly the hardware runs based on the package maps to derive the postulate end produce. 18, 20 Our undertaking concentrated on working experiments that were run at lab conditions. Since a bothsome of systems wee-wee certain divergences from th e comment that have been run in existent conditions compared to ideal conditions. This in bend is the working of the microcontroller.dsPIC30F 3010, 2010 4011 and 3012 are the series of cut friess that have been available in the science lab. The missive F in ds PIC30F and such bit res publicas that the bit contains brassy stock. The ground for hum this brassy warehousing merchandise is because 30F has an ex-ordinary general intromission when compared to EPROM ( Effaceable Programmable Read-Only Memory ) and one lop programmable french friess ( OTP ) . This has been a major demand for the running of this undertaking to accomplish the postulate end mathematical merchandise.16-bit modified Harvard architecture has been added to the central processor incorporating Ds PIC30F for using the culture and upgrading the set of usher lines for running digital augur processing ( DSP ) 14 . There is a drawn-out flexible opcode field which has been installed in the CPU that has a 24 spot broad user coder memory country and the undefiled turn toing velocity can travel up to 4MA-24 spot. This programming theoretical account has sixteen 16bit working registries in Ds PIC30F bit. There are two categories of debut commanding unit that have been integrated and use for carrying into action they are integrated and used for penalise 2 .2.3.1 dsPIC30F 3010This subdivision is about the pin constellation and the constituents available in dsPIC30F3010 microcontroller. Normally the memory allotment in dsPIC30F 3010 can classified in to three classs they areS impound in BytesEEPROM in BytesProgrammable memory in Bytes/instruction2.3.1.1 SRAMSRAM stands for inactive RAM ( Random Access Memory ) . Harmonizing to the tabular matter shown below the developments point of accumulation for inactive RAM should non transcend 1024 bytes. The memory in the map can sort in two types they areX Datas RAMY Datas RAMThe inactive RAM uses X -RAM and Y_RAM for hive absenting in con put to workationations.2.3.1.2EEPROMThe memory allotment for EEPROM is very(prenominal) as inactive RAM. In read merely memory one of the of import types of ROM used to hive away memory is EEPROM. The chief map of this ROM is based on two parametric quantities they are endurance and keeping 2 . Endurance is to hold up the informations even subsequently the ROM fails. Therefore the informations ca nt be deleted at any instant. m period is required to hive away informations that is taken attention by keeping 2 .2.3.1.3Program memoryIn a peculiar programme Ds PIC30f microcontroller has a separate memory allotment for hive awaying both the grapheme and information. The memory bound for the plan memory is 24K.plan reference infinite anda informations reference infiniteTable 1 tabular matter for memory allotment in Ds PIC30f3010The pin constellation of dsPIC30f3010 is described belowFIGURE 3 Pin constellation of dsPIC30F 3010 2 Pin descriptions( PWM1L and PWM1H ) , ( PWM 2L and PWM2H ) & A ( PWM3L and PWM3H ) 2 these are six different types PWM channels used in the pin constellation. In which distributively PWM brace generates three state beats with one high end product ( H ) and one low end product ( L ) .INT0, INT1 & A INT2 are the interrupt buffers used in the PIC. VSS and VDD 2 are the tot electromotive force and land in the PIC accountant.U1RX & A U1TX, U1ARX & A U1ATX 2 are the series of pins used for pass oning PIC microcontroller with Personal information processing system, in other system interface surgical process can be through with(p) by UART map. In that RX stands for receiving system and TX stands for sender. The above pin map plays an of import in our undertaking.Chapter 3Methodology3.1 Components for commanding 24v brushed Dc motorSince the undertaking is to the full based on difficult ware so many constituents are available and how they work in that operation.3.1.1Cascade control operation in Dc MotorThe below ope ration is through by utilizing Double cascaded layout, it consists of two cringles they are trustworthy accountant with flow mention and velocity accountant with velocity mention 5 as shown in.FIGURE4 General block diagram of velocity cringle and original cringle of DC Motor B The flow rate cringle is covered by the velocity cringle, in the block diagram it has the two dress circles inside(prenominal) circle is called interior cringle and the outer circle is called outer cringle since the interior circle operation is ever quicker than the outer circle. In other voice communication interior circle public presentation is multiple of 10 generation accelerated than the staying 1. The cascade control rule is primarily used in our undertaking to keep the velocity of the motor at a fixed degree and the new cringle in the cascade control is the armature authentic and it is otherwise called as tortuosity. Some durations armature catamenia may transcend the bound to avoid th is express of affairs in cascade control, it has limiter, and the chief map of the clipper is to restrict the determine of the armature on-line(prenominal). For illustration To restrict the armature period to 64volt i.e. 1 ampere. So that the armature wo nt transcend those bounds since the clipper is available in cascade control. The velocity accountant in the cascade control used to bring forth demand current ia* . The motor runs to stick around the breach of the demand current comforts. The demand current treasure leave behind ever higher than the normal current survey. So that the velocity motor bit by bit increases.PI accountant ( recounting Integral accountant )Current accountantSpeed accountantThe above all constituents construct a cascade accountant and the map each constituent is described below3.1.1.1PI accountant ( relative and implicit in(p) accountant )In cascade accountant map interact accountants are used for observing the velocity and control of the motor , but PI accountant is recommended as high efficient accountant because it consist to constant accession Kip and Kid. By manually tune up the addition of both Kii and Kpi will cut down the sweetie nation error and the stableness of the system will be increased. In recent study more than 70 % cascade accountant used PI accountant for commanding the velocity control DC Motor. In order to cut down the steady province drift in the closed cringle system, bit by bit increase the relative addition changeless Kp. As the addition of the Kp increases the steady province mistake in the system decreases. But the stableness of the system will non be stable. To do the system stable, integrate term Ki is introduced in the system. When both the comparative and built-in term amount each other to cut down the steady province mistake and do the system stable.the above two maps can be done at the same time in the PI accountant. The mathematical look for PI accountant is explained below.FIGURE 5 PI accountant of a closed cringle map 1 Kp-proportional additionKi-Intergral additionY- Output of the PI accountantErr-Error in the PI accountantAt the get downing mistake ( Err ) will go through through both Kp and Ki.For relative addition the end product is Kp Erry1= Kp Err eqn1 1 y2 = eqn 2 1 Y = y1 + y2 eqn 3 1 eqn 4 1 The cardinal point in this PI accountant is the mistake Err in intergral addition Ki will be integrated. so that the steady mistake will be reduced and the system will be stable.3.1.1.2Current accountantThe current accountant in the closed cringle maps of the cascade control. The current cringle is besides called as current accountant. It is used to protect cascade circuit from harm. The chief map of the cascade map is to command the velocity. Before commanding the velocity the current of the accountant should be controlled. The current obtained from the closed cringle map is from armature circuit of the DC Motor 7 .the enter in the current accountant is the back voltage ( ia* ) . precedent convertor is chiefly used to better the control in the system. It has high ex changing oftenness, since the power convertor in the current cringle is authentically speedy. The end product of the convertor is armature electromotive force ( Va ) .( -E ) is the perturbation occurred in the current cringle, in order avoid the perturbation-EIowaia*RL CIRCUITTPower ConverterPiFIGURE 6 Functional block diagram of Current accountantThe perturbation is added along with RL circuit, and the equation is shown belowVa = ( S La + Ra ) ia + vitamin EThe map of the RL circuit is cut down complexnessVa is Armature electromotive force.Iowa is armature current ( seeking to command )Ra is Armature oppositionTocopherol is DisturbanceRL = 1/ ( S La + Ra )Current cringle is carried out by conveying the from Iowa ( armature current ) to ia* ( demand armature current ) . As speedy as possible without doing the over shoot acquiring so high. If the over shoot is high i t creates job to the convertor. in like manner when the addition cherishs ( Kp and Ki ) increases in PI controller the over shoot tax reduces, but the same clip at that place is more sum of palpitation which may impact the system. Care should be taken in taking both Kp and Ki value.TIowaia**FIGURE 7 graph for armature current V subsiding clipia Armature currentia* Demand armature currentts subsiding clip3.1.2 Flexible inverted boardThe major hardware has been designed and implement as Flexible inverted board.It consists of many constituents they are dsPIC30F3010 microcontroller, H-bridge convertor and District of Columbia motor. The maps of these hardware constituents are explained earliest. The above all operation is implemented in a individual hard ware called flexible inverted board.FIGURE 8 Functional block diagram of Flexible inverted board3.1.2.1 IR2130 provide carrier bag circuitThere are three stimulus signal generator blocks which are capable of bring home t he baconing two end products each gives the stimulant drugs to the six end product drivers. L1, L2 and L3 are signal generators which drive just now the three low-side end product drivers although H1, H2 and H3 signal generators must be politic shifted before it is fed to the high-side end product drivers.The drifting points of the driver, adit bill demands of the power switch and the maximum power switch ON times receives power from three bootstrap capacitances C1, C2 and C3. Bootstrap capacitances besides feed supply to the internal natation driver current. Once these energy demands are met there must be considerable sum of charge unruffled on the 8.3V nominal to forestall halting. D7, D8 and D9 should be super-fast.VCC degree seen by an under-voltage sensor circuit gives an input to criminalize six end products of the signal generator circuits. Current demodulator R1 derives the ITRIP signal in the chief power circuit of the motor when it is unintegrated with a 0.5 V me ntion to criminalize the six signal generator end products. ITRIP inputs sets up a mistake logic circuit which in bend gives unfastened drain TTL end product for system gesture.FIGURE 9 Circuit diagram for IR2130 admittance thrust circuit3.1.2.2Trim port map with PWMTrim port are little in size and they are really little in size.it is chiefly used in many PCB mental synthesis board since it s occupies less infinite.The redeem port act deal a potentiometer and it is otherwise called as pruner . By tune the forgo port, opposition value can be minimized or maximized. For illustration if a 50ohm opposition can be tuned by spare port from 0 50.The two leg of H-bridge convertor produce two pulse wave form one with low end product ( 1L ) and some other 1 with high end product ( 1H ) . The tariff ratio of the PWM wave frame can set utilizing spare port.3.1.2.3DC MOTOR enfold WITH A ENCODERThe best methods of postcodeing the velocity of the DC motor is utilizing optical encoder method. It consists of a platter, Light Emitting Diode ( LED ) and optical sensor 6 . The disc is fitted with the rotor, as the rotor rotates the disc starts whirling along with the rotor and it is placed in between the LED ascendent and the light demodulator. Once the carousel motion starts the disc passes through the LED beginning and the optical detector gets started, from which the velocity of the motor can be calculated because the optical detector Acts of the Apostless like a tachometer. In other delivery the encoder in the DC motor is otherwise called as velocity observing detectors. 6 3.1.2.4 H-Bridge convertorDC motor runs differential velocity, but the applied electromotive force of the motor varies at all interval of clip. Since the electromotive force is straight relative velocity, as the electromotive force increases the velocity of the motor besides increases. Speed can be calculated by tachometer which is in physique in the DC motors, the applied electromoti ve force can be supplied and controlled by a convertor called h-bridge convertor.SomanGD Gate Drive CircuitFIGURE 10 H-bridge convertor with different electromotive force VI & A VI? c In this H-bridge circuit it produces two unipolar flash breadth handing overs because it has two leg inverter. effective transition takes topographic point merely in the first half of the inverter. As a consequence two variable electromotive forces are generated on either side of the armature twist.In H-bridge, transition world power is represented as ( +mi ) and the reciprocal of transition index is represent as ( -mi ) .the motor in our undertaking really sing two pulse breadth. both(prenominal) the meters are reciprocally relative to each other bring forthing a unipolar PWM.The two legs in the convertor are called the shift signals or exchanging oftenness. Bigger convertor comparatively has lower frequence and smaller convertor has higher frequence. If the frequence in the leg1 is high i n contrast the frequence in the leg2 will be low.In our undertaking see VI and VI? are the exchanging channels of the H- span convertor. they are reciprocally relative to each other.The bearer signal is called the input frequence. the bearer frequence used in our undertaking is 10khz. Harmonizing to the bearer frequence the clip period of VI and VI? differs.In C coding VI and VI? is mentioned as PDC1and PDC2 from the below graphFIGURE 11 graphical representation of PWM signals in H- Bridge convertor.The end product electromotive force of the h-bridge convertor can be obtained both negative and positive electromotive force distribution 1 . pound width transition in the h-bridge convertor helps to command the armature circuit of the DC motor 1 . Maximal armature current ( torsion ) can be obtained by study clip invariable of both field twist and the armature weaving 1 . Since the motor is attached straight to the field twists supply electromotive force in the field twist is m ore when compared with the armature weaving. To keep tolerable clip invariable in both field and armature weaving 1 , the applied electromotive force in the armature twist should be increased, as the armature current increases the torsion end product is maximized 1 .3.1.3 Generating PWM contemptible ridge signifiersAs the torsion end product gets maximized, pulse breadth transition is introduced in the H-bridge system to avoid the perturbation in the armature current.it can be done by increasing the frequence degree of the H-bridge convertor at a higher scope.As the torsion end product gets maximized, pulse breadth transition is introduced in the H-bridge system to avoid the perturbation in the armature current.it can be done by increasing the frequence degree of the H-bridge convertor at a higher scope.FIGURE 12 Diagrammatic representation of the pulsation breadth transition is shown below 6 The below specification is referred from 6 Ton Time is ON ( applied electromotive force )Toff Time OFF ( applied electromotive force )T Time period. tariff hertz = .The mean electromotive force of the DC motor can be shown in an equation belowAverage = Duty calendar method A- Vin 6 When the motor is running at a changeless velocity the back voltage of the motor is besides go on changeless.As the back voltage remain the same the motor running at changeless velocity and the armature current ( Ia ) is zero. PWM is one chief portion that is required for the operation of cascade control.4. software used to drive the Motors4.1 Programing microcontroller in Flexible inverted board utilizing C-languageIn the flexible inverter board PIC microcontroller plays a major place in purporting the pulsation breadth transition. The Ton clip in the pulsation breadth transition ( PWM ) signal can be playd or controlled by the microcontroller, as the microcontroller varies the clip, the speed of the motor alterations with regard to clip. The Programing linguistic communicati on used in microcontroller is embedded C. The scheduling codifications are downloaded in the microcontroller bit, the downloading attack can be done by a package development tool called MPLAB, this package exists in supervising the systems, this package should be foremost installed in the Personal computer, the coders will compose the codifications to modulate the PI accountant to get Applicable beginning from the current cringle of the cascade control map. Once the codifications are accepted harmonizing to the current cringle 1 , the plans can be downloaded in the microcontroller through cosmopolitan consecutive jitney or in circuit Debugger ( ICD ) ICD is a coach which interfaces Personal computer system and the flexible inverter Board. 6 In order to plan the microcontroller sample whether the hardware constituents are interfaced with the accountant. The scheduling linguistic communication used for programming the accountant is C linguistic communication. In c-language the in formation s are classified in to input informations and end product informations. The microcontroller direct the information in linear signal, where the C-language wo nt accept linear signals.To avoid the state of affairs ADC convertor and encoder interface are introduced in the system. ADC stands for couple to digital convertor it converts the linear signal in to digital signals. Then the digital signals get received by the C-program as input informations. In turns c-program will direct the end product informations to the PWM unit. UART communicating system is a bidirectional so that microcontroller and Personal computer can pass on at the same time. UART stands for cosmopolitan asynchronous receiving system sender. The basic diagrammatic representation for system communicating with C-language is shown belowFIGURE 13 System communicating in C Programing Language.In C-language foremost format all the maps required for the velocity control of motor.4.1.1Current detector inputThe c urrent in the motor spiral is one of import parametric quantity in the effectual running of the motor. So it is indispensable to mensurate the value of this current. The measuring of the current is performed by utilizing particular detectors call Hall Effect Sensors. The scope of the current is determined by the evaluation of the motor. Any over current in the motor can severely damage the motor. The Hall Effect detectors produce a electromotive force matching to the stage current. This is fed to the ADC inputs of the micro accountant where it is converted into the digital signals. This is so fed into the microcontroller plan. Hence the current demands to be limited inside specific limits.CL1, CL2 and CL3 are the three current detectors variables used in this cryptography. The spot ratio of the ADC input is 10 so the input informations scopes from 0 to 1023. The maximal informations bound for the current detector is 1023.so the current detector value in the C- codification is initia ted asCL1 = 511 CL2 = 511 CL3 = 0 4.1.2 Encoder inputFor any velocity accountant, the existent velocity of the rotor forms the footing for the control signals. The velocity control signal can be changed merely if there is an mistake between the existent velocity of the rotor and the coveted velocity of the rotor. If the mensural velocity is less than the coveted velocity so the PWM pulsations are changing consequently to increase the velocity. To execute this action a sweet calamus encoder is used. The shaft encoder uses an opto-mechanical system to bring forth pulsations.These pulsations so are used to withhold the velocity of the rotor. A mention pulsation is used as an index to number the pulsation. This information is fed to the microcontroller, which so uses a particular quantify circuit that processes these encoder pulsations. The motor velocity to be accessed by the microcontroller inescapably to be stored in a variable within the micro accountant codification. The var iable used in this plan is a variable called revolutions per minute. This variable is accessed to envision all maps related to the motor velocity.4.1.3 Pulse Width ModulationThe MOSFET s in the circuit is used as switches. These MOSFET s are switched harmonizing to a PWM. To drive these MOSFETs a gate driver circuit is required. The gate thrust signal generates the electromotive force required for the operation of these MOSFET s. The PWM is generated by the microcontroller harmonizing to the plan and is supplied to the gate thrust circuit. The PWM signals are separate for each if the 3 legs of the MOSFET inverter. Each of the PWM requires a transition index to bring forth the signal. These transition indexes are stored in a registry. The registries are named as PDC1, PDC2, and PDC3. These variables are really important in bring forthing the PWM signals for the MOSFET drivers. Since informations bound is 1023.4.1.4 Initializing the codification in C linguistic communicationBefore executing any map in C-language, it requires an low-level formatting. It is of import to initialising the variable of a map. Some the maps are initialized below.Init PORT ( )This map initialise the digital input and end product port or parallel input and parallel end product of the microcontroller.Init UART ( )It is one of pin in the microcontroller.The chief map of the UART is used for bidirectional communicating with Personal computer. Since UART can able to happen the transmittal velocity in informations transportation between the microcontroller and Personal computer. The maximal transmittal velocity is around 19200.the informations transportation wo nt transcend the bound.Init PWM ( )The input frequence of our PWM signal is 10kHz.the clip bound for the transition index is around 0-1474.in the h-bridge convertor has two legs so each leg produces a PWM signal with a maximal clip bound of 0-737. Hence the Ton clip of PWM signal will be in 11 tariff ratio.Init ADC ( )It is used t o change over the parallel signals in to digital signals. In the microcontroller there are five pins reserved for the ADC inputs. During the informations transmittal ADC maps plays a of import function in disrupting the signal. An low-level formatting is required for the interrupt to execute any map in C- linguistic communication.Init CAPTURE ( )The gaining control map is chiefly used to mensurate the frequence and clip period of the PWM wave signifier generated from the two legs J30 and J31 pins of the H-bridge convertorInitTimer3 ( ) and InitTimer1 ( )To put initial clip in the microcontroller for the gaining control map and timer 1 set the starting clip for the interrupt map happened in the UART communicating system.InterruptsInterrupts are occurred merely during the informations transportation, when the transmittal velocity that is the baud rate is known means the interrupts can be added to the system easily.in our undertaking the baud rate is 19200.the chief map of the interrup t is used sync clip period of PWM with the velocity cringle and the current cringle of the motor. In our undertaking four different type of interrupt service modus operandi are used.They are ISR_ADCInterput ( )This interrupt is triggered when the ADC finishes its transition and hence its get synchronized to the microcontroller PWM clip base. From this all the application control codification to be implemented in this interrupts service modus operandi.ISR_T1Interput ( )The assorted information to the Personal computer is transferred by utilizing the UART communicating nexus in this interrupts service modus operandi. All the variables that are needed to be mentioned in this everyday utilizing standard C map dash ( ) .ISR_U1RXInterput ( )Assorted information is transferred from the Personal computer in to the C plan. This everyday concedes us to modulate the facets of the plan when it is running.ISR_IC1Interput ( )It tones the velocity value from clocking informations that are attain ed in the input gaining control faculty.FIGURE 14 The data link diagram for the velocity control of Dc motor is shown aboveChapter 55 Consequences and treatmentAs discussed earlier the assorted maps of hardware constituents in this undertaking, this subdivision discusses the inside informations sing how the undertaking deals with comparing and measuring the consequences. Undertaking has a series of stairss each measure is appoint with different operation techniques to put to death the concluding consequences.5.1 Initial connexion exertion between MPLAB IDE and Flexible inverted Board ab initio the system needs to be interfaced utilizing the flexible inverter board. This operation is performed by linking the Personal computer to the flexible upside-down board. To link the Personal computer to the flexible upside-down board, ICD 3 interface port is used to finish the connexion. Since the informations transmittal velocity in ICD 3 is high when compared with ICD 2, the power supply to the inverted board is supplied through the Dc power supply generator. The Initial conditions were set to the power supply generator where the electromotive force bound and current bound is zero. For the Dc motor maximal electromotive force supply is 24voltage in VDC and a current of 0.5 ampere is set in the power supply generator which is so connected to the inverter board. Once the initial conditions are set, the power generator is fitted with a path button which needs to be held and at the same time the end product button needs to be pressed. Once the end product button is turned ON, the power is applied to the inverted board. On the other manus MPLAB IDE package is opened in the system, where a newfound file demands to be created so the needed compiler for this undertaking needs to be selected. Once these scenes are done the debugger option in the MPLAB ICD 3 is chosen, the package will initialise the tool and a verification capacity was displayed on the screen which says I CD 3 is connected . The codifications for this were designed in the MPLAB package and burnt in the Ds PIC microcontroller by ICD 3 interface.5.2 treasure 3, 4 & A 5One of the ADC input pin in the PIC microcontroller demands to be initialize as ADCBUF0. The maximal input scope of ADC interrupt is 1023 since ADC input is initialized as IN1.When IN1 is initialized as ADCBUF0 in C-language it can be written asIN1 = ADCBUF0 PDC1 = IN1 IFS0bits.ADIF = 0 Here IN1 is the informations value for the spare port in the flexible upside-down board. The maximal IN1 value is 1023. As mentioned earlier PDC1 is initialized as one leg portion H-bridge convertor, where PDC1 is 1474 and a unipolar pulsation breadth transition was generated. If IFS0bits.ADIF is zero, it means that the chief used to initialise ADIF value is 0 in other nomenclature it is the default value.PDC1 = 2*IN1 Similarly in measure 4 multiply the spare port input value with 2. Then the PDC1 input scope will transcend so if stat ements are used to restrict the value of PDC1 from 0 to 1474.To restrict the values of PDC1 the codification in C-language can be implemented as PDC1 = 2*IN1 If ( PDC1 & gt 1474 )PDC1= 1474 5.3 Step6 & A 7The flexible upside-down board consists of a gate triggered circuit in other words they are known as MOSFETS. Wholly 6 MOSFETS are available in the flexible upside-down board. In our undertaking two MOSFET are used and both of them are connected to the legs of the H-bridge convertor. The MOSFETS that are connected to H-bridge convertor are U10 and U13 & As U11 and U14 . To administrate and look into if the MOSFETS are triping the pulsation or non it can be done by analyzing the exam points available in the flexible upside-down board. This is done utilizing the CRO where the ladder points are connected via investigations as a consequence triping pulsation is produced. The diagrammatic representation of Square wave signifier is shown below.FIGURE 15The above diagram represents the general pulsation wave formDepending on the transition index value produced by the ADC input the office ratio of the pulse fit transition varies consequently. In other words the transition index is straight relative to the responsibility ratio. development appropriate C plan the ensuing wave form from the three different responsibility ratios was observed to be in the square form. When the CRO is connected to the trial point J30, three different per centums were obtained due to the different responsibility unit of ammunitions. The C codifications that were used to obtain the wave forms are mentioned belowC codification for 50 % responsibility rhythmPDC1 = MI + 737 PDC2 = MI 737 Manual figuring for 50 % responsibility rhythmSince PDC1 = 1474If PDC1/2 = 1474/2 = 737.Resulting wave form for 50 % responsibility rhythm is shown belowFIGURE 16 pitiful ridge from for 50 % responsibility rhythmC codification for 25 % vocationcyclePDC1 = MI + 1105.5 PDC2 = MI 1105.5 Manual count ing for 25 % dutycycle( PDC1 and PDC2 ) value for 50 % responsibility rhythm is 737( PDC1 and PDC2 ) value for 75 % responsibility rhythm is 368.5For 25 % responsibility rhythm add both 737 + 368.5 = 1105.5Resulting wave form for 25 % dutycycleFIGURE 17 moving ridge signifier for 25 % responsibility rhythmCode for 75 % dutycyclePDC1 = MI + 368.5 PDC2 = MI 368.5 Manual deliberation for 75 % responsibility rhythmFor PDC1 and PDC2 is 737Divide PDC1 and PDC2 by 2The resolution for for PDC1 and PDC2 is 368.5.Resulting wave signifier for 75 % dutycycleFIGURE 18 moving ridge signifier for 75 % responsibility rhythm5.4 stones throw 7The last operation is based on linking the CRO with the trial point J30 in the flexible upside-down board, likewise the same operation is performed in another trial point J31. The triggered pulsation obtained from the MOSFETS is shown below for the different responsibility rhythm ratio as already mentioned in measure 6.Resulting wave form for 25 % responsibi lity rhythmFIGURE 19 Resulting wave signifier for 25 % responsibility rhythm in trial point J31Resulting wave signifier for 50 % responsibility rhythm is shown belowFIGURE 19 Resulting wave signifier for 50 % responsibility rhythm in trial point J31FIGURE 20 Resulting wave signifier for 75 % responsibility rhythmFrom above three wave signifiers each differs in their responsibility ratio. Then compare the wave form of J30 & A J31. The different is happened because of hold or mistake occurred during the informations transmittal.5.5 measuring 10In the initial stead of the spare port is set as nothing. Then the responsibility rhythm of the PWM 1 is high and PWM 2 will be low.In other words PWM1 is reciprocally relative to PWM2. Similarly in the ulterior status when the spare port is turning toward the higher terminal. Now the responsibility rhythm of PWM 2 is found to be more than 95 % . The end product of the PWM is determined from the CRO. Since the value of PDC1 and PDC2 will be 1 474.due to 11 responsibility ratio. The input informations values are every bit shared by both PDC1 and PDC2. In some conditions when the PDC1 = 2*IN1.the value of IN1 is 1023, and so value of PDC1 is 2046. As per the conditions mentioned earlier the value should non transcend the input informations bound 1474. Such state of affairs are handled with aid of if statements. Using if statement how the status is well-provided in C cryptographyPDC1 = 737+MI PDC2=737-MI If ( PDC1 & gt 1474 )PDC1 = 1474 If ( PDC2 & gt 1474 )PDC2=1474 This codification C2=1474-PDC1 makes the motor to seethe at rearward way.When the above codification is compiled and put to death the electric justification value increased or decreased by manually set the spare port in the flexible upside-down board. Harmonizing to the opposition value in the microcontroller the amplitude and the current flow can be controlled.5.6 beak 11Ripple current and RL LoadNow connect the RL encumbrance with the connection of t he flexible upside-down board to cipher the ripple current. In the connection of the flexible inverted board has two points. They are sing as point A and point B. Ripple current can be calculated by a device called current investigation. First connect the current investigation to the point A of the connection and see the mean value of the ripple current in the CRO. The wave form for the mean ripple current value for point A is shown below.FIGURE 21 moving ridge signifier for responsibility cycle1 with 1H and duty rhythm 2 1L ( level A )1H High End product1L crushed End productIn this wave form the conditions are exclusively reversed when compared with the above wave form.The responsibility rhythm 1 with 1L and duty rhythm 2 with 1H ( indicate A )FIGURE 22 moving ridge signifier for responsibility cycle1 with 2L and duty rhythm 2 1H ( indicate A )Once the rippling currents are calculated in point A. the similar operation is performed by the current investigation in point B. the wave forms are shown belowFIGURE 23 wave form for responsibility cycle1 with 1H and responsibility cycle2 with 1L ( point B )FIGURE 24 wave form for responsibility cycle1 with 2L and responsibility cycle2 with 2H ( point B )5.7 Measure 12This measure deals with ciphering the beginning and derive value of ripple current through current investigation as discussed earlier. These values are chiefly used for trying the input informations s from the microcontroller.In order to cipher the beginning and addition value the values need to be identified as shown in the tabular matter below they are ADC electromotive force, current detector, PDC1 and PDC2. Initially the interface needs to be reloaded with the flexible upside-down board. The PDC1 and PDC2 value can be determined by the ticker option in MPLAB IDE package. The current detector in the flexible inverted board has a trial point J43. Then the current detector value was measured by multi yard through the trial point. For this a 24 e lectromotive force Dc motor the maximal current detector value gettable will be 2.57voltage. Initially set the spare port value to zero, so look into the current detector value by a multi metre where it showed 2.57. By increasing the electric resistance of the spare port the current detector and ADC electromotive force will be bit by bit decreased nevertheless at one phase the ADC electromotive force bit by bit decreases to zero. Later the ADC electromotive force value increased palmy but the current detector invariably decreased as shown in the tabular matter. These values were recorded in the tabular matter.Subtracted ADC electromotive force value from PDC1 value and the mean value consequence was recorded in the new column. Then the mean value for the new column is calculated.Table 2 Tabular column for ciphering beginning and addition valuesADC electromotive forceCurrent detectorPDC1PDC2PDC2 ADC electromotive forceSpot27.512.56941143313.494.4603925.432.5591431331117.5721.792.54 42831191261.2120.512.5274441030423.4917.792.517546928528.210.00072.497757717756.99933.722.478960514956.284.072.46211233511118.9318.42.431431431412.65588.7793620.9754778Manual computation for the above tabular matter is shown belowOffset spot = ( PDC1 ADC electromotive force ) / entire hear values( PDC1- ADC electromotive force ) = 13.49 + 117.57 + 261.21 + 528.21 + 756.9993 + 956.28 + 1118.93 + 1412.6 = 5588.7793PDC1-ADC electromotive force = 5588.7793Entire figure of values = 9Average ( PDC1 ADC electromotive force ) = 5588.7793/9 = + 620.9754778.Calculate the entire ADC electromotive forceEntire ADC electromotive force =27.51 + 25.43 + 21.79 + 20.51 + 17.79 + 0.0007 + 3.72 + 4.07 + 18.4 = 132.5Offset spot = + 620.9754778./ 132.5 = 4.4602 spot5.8 Measure 13In this subdivision connect 24 volt Dc motor to the flexible upside-down board. When the power supply is turned ON the motor rotates at a peculiar velocity and this velocity of the motor rotates harmonizing to the responsibili ty ratio produced by the H-bridge convertor. Initially test all the conditions to assure the on the job status of the motor. The motor used here is fitted with an encoder that is connect together. Since the flexible inverted board has an encoder sensor the encoder portion of the motor was connected to the encoder sensor, therefore the motor satisfies the conditions mentioned above.5.9 Measure 14In this measure, J14 pin of the flexible upside-down board is interfaced together with the system through a overseas telegram. Using Lab position package s the Tacho scope, rev can be determined.PDC1, PDC2 and their corresponding responsibility rhythm per centum are viewed.Like this similar operationTable 3 Tabular column for ciphering electromotive force Vs velocityTachoVdcRevolutions per minutePDC1PDC2Duty 1 %Duty 2 %1-18.11776150132489.211.22-14.51416270120481.119.93-10.711047388108773.327.14-7.4672748299266.535.55-3.42334596878584260957147605049.671.6916582664845.654.485.553894153238.26 2.299.33919104942329.870.11012.91265115532022.372.91116.11578125621915.585.51219.61919137497992RPM = KTo cipher the value of the KK = Vdc12 Vdc1/RPM12 RPM1K = 19.6-18.1/1919 1776K = 0.0104As per the demands from the tabular matter secret plan the graph for Vdc ( electromotive force ) V RPMThe graph representation is shown belowFIGURE 25 Voltage Vs Speed5.10 Measure 155.10.1Current cringleOnce the mean value of the ripple current and the beginning values are calculated, to command the velocity of the motor, foremost the applied electromotive force of the motor should be controlled. Interestingly the applied electromotive force can be determined from the current cringle of the relative and Built-in accountant in other words as PI accountant. Since the operation of PI accountant is explained before itself. In the PI accountant current plays the interior cringle, and it is 10 times faster than the outer cringle. So the interior cringle is executed foremost. A measure input given to t he PI accountant. The consequence expected from the end product of the PI accountant as a measure end product with superlative over shoot.This extremum over shoot increases the steady province mistake besides increases. In bends steady province mistake produces a electromotive force bead in the motor. So the velocity of the motor bit by bit decreases. This state of affairs can be overcome by seting the addition of both relative and built-in. The maximal extremum over shoot degree is 7.5 % . If the degree exceeds, the end product of the current cringle is non in a stable status. If the system is non stable, it is hard to command the velocity of the motor. the graphical representation of the expected current cringle is shown below.FIGURE 26 measure response end product for current cringleIn the above measure response the ia* and Iowa are the demand current and the armature current.Since the current detector value 1023.Two current detectors are used.They CL1 and CL2The armature curren t Iowa = 511Demand current ia* = 511Tocopherol is the mistakeE = demand current armature currentE = ia* IowaE = 511 511 = 0 Harmonizing to the computation shown above.The codification is compiled in C-language for the current cringle.In the cryptographyFirst originate the addition values of the PI accountant as kpi and kii.int kpi, kii kpi=10 kii=0 Then initialise the mistake, armature current and demand current as i_error, Iowa and ia_demandint Iowa, ia_demand, i_error Iowa = CL1 ( initialise current detector 1 as armature current of the motor )CL1 = 511 ( initialise the value of current detector 1 as 511 )ia_demand = 511 ( demand armature current )i_error = ia_demand CL1 ( Error in the armature current can be determined by deducting the armature currenr ( Iowa ) from the demand armature current ( ia* ) . The expected mistake should be zero. when the above codification is executed in MPLAB package. In the get downing the mistake is non zero. Some clip the current detector v alue differs. As per the codification the expected CL1 value should 511.In this status, a new set of codification is implemented. In this codification, if statements are used for the CL1 value. Then the current detector value will be within the scope.if ( 510 & lt CL1 & A & A CL1 & lt 517 ) the value CL1 ranges from ( 511 to 517 )The manual tuning of kpi and kii alterations CL1 from 511 to some other value.As a consequence mistake occurs in the extremum over shoot.For illustration if CL1 is 514, which is displayed on the ticker of MPLABSince the expected CL1 is 511 but CL1 is 514The mistake engagement between the expected and the present value is 3.The avoid the mistake difference in CL1 a simple codification is designed belowCL1 = CL1 -3 ( if CL1 is 514, 514 3 is 511 ) .The mistake is zero but the extremum over shoot is alleviate high. This is due built-in air current up map because the built-in added with kii in PI accountant. To avoid this mistake separate codification is executed in C cryptography.The variable zi is initialized as built-in collector and its value is 737.if ( zi & gt 737 )zi=737 if ( zi & lt -737 )zi=-737 the above codification keeps the zi value within the scope.Since i_error = 511zi = 737 + 511zi = zi+i_error ( anti air current up codification added with an mistake )In order to avoid the built-in mistake multiply built-in collector with built-in addition ( kii ) .kii * zi ( eqn 1 )Multiply the mistake with the addition of proportional.kpi * i_error ( eqn 2 )add both the eqn to acquire the concentrated transition index. This map will cut down the steady province mistake and extremum over shoot.myocardial infarction = ( kpi*i_error ) + ( kii*zi ) From this codification the expected extremum over shoot is obtained with zero steady province mistake.The expected current cringle moving ridge signifier implemented from the codification is shown belowIn this moving ridge signifier over shoot is high.To cut down the over shoot and stead province mistake manually tune the kpi and kii value.Manual tuning is like a loop method to acquire a peculiar solution after many comparings take topographic point between kpi and kii values. The expected end product is non yet determined. So the expected end product is still under procedure.Mention 1 D.J.Atkinson, visualise of Electric thrusts, EEE 8014 talk notes, School of electrical, electronic and Computer technology, Newcastle University,2011. c 2 R.Roberge, Carbon coppice public presentation and application in the mush and paper environment , National galvanizing Carbon Products, 2001. 6 E.A.CHOON, DCmotor velocity control utilizing microcontroller pic16f877a , 2005, pp. 1-64. 3 K.Hameyer, R.J.M.Belmans, Permanent magnet excited brushed DC motors Dept. of Electrical. plan. Katholieke University, Vol. 43, 1996, pp. 247-255 a CONDIT, R. ( 2004 ) Brushed DC Motor Fundamentals Microchip Technology Inc. 5b P.Chevrel, L.Sicot, S.Siala, Switched LQ accountant for DC Motor Speed and Current Control a comparing with cascade control , 1996. 4 G.J.Atkinson, Electrical Power and Control Project, EEE8075 ( Semester 1 ) talk notes, School of electrical, electronic and Computer technology, Newcastle University, 2011. 7 M.V.Ramesh, J.Amarnath, S.Kamakshaiah, G.S.Rao, SPEED CONTROL OF BRUSHLESS DC MOTOR BY USING FUZZY LOGIC PI CONTROLLER ARPN Journal of Engineering and Applied Sciences.Vol.6, NO. 9, 2011. 8 R. K. Munje, M. R. Roda, B. E. Kushare, Speed Control of DC Motor Using PI and SMC IPEC, 2010 Conference Proceedings, 2010, pp.945- 950.DS movie mention 2 . ( 2010 ) dsPIC30f3010 Data Sheet. Microchip Technology Inc. 16 .DSOUZA, S. ( 2004 ) detector less BLDC Motor Control Using dsPIC30f2010. Microchip Technology Inc. 18 . ELLIOTT, C. & A BOWLING, S. ( 2004 ) Using the dsPIC30F for mindless BLDC control. IEEE Inc. 20 . HUDDLESTON, C. ( 2007 ) Intelligent detector design utilizing the micro chip Ds PIC electronic resource / by C reed Huddleston. , Elsevier/News.TabulationJ. Plantier, H. Aziza, J.M. Portal, C. Reliaud, A. Regnier, J.L. Ogier, EEPROM tunnel oxide life-time dependability anticipation based on fast electrical emphasis trials ELECTRONICS LETTERS Vol. 46 No. 23, 2010.Tang Yiliang, Cui Wenjin, Xie Xiaorong, Han Yingduo, Man-Chung Wong 80Cl96MC Microcontroller-based Inverter Motor Control and IR2130 Six-output IGBT Driver Department of Electrical Engineering and Faculty of Science and Technology, 1999, pp.665-667. FIGURE9 and 3.1.2.1 David ready CHAPTER 14 Variable Resistors ROBOT Building FOR BEGINNERS , 2010, pp 173-191. trimport

No comments:

Post a Comment