.

Friday, March 29, 2019

Microcontroller Based DC Motor Speed Controller

Micro ascendency Based DC Motor revive ControllerIn this report I premise a micro maneuverler found DC ride advisenonball along wangleler. DC gos down the stairstake a vital role in most of the industrial areas. They are mainly utilize for the mechanically skillful movements of physical applications much(prenominal) as media engages, indicator plants, lifts, elevators, conveyers, belt set agitates (printing press) etc.The controller implements the control dodge governing the load and aim characteristics. To match the load and move, the input to the microcontroller is manipulated by the controller. The purpose of a take fastness controller is to capture a signal representing the demanded invigorate, and to exertion the ram at that swiftness. The controller may or may non actually survey the pep pill of the beat back. If it does, it is called a Feed indorse hurrying Controller or Closed Loop Speed Controller, if not it is called an exposed Loop Speed C ontroller. Feedback speed control is better, moreover to a greater extent complicated, and may not be compulsory for a simpleton electric circuit public figure. The former(prenominal) ( stringentd loop) is implemented in the presented controller design.The subject arrangement consisted of a tachometer link up to the peter of the drive. A controller design skunknot be more accurate than methods aimed at measuring actual push speed. This is readily deliver the well-behaveds by coupling the motor shaft with a tachometer. The tachometer sidetrack signal is born-again to a dc electric potential signal unobjectionable to the microcontroller. The microcontroller is programmed to social movement the motor accomplishing the load solicitment.The operation of dc motor was studied. some(prenominal) typesetters cases of motors and various control types were investigated. The project also intends to familiarize us with the energy of flick in control organizations. To evalu ate the effectiveness of the controller, analysis withdraw from alone be conducted driving inconstant load while maintaining never-ending speed of the motor. The advantages of use microcontrollers to control dc motor were studied.INTRODUCTION1.1 forceAn electrical motor is an electromechanical finesse that converts electrical energy to mechanical energy. The mechanical energy apprise be utilise to perform work such as rotating a pump impeller, fan, b misfortunateer, driving a compressor, lifting materials etc. It is estimated that somewhat 70% of the total electrical load is accounted by motors unless.1.2 CLASSIFICATION OF MOTORS voltaic MotorsAlternating Current (AC) MotorsDirect Current (DC) MotorsSynchronousInductionThree-PhaseSingle-Phase self ExcitedSeparately ExcitedSeriesShuntCompoundFIG-1.1 mixed bag of motors1.3 AC MOTORSAn AC motor is a motor that is driven by an alter authorized. It consists of dickens basic references, an outside stationary stator havin g rollers supplied with alternating sure to pay back a rotating magnetic force heavens, and an inside rotor coil attached to the getup shaft that is given a contortion by the rotating empyrean.1.3.1 TYPES OF AC MOTORS in that respect are two types of AC motors, depending on the type of rotor utilize. The depression is the synchronous motor, which rotates exactly at the issue frequency or a sub multiple of the supply frequency. The magnetic world on the rotor is either generated by oc up-to-date delivered through slip ring or by a permanent magnet.The second type is the introduction motor, which acts s vindicatedly slower than the supply frequency. The magnetic playing area on the rotor of this motor is created by an induced current.1.3.2 TYPES OF INDUCTION MOTORSSquirrel-Cage Induction Motors The most simple and reliable of all electric motors. It is essentially a continual speed machine, which is adaptable for users under all only if the most severe head start conditions. shoots little attention as there are no commutator or slip rings, yet operates with good efficiency.Wound-Rotor (Slip Ring) Induction motor It is apply for constant speed-service requiring a heavier beginning torque than is obtainable with squirrel cage type. Because of its lower head start current, this type is frequently used instead of the squirrel-cage type in man-sizedr sizes. These motors are also used for varying-speed-service. Speed varies with this load, so that they should not be used where constant speed at each ad merelyment is required, as for machine tools.Single Phase Induction Motors This motor is used in general in small sizes, where polyphase current is not available. Characteristics are not as good as the polyphase motor and for size larger than 10 HP, the line disturbance is kindredly to be objectionable. These motors are usually used for light starting and for running loads up to 1/3 HP Capacitor and repulsion types provide greater torqu e and are built in sizes up to 10 HP.Synchronous Motors cast at constant speed fixed by frequency of the system. Require direct current for excitation and have low starting torque. For large motor-generators sets, frequency switchs, air compressors and analogous apparatus which permits starting under a light load, for which they are generally used. These motors are used with considerable advantage, particularly on large spot systems, because of their inherent ability to improve the power factor of the system.1.4 DC MOTORDirect-Current motors, as the name implies, use a direct-uni guidanceal current. A DC motor has 3 main fortunesField pole. The fundamental fundamental interaction of two magnetic sectors causes the rotation in a DC motor. The DC motor has field poles that are stationary and an armature that turns on bearings in the space mingled with the field poles. A simple DC motor has two field poles a northernmost pole and a southwestward pole. The magnetic lines of force extend crosswise the cave ining between the poles from north to south.Armature. When current goes through the armature, it becomes an electromagnet. The armature, cylindrical in shape, is linked to a drive shaft in order to drive the load. The armature rotates in the magnetic field established by the poles, until the north and south poles of the magnets convince location with attentiveness to the armature. Once this happens, the current is reversed to switch the south and north poles of the armature.Commutator. This component is found mainly in DC motors. Its purpose is to overturn the direction of the electric current in the armature. The commutator also helps in the transmission of current between the armature and the power computer address.1.4.1 OPERATION OF A DC MOTORWhen a dc motor is subject to dc potential difference, the current flows through the armature coil. A wire carrying current also has a magnetic field around it. This magnetic field distorts the check ma gnetic field of stator to produce a force which causes the armature coil to turn.FIG-1.2 operation of motorEach coil of the armature is not only connected to the brushes but the brushes are connected first to one end and then(prenominal)(prenominal) to the other end of the coil. This commutating action is demand to maintain the same direction of the current flow in the armature coils recounting to the magnetic field lines in the field poles. The motor would never turn without commutation.FIG-1.3 cross section diagram of a motor1.4.2 Types of ExcitationsThere are two basic elements in a DC motor. The way in which these are connected results in various types of DC motors.SHUNT teaseThe construction and principle of operation of a shunt motor is similar to any DC motor. This type of motor is called shunt because the field is in tally or shunts the armature. The shunt field is directly connected in parallel with the armature circuit. Shunt malarkys require large go of turns to p roduce a strong magnetic field.SERIES WOUNDIn a serial publication wound motor, the field is connected in serial with the armature. In this type, the speed tends to increase until the back EMF equals the impressed potency. The EMF also decreases the current in the field and armature. As the field weakens more speed is required to maintain the counter EMF. Thus a series motor is used only where the load is attached e.g. A lift truck, an electric crane. and so forthCOMPOUND WOUNDA compound motor has two field windings, the shunt field and series field. The shunt connected in parallel with the armature and the series field connected in series with the armature. The combination of two fields gives double advantages. It has a greater torque than the shunt motor repayable to the series field and fairly constant speed due to the series field winding. The compound motor has both shunt and series motor characteristics.These leave behind be discussed along with their control techniques in the following(a) chapter.1.5 TACHOMETERA tachometer is an instrument that measures the rotational speed of the shaft of the motor. It functions in a similar fashion as opposed to a speed indicator on a car. It tells you the speed of the car. Similarly the tachometer is used to measure the motor speed.In a fill upd loop control system the information about the instantaneous state of the getup is fed back and compared with the input and difference is used to modify the end product signal in such manner as to achieve a desired condition. Similarly a tachometer is coupled to the shaft of the motor. Thus a signal representing the speed of the motor is produced. This signal is fed back to the input where it is compared to the speed look out on potential difference. The error produced is actuated by the speed of the motor.In my designed controller the error actuating and motor control is achieved by programming the microcontroller. It is used to control the rotation of the mot or. It senses the input and process it using the program fire in it and gives the required PWM output on the required port pins. This output controls the on/off meter of the mosfet and thus controls the motor. This technique and mosfets will be discussed in the bordering chapter.As long as the speed assertion emf is held constant, the motor will run at a comparative constant speed regardless of the mechanical load. The set speed control gives a dc emf input, for example 12 volts for utmost speed and zero for stationary. This could be a potentiometer providing any electric potential in a range from zero to +12 volts. The microcontroller (PIC) amplifies the difference between the two input potential drops (tachometer and potentiometer) and the error is actuated.1.6 MICROCONTROLLER (PIC)The name PIC initially referred to chopinemable Interface Controller. Advantages of using PIC over other despotic devices for controlling the DC motor are given belowSPEEDThe execution of an training in PIC IC is very fast (in micro seconds) and can be changed by changing the oscillator frequency. One instruction generally takes 0.2 microseconds.COMPACTThe PIC IC will make the hardware circuitry compact.RISC PROCESSORThe instruction set consists of only 35 instructions.EPROM PROGRAM MEMORYProgram can be modified and rewritten very easily.INBUILT HARDWARE conductSince PIC IC has inbuilt programmable whilers, ports and interrupts, no extra hardware is needed. stiff OUTPUT PIN CONTROLOutput pins can be driven to high state, using a single instruction. The output pin can drive a load up to 25mA.INBUILT I/O PORTS EXPANSIONSThis reduces the extra ICs which are needed for port expansion and port can be expanded very easily.INTEGRATION OF OPERATIONAL FEATURES antecedent on reset and brown/out protection ensures that the run operates only when the supply potential is within specification. A watchdog fourth dimensionr resets PIC if the chip ever malfunctions and deviates f rom its normal operation.The speed of motor is directly proportional to the DC voltage applied across its terminals. Hence, if we control the voltage applied across its terminal we actually control its speed. A PWM (Pulse width Modulation) swing can be used to control the speed of the motor. Here the average voltage given or the average current flowing through the motor will change depending on the ON and OFF magazine of the quivers controlling the speed of the motor i.e. The indebtedness make pass of the wave controls motor speed. This wave is generated by the PIC..CHAPTER 2.2.1 DC SHUNT MOTORFIG -2.3Shunt windings require large depend of turns to produce a strong magnetic field.This is because a small gauge wire cannot handle heavy currents. As a result, when voltage is applied, very little current flows through the shunt coil. The interaction of the magnetic fields between the one from armature and the one from shunt coil causes the motor to rotate. The speed can be control led by varying the field strength or armature voltage. Current is supplied from the stationary housing to the rotating armature through commutator brushes arrangement. As the stator is stationary, power is applied directly to it.2.1.2 SPEED CONTROL OF A DC SHUNT MOTORThis type of motor runs at a constant speed practically, regardless of the load. It is the type generally used in commercial practice. Speed of the shunt wound motors may be change in two waysFirst, by inserting resistance in series with the armature, thus decreasing speed (FIG )And second, by inserting resistance in the field circuit. In this case the speed will vary with each change in load.This normally works with any controller setting i.e. it maintains constant speed despite variable load. Therefore, a shunt motor has proven its efficiency in adjustable speed service and loads requiring a low starting torque.2.2 DC SERIES MOTORIn a series motor, the field winding (shunt field) is connected in series with the arma ture winding (A) as shown in the figure. The field current is therefore equal to the armature current. Speed is restricted to 5000 RPMIt must be avoided to run a series motor with no load because the motor will accelerate uncontrollably.FIG-2.5V = Supply voltageE = Generated e.m.fI = Supply currentRA = Armature resistanceRF = Field resistance2.2.2 SPEED CONTROL OF A DC SERIES MOTORThe speed of a series motor depends almost entirely on the flux. The stronger the field flux, the lower the speed. Likewise, decrease in load current and therefore in field current and field flux causes an increase in speed. This can be achieved by adding a resistor in parallel with the series field winding. This causes the field current to decrease and the flux drops accordingly. This causes the motor speed to increase. The speed can be decreased by adding an external resistor in series with the armature and the field winding. This would cause a reduction in the armature supply voltage create the motor s peed to decrease.2.3 DC COMPOUND MOTORA DC compound motor is a combination of shunt and series motor. In a compound motor, the field winding (shunt field) is connected in parallel in series with the armature winding (A).For this reason this motor has a good starting torque and a stable speed.The higher the percentage of increase (i.e. percentage of field winding connected in series), the higher the starting torque this motor can handle. For example, compounding of 40-50% makes the motor suitable for hoists and cranes, but standard compound motors (12%) are not.There are 2 major types of compound motors. These are given belowCumulative compound motors first derivative compound motorsFIF-2.6 CUMULATIVE COMPOUND MOTORFIG-2.7 DIFFERENTIAL COMPOUND MOTOR2.3.2 SPEED CONTROL OF A COMPOUND MOTORThe speed of a compound motor can easily be controlled by changing the voltage supply to the motor. A solid state AC variable frequency motor drive can also be used to vary the speed of an AC moto r.2.4 PWM (PULSE WIDTH MODULATION)PWM, or Pulse largeness Modulation, is a method of controlling the amount of power to a load without having to dissipate any power in the load driver.Imagine a 10W light bulb load supplied from a bombing. In this case the battery supplies 10W of power, and the light bulb converts this 10W into light and heat. No power is lost anywhere else in the circuit. If we wanted to dim the light bulb, so it only thoughtless 5W of power, we could place a resistor in series which absorbed 5W and then the light bulb could absorb the other 5W. This would work, but the power card-playing in the resistor not only makes it get very hot, but is wasted. The battery is still supplying 10W.An alternative way is to switch the light bulb on and off very quickly so that it is only on for half of the time. Then the average power taken by the light bulb is still only 5W, and the average power supplied by the battery is only supplying 5W also. If we wanted the bulb to tak e 6W, we could leave the switch on for a little longer than the time it was off, then a little more average power will be delivered to the bulb.This on-off permutation is called PWM. The amount of power delivered to the load is proportional to the percentage of time that the load is switched on.Pulse-width modulation (PWM) or duty round variations are ordinarily used in speed control of dc motor. The duty cycle is defined as the percentage of digital high to digital low and digital high pulse-width during a PWM period. Thus by varying the pulse width, we can vary the average voltage across a DC motor and hence its speedIn my presented controller design the PWM (Pulse Width Modulation) function of PIC is used for the electric current control to drive a motor. PWM can change the duty of the pulse to output into CCP1 by the data. The duty of the pulse of CCP1 is controlled in the voltage (the control voltage). When the control voltage is higher than the pattern rank, the H level t ime of the CCP1 pulse is do long and the number of rotations of the motor is lowered. When the control voltage is lower than the regulation value, the H level time of the CCP1 pulse is made short and the number of rotations of the motor is raised. This mechanism will be discussed and elaborated in the next chapter.2.5 MOSFETSThe speed controller works by varying the average voltage sent to the motor.Imagine a light bulb with a switch. When you oddment the switch, the bulb goes on and is at full brightness, say 100 Watts. When you open the switch it goes off (0 Watts). Now if you close the switch for a dissever of a second, and then open it for the same amount of time, the filament rule have time to cool down and heat up, and you will just get an average glow of 50 Watts. This is how lamp dimmers work, and the same principle is used by speed controllers to drive a motor. When the switch is closed, the motor sees 12 Volts, and when it is open it sees 0 Volts. If the switch is open for the same amount of time as it is closed, the motor will see an average of 6 Volts, and will run more slowly accordingly.As the amount of time that the voltage is on increases compared with the amount of time that it is off, the average speed of the motor increases.This on-off switching is performed by power MOSFETs. A MOSFET (Metal-Oxide-Semiconductor Field Effect Transistor) is a device that can turn very large currents on and off under the control of a low signal level voltage2.5.1 TYPES OF MOSFETS.There are NPN type and PNP type as the semiconductor part. When no voltage is applied no electric current flows between the drain and the source.NPN type is called N-channel and PNP type is called P channel. An oxide film is put to the semiconductor of NPN or PNP and admixture is put onto it as the gate. In case of NPN, the part of N is a source pole and a drain pole. In case of PNP, the part of P is the polar side.When positive voltage is applied to the gate of the N-channel MOS FET, the electrons of N-channel of source and drain are attracted to the gate and go into the P-channel semiconductor among both. With the movement of these electrons, it conditions itself like spans a bridge for electrons between drain and source. The size of this bridge is controlled by the voltage to apply to the gate. . This type (N CHANNEL) of mosfet is used in the presented controller.FIG 2.8In case of P-channel MOS FET, the voltage is opposite but does similar operation. When negative voltage is applied to the gate of P-channel MOS FET, the holes of P-channel of source and drain are attracted to the gate and go into the N-channel semiconductor among both. With the movement of these holes, a bridge for holes is spanned and the electric current flows between drain and source.Transistor controls an output current by the input current. However, in case of FET, it controls an output current by input voltage (Electric field). The input current doesnt flow.To handle a MOS FET, needs attention because the oxidation separation film is thin. This film is prone to the high voltage of the static electrical energy and so on.CHAPTER 3The highlighted part in the figure represents the shaft which cerebrate the motor and the tachometer. The speed of the motor is directly proportional to the frequency of the tachometer. The dc voltage input is provided by the potentiometer. The microcontroller operates on a dc voltage. The output from the tachometer is a sine wave which has to be rectified in order to operate the pic. This is achieved using an F/V converter. The converter releases a dc logic signal which operates the pic.CIRCUIT EXPLANATIONThe input voltage to the main motor is controlled by a potentiometer. This variable resistor could be adjusted manually to provide a 0-12 v input. This voltage sets the number of rotations of the main motor. The input voltage of PIC becomes low when bringing VR1 close to the side 1 and PIC increases the drive electric current of the m otor. That is, the innovation of the motor rises. The input voltage of PIC becomes high when bringing VR1 close to the side 3 and PIC reduces the drive electric current of the motor. That is, the whirling of the motor slows down.Control voltage is defined as the feedback signal which is produced to recover the error between the desired and controlled speed. This is provided by the tachometer in our case.The output from the tachometer is a sine wave which cannot operate the microcontroller to perform the programmed functions. This is converted to a dc voltage signal compatible with the pic microcontroller. This changed voltage is used to enable the CCP gas of the PIC resulting in motor drive. The CCP feature will be discussed in detail later in the chapter.The control voltage to PIC is thus governed by the fluctuations of the main motor. This control voltage (feedback signal) is directly proportional to the rotational speed of the motor. The PIC microcontroller is the brain of th e circuit controlling all actions to be done and the output. PIC controls the electric drive current for the control voltage to become a regulation value.When the change of the motor slows down, i.e. control voltage goes down, the drive electric current of the motor is increased and number of rotations is raised.When the control voltage reaches a regulation value, a drive electric current at the point is held.When the number of rotations of the motor is high, i.e. the control voltage is high, the drive electric current of the motor is trim down and number of rotations is loweredD1 is used to protect PIC when the voltage of the sensing motor is high. The voltage which is applied to the terminal of PIC is a maximum of +5V. This zener diode prevents the destruction of PIC when the speed detection voltage of the motor exceeds 5V.CCP FEATURECapture, Compare and Pulse Width Modulation feature is abridge to form CCP.Capture This is the function to capture the 16 bits value of timer1 designate when an event occurs on pin RC2/CCP1. This can be used for the measuring of the period time of the signal like the frequency counter and so onCompare Generate an interrupt, or change on output pin, when Timer 1 matches a pre-set comparison valuePWM Create a re-configurable steady duty cycle square wave output at a user set frequency.The timer resource of the capture and compare is timer1 and the timer resource of PWM is timer2.The following steps should be taken when configuring the CCP staff for PWM operationSet the PWM period by writing to the PR2 register.PWM Period equals (PR2+1)*4Tosc*(timer 2 prescale value), and the resultant PWM frequency equals 1/ PWM_Period. Tosc stands for time period of the oscillations.Set the PWM duty cycle by writing to the CCPR1L register and CCP1X and CCP1Y bits of CCP1CON register.Duty Cycle is based on CCPRxL, most significant byte, and CCPxCON, least(prenominal) significant two bits. CCPRxL functions as a comparative value with tim er 2 and a scaling factor to determine the number of counts of CCPx. PWM logic remains high, without considering CCPxCON. The two least significant bits, CCPxCON, determine the percentage of the maximum resolution the PWM duty cycle is extended.Make the CCP1 pin an output by clearing the TRISC.Set the TMR2 prescale value and enable Timer2 by writing to T2CON register.Configure the CCP1 module for PWM operation.PWM can change the duty of the pulse to output into CCP1 by the data. When the time period of the H level of the pulse of CCP1 is short, the time of ON (the L level) becomes long in TR2 which implies that the drive electric current of the motor increases. Oppositely, when the H level time of the pulse of CCP1 is long, the ON time of TR2 becomes short and the drive electric current of the motor decreases.The duty of the pulse of CCP1 is controlled by the control voltage (feedback signal) which was taken in with input circuit. When the control voltage is higher than the regulat ion value, the H level time of the CCP1 pulse is made long and the number of rotations of the motor is lowered. When the control voltage is lower than the regulation value, the H level time of the CCP1 pulse is made short and the number of rotations of the motor is raised.A three terminal regulator is used for getting the operate voltage for pic. movePIC16F8733 Terminal regulator ( 7805)Transistor for MOS FET drive ( 2SC1815 )Power MOS FET ( 2SK3142 )Zener diode ( RD5A )IC socketResonatorVariable resistor for motor speed settingResistorsCapacitorsPrinted boardVFC 320 (F/V CONV)Bipolar transistor 2N222FURURE transactionDec complete circuit design and order components.January software design and circuit assemblyFebruary Simulation and preparation of final report and intromissionMarch review and appendicesApril submission.

No comments:

Post a Comment