Docsity

BLDC Motor Drive-Microcontroller and Assembly Language-Project Report, Thesis of Microcontrollers

Partial preview of the text

Download BLDC Motor Drive-Microcontroller and Assembly Language-Project Report and more Thesis Microcontrollers in PDF only on Docsity!

Project Report

BLDC Motor Control Using 8051

Abstract:

The aim of the project was to design & fabricate a system for the control of Brushless DC Motor using 8051microcontroller. Although, there are ASICS present for that purpose, but as 8051 is most widely used microcontroller due to its fair characteristics & low cost, the system was desired to base on it. Due to many advantages of BLDC motors over ordinary DC motors, new trend is to build the servo systems with BLDC motors. So the objective was to fully control the motor by overcoming the problems regarding to the feedback control of motor dynamics & to find different techniques for solving the problems. The design was simplified by choosing a prototype Maxon EC-266521 motor. All the hardware is designed according to the specifications of that motor, but the theory as well as the circuit can be applied to any sensored BLDC motor up to a limit and by taking the specifications of hardware in mind.

commutator and/or rings do not exist. That means very low maintenance. This also increases the power-to-weight ratio and the efficiency. For induction motors, flux control has been developed, which offers a high dynamic performance for electric traction applications .However, this control type is complex and sophisticated. The development of brushless permanent magnet machines has permitted an important simplification in the hardware for electric traction control. Today, two kinds of brushless permanent magnet machines for traction applications are the most popular:

i) The Permanent Magnet Synchronous Motor (PMSM), which is fed with sinusoidal currents ii) The Brushless DC Motor (BDCM), which is fed with quasi-squarewave currents.

The main characteristic of this type of motor, fed with quasi-square-wave currents, is that it only needs a six position sensor, and only one current controller for its full torque control. In contrast, the sinusoidal current type, the angular position needs to be known at any moment in order to control each of the three phase currents. These two designs eliminate the rotor copper losses, giving very high peak efficiency compared with a traditional induction motor (around 95 % and more in Nd-Fe-B machines in the 20 to 100 kW range). Besides, the power-to-weight ratio of PMSM and BLDC motor is higher than equivalent squirrel cage induction machines. The aforementioned characteristics and a high reliability control make this type of machine a powerful traction system for electric vehicle applications.

Figure 2 BLDC motor structure

Finally, we can say that BLDC motor has following characteristics:

(i) Can be used in feedback control loop without any additional sensor (ii) High power-mass ratio (iii) Good heat dissipation characteristics (Heat is generated in stator – Easy to remove) (iv) Low rotor inertia (v) High speed capabilities & higher acceleration rate (vi) High efficiency (vii) Reliable and no arcing on commutation – No brushes to maintain (viii) It only needs a six position sensor for commutation

Also, BLDC motors are efficient than brushed DC motors. For the same input power, a BLDC motor converts more electrical power into mechanical power than a brushed motor because of the absence of friction due to brushes. Furthermore, since the BLDC is usually fully enclosed (i.e. water and/or airtight), it has the potential for use in environmental restoration, robotic and aerospace applications. The ability to operate with just three Hall sensors gives the trapezoidal brushless permanent magnet motor an edge over its sinusoidal counterpart in low-cost applications. It should be mentioned that PMSM motors are also sometimes operated with rectangular currents to minimize the cost of the position sensor, although the output torque waveform is far from ideal because of the mismatch between the motor and the inverter.

Commutation Technique:

In BLDC motors, the commutation is controlled electronically. The motor requires the stator windings to be energized in a particular sequence. To implement this sequence, it is important to know the rotor position. This is done by using sensors, such as Hall-Effect Sensors (sensored control), or by sensing back EMF (sensorless control). The sensored control technique is used in the system due to its simplicity. Hall-Effect Sensors are embedded in the stator. When the rotor magnetic poles pass near the hall sensors, they supply a high or low signal, indicating that the north or south poles are passing nearby.

floating drive at each motor terminal. One precaution that must be taken with this type of driver circuit is that both high side and low side drivers must never be activated at the same time. Pull-up and pull-down resistors must be placed at the driver inputs to ensure that the drivers are off immediately after a microcontoller RESET, when the microcontroller outputs are configured as high impedance inputs. Another precaution against both drivers being active at the same time is called dead time control. When an output transitions from the high drive state to the low drive state, the proper amount of time for the high side driver to turn off must be allowed to elapse before the low side driver is activated.

Figure 5 power stage control

Drivers take more time to turn off than to turn on, so extra time must be allowed to elapse so that both drivers are not conducting at the same time. Notice in Figure 3 that the high drive period and low drive period of each output, is separated by a floating drive phase period. This dead time is inherent to the three phase BLDC drive scenario, so special timing for dead time control is not necessary. The BLDC commutation sequence will never switch the high-side device and the low-side device in a phase, at the same time. At this point we are ready to start building the motor commutation control code. Commutation consists of linking the input sensor state with the corresponding drive state. This is best accomplished with a state table and a table offset pointer. The sensor inputs will form the table offset pointer, and the list of possible output drive codes will form the state table. six pins of PORT2 are used to control the six motor drive MOSFETS. Each

sensor requires one pin, so three pins of PORT1 are used to read the current state of the motor’s three-output sensor. The sensor state will be linked to the drive state by using the sensor input code as a binary offset to the drive table index. The sensor states and motor drive states from Figure.

Speed, torque & position control:

Once the motor is rotating, speed and torque control of the motor need to be considered. One method of closed loop speed control under steady-state operating conditions (the motor already is running at a constant speed) involves an interrelationship between the magnitude of voltage across the stator coils and the speed of commutation. For example, a brushless DC motor will rotate faster by increasing the voltage magnitude of the waveform fed into its stator coils. As the motor rotates faster the controller must increase the speed of its commutation sequence. Thus, the maximum motor speed can be limited both by the maximum voltage rating of the motor and the ability of the controller to commutate at high speeds. Motor speed is directly proportional to applied voltage, so varying the PWM duty cycle linearly from 0% to 100% will result in a linear speed control from 0% to 100% of maximum RPM. But this is an open loop control. If a motor is running at constant speed, its speed will speed will change if the load is changed, because the motor speed is inversely proportional to applied load. As it is desired to have constant speed in all load conditions, so a feedback control technique is applied to fulfill that purpose. In this technique, the time is measured for which there is a change in the state of Hall Effect sensor output. It is then compared with the desired time, and PWM duty cycle is increased or decreased with respect to that difference. The idea of use Hall effect sensors with very low resolution for controlling a brushless motors was first developed by Corzine and Sudhoff (1996), and later by Morimoto et al. These authors evolved two different solutions how to obtain high resolution velocity and position estimates from binary Hall sensors with typically resolution of 60º electrical. In the first solutions a hybrid state filter based on differential equations of a rotating vector is used to estimate a rotor synchronous reference frame transformation terms by using the

can be built around the inner current control loop as shown in Figure.

Figure 6 Extended feedback control

Hardware description:

The heart of the circuit is 89C55WD microcontroller which belongs to 8051 family of microcontrollers. It collects the data from hall sensors and direction control signal on port 1, processes it and output the commutation control signals on port 2. Power stage can be controlled by TTL inputs and switches the output +ve or – ve according to the input. The power mosfets which are used in this circuit can handle 6A of maximum current and can operate upto 200V. Changing of the motor supply voltage does not effect the switching requirements of the circuit. The schematic of one of the power stage controller is shown in figure. Three such combinations are used in the circuit.

Figure 7 power stage design

MAX232 is introduced to use the microcontroller with RS232 interface. So it can communicate with ordinary PC’s. And the output can be controlled by applying the data from the connected PC or from any part of the world, through internet.

PWM is generated at only one pin of the microcontroller and then it is ANDed with all the outputs to vary the speed of the motor in open loop as well as closed loop control of the motor.

Figure 8 PWM apply scheme

Conclusions:

The design was based on sensored control of BLDC motor. It can be used in any servo application as a commutation control, as well as speed control element of a BLDC motor. The design may be not accurate because of the unavailability of BLDC motor, so the design is based on the theoretical concepts of BLDC motor and it is tested on ISIS™ Proteus™ 7.6 professional. More & more corrections can be applied to it after verifying its quality & robustness in different experiments. Finally, during the project design and by finding the solution of the problems related to design, I got great concepts and found how to collect & apply knowledge regarding to the fields of Electric Machines, Power Electronics, Digital Electronics, Control Systems & microcontroller and Assembly language programming.

References:

(1)Simplified Sensorless Control for BLDC Motor, Using DSP Technology Juan W. Dixon, Matías Rodríguez and Rodrigo Huerta. (2) E. Cerruto, A. Consoli, A. Raciti, and A. Testa, “A robust adaptive controller for PM motor drives in robotic applications,” IEEE Trans. Power Electron. , vol. 10, pp. 62–71, Jan. 1995. (3) Electric machines & Drives by Theodore Wildi (4) Power electronics Handbook by H.A Rashid