Design of stepper motor drive circuit based on TB6560

Publisher:极地征服者Latest update time:2010-03-10 Source: 西安丁业大学工业中心Keywords:TB6560 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

A stepper motor is an actuator that converts electrical pulses into angular displacement. After receiving a pulse signal, the driver drives the stepper motor to rotate a fixed angle in the set direction. First, the angular displacement is controlled by controlling the number of pulses to achieve accurate positioning; second, the speed and acceleration of the motor are controlled by controlling the pulse rate to achieve the purpose of speed control. At present, stepper motors have the characteristics of low inertia, high positioning accuracy, no cumulative error, and simple control. They are widely used in mechatronic products and are often used for positioning control and constant speed control. The commonly used chips for stepper motor drive circuits are L297 and L298 combination applications, 3977, 8435, etc. These chips generally have a single-phase drive current of about 2 A and cannot drive higher power motors, limiting their application range. This paper proposes a design scheme for a stepper motor drive circuit based on the stepper motor drive chip launched by Toshiba in 2008.

1 Stepper motor drive circuit design

1.1 Introduction

THB6560 is a low-power, highly integrated two-phase hybrid stepper motor driver chip launched by Toshiba. Its main features are: internal integrated dual full-bridge MOSFET driver; maximum withstand voltage of 40 V, single-phase output maximum current of 3.5 A (peak); full step, 1/2, 1/8, 1/16 subdivision; built-in temperature protection chip, automatically disconnect all outputs when the temperature is greater than 150℃; overcurrent protection; HZIP25 package. The stepper motor drive circuit mainly includes three circuits: control signal isolation circuit, main circuit and automatic half-current circuit.

1.2 Stepper motor control signal isolation circuit

The stepper motor control signal isolation circuit is shown in Figure 1. There are three stepper motor control signals (CLK, CW, ENABLE), which control the motor's rotation angle and speed, the motor's forward and reverse direction, and enable, respectively. All of them must be isolated by optocouplers and connected to the chip. Optocouplers have two functions: first, to prevent the motor from interfering with and damaging the interface board circuit; second, to shape the control signal. For CLK and CW signals, medium-speed or high-speed optocouplers should be selected to ensure that there will be no lag and distortion after signal coupling, which will affect the motor drive, and the driver board can meet the requirements of higher pulse frequency drive. In this design, two 6N137 high-speed optocouplers are selected to isolate CLK and CW, and their signal transmission rate can reach 10 MHz, and one TLP521 ordinary optocoupler is used to isolate the ENABLE signal. When applying, please note: the same-direction and reverse output connection methods of the optocoupler; the forward and backward power supplies of the optocoupler should be separate isolated power supplies, otherwise they cannot play the role of isolating interference.


1.3 Stepper motor main circuit

As shown in Figure 2, the main circuit of the stepper motor mainly includes two parts: the drive circuit and the logic control circuit.

The power supply of the drive circuit adopts 28 V, and the voltage range is 4.5~40 V. Increasing the drive voltage can increase the output torque of the motor in the high-frequency range. The voltage selection should be determined according to the usage. VMB and VMA are the stepper motor drive power supply pins, and ceramic decoupling capacitors and electrolytic capacitors should be connected to stabilize the voltage. The OUT_AP, OUT_AM, OUT_BP, and OUT_BM pins are the motor 2-phase output interfaces respectively. Since the freewheeling diode is integrated internally, these four output ports do not need external diodes like Toshiba's 8435 driver chip, which greatly reduces the wiring space of the circuit board. NFA and NFB are the maximum drive current definition pins for the motor A and B phases respectively. The maximum current calculation formula is IOUT(A)=0.5(V)/RNF(Ω). If the maximum drive current of each phase of the motor is pre-defined as 2.5 A, and RNF=0.2 Ω is taken, then PGNDA, PGNDB, and SGND are the motor A and B phase drive pin grounds and logic power grounds respectively.

The power supply of the logic control circuit is 5 V, VDD is the logic power supply pin, and decoupling capacitors and bypass capacitors should be connected to reduce interference noise; M0 and PROTECT are working status and overcurrent protection indicators; RESET is the chip reset pin, and low level is effective; the size of the capacitor connected to OSC determines the chopper frequency, and 100 to 1 000 pF is recommended, and the chopping frequency is 400 to 44 kHz; M2 and M1 are subdivision setting pins, and external dip switches can set different subdivision values, such as full step, half step, 1/8 subdivision, and 1/16 subdivision. Because stepper motors have the disadvantages of large vibration and noise when working at low frequencies, they need to be subdivided to solve.

The subdivision control of the stepper motor is essentially to control the current in the excitation winding of the stepper motor so that the synthetic magnetic field inside the stepper motor is a uniform circular rotating magnetic field, thereby realizing the subdivision of the stepper motor step angle. In general, the amplitude of the synthetic magnetic field vector determines the size of the stepper motor rotation torque, and the angle between two adjacent synthetic magnetic field vectors determines the size of the step angle. The DCY2 and DCY1 external dial switches set the current attenuation mode (0, 25%, 50%, 100%) to meet the needs of different stepper motors. Due to the influence of other factors such as the motor's own condition, the power supply condition and the pulse frequency, the stepper motor may generate high-frequency noise. This noise can be reduced or even eliminated by setting the current attenuation mode. Figure 3 shows the change of coil current when the attenuation mode is 0 and 50%, and it can be seen that the waveform has been significantly improved.

1.4 Stepper motor automatic half-current circuit

To reduce the heat generation of stepper motors, it is necessary to reduce copper loss and iron loss. Reducing copper loss means reducing resistance and current. It is required to select motors with small resistance and small rated current when selecting models, but this often conflicts with the requirements of torque and high speed. For the selected motors, first of all, the automatic half-current control function and offline function of the driver should be fully utilized. The automatic half-current automatically reduces the current when the motor is in a static state, and the offline function cuts off the output motor current; secondly, the subdivision driver has a current waveform close to sine and few harmonics, so the motor will also generate less heat. Reducing iron loss is related to the motor drive voltage. Although the motor driven by high voltage will improve the high-speed characteristics, it will also increase the heat generation. Therefore, the appropriate drive voltage level should be selected, taking into account the high speed, stability, heat generation, noise and other indicators.

In order to minimize the motor generation, the required TQ2 and TQ1 pin levels are set to the maximum current output when the motor is working, and the current is halved or even smaller when the motor is not working, so it is called "automatic half-current circuit". After defining the maximum output current with NFA and NFB, the current ratio output is set through TQ2 and TQ1. When it is set to 00, 01, 10, and 11, the output current is 100%, 75%, 50%, and 25% of the maximum current respectively. Changing the drive current of the motor also changes the size of the motor output torque. The automatic half-current circuit design uses a retriggered monostable circuit chip 74CH123, and uses the motor drive pulse CLK as the trigger pulse of the monostable circuit. The reverse output of the monostable circuit is connected to the TQ2 pin. When the motor drive pulse continues, TQ2 keeps a low level, and keeps a high level when there is no drive pulse. In the circuit of Figure 2, TQ1 is connected to 3 jumper caps. Connect jumper 1, TQ2 and TQ1 are always high or low, and the drive current switches between 25% and 100%; connect jumper 2, TQ2 is always low, and the current switches between 50% and 100%; connect jumper 3, and the current switches between 25% and 75%. Different jumpers can be selected according to the working drive current requirements.


2 Stepper Motor Loss of Step and Overstep Problems and Solutions

The synchronous torque generated in the stepper motor cannot make the rotor speed follow the rotation speed of the stator magnetic field, thus causing loss of step. The main reasons for loss of step and the solution:

① The stepper motor has insufficient torque and drag capacity, and starts to lose steps when the drive pulse frequency reaches a certain critical value. Since the dynamic output torque of the stepper motor decreases with the increase of continuous operating frequency, any operating frequency higher than this frequency will cause loss of steps.

There are three solutions: the electromagnetic torque generated by the stepper motor can be increased, and the driving current can be appropriately increased within the rated current range; when the torque is insufficient in the high-frequency range, the driving voltage of the driving circuit can be appropriately increased; using a stepper motor with large torque can also reduce the torque that the stepper motor needs to overcome, and the motor operating frequency can be appropriately reduced to increase the output torque of the motor.

② Stepper motor loses step when starting. This phenomenon occurs when the acceleration time is too short due to the inertia of the stepper motor itself and the load it carries. A reasonable acceleration time should be set to allow the motor to smoothly increase from a low speed to a certain speed.

③ The resonance of the stepper motor is also a reason for the stepping out of step. When the stepper motor is in continuous operation, if the frequency of the control pulse is equal to the natural frequency of the stepper motor, resonance will occur. In a control pulse cycle, the vibration has not been fully attenuated, and the next pulse has arrived, so the dynamic error is the largest near the resonance frequency and causes the stepper motor to lose step. Solution: Reduce the drive current of the stepper motor; use subdivision drive method and damping method.


When the rotor obtains too much energy during the stepping process, the average speed of the rotor will be higher than the average rotation speed of the stator magnetic field, which will increase the output torque generated by the stepper motor and cause the stepper motor to overstep.

When the stepper motor has overstepping, the driving current of the stepper motor can be reduced to reduce the output torque of the stepper motor or prolong the deceleration time.

3 Test results

During design, the chip logic voltage should be ensured to be lower than the driving voltage, otherwise the chip cannot work properly; when selecting NFA and NFB current-sensing resistors, non-inductive resistors with a power of not less than 2 W should be selected; the printed circuit board wiring of the motor drive power supply and the drive output connection and ground should ensure that 3 A current can be stably passed; a fuse should be added to the power inlet to protect the drive circuit to prevent the motor current from being too large and burning the circuit board. The designed driver is used to drive the three-axis stepper motor of the engraving machine X, Y, and Z. After testing, the engraved sample is shown in Figure 4. From the final result, the accuracy meets the target requirements.


Conclusion

This paper proposes a design scheme of stepper motor drive circuit based on TB6500, and gives solutions to the stepper motor step-out and step-over problems. The experiment proves that the effect is good and the expected goal is achieved.

Keywords:TB6560 Reference address:Design of stepper motor drive circuit based on TB6560

Previous article:Design of motion control card for parallel machine tools based on PCI bus
Next article:Sensorless AC Motor Control in Home Appliances

Recommended ReadingLatest update time:2024-11-17 00:39

Swisswin Zynq 7015-powered Formula E car wins FS race
Formula Student is the world's largest engineering competition. Thanks to its innovative electric drivetrain based on FPGA modules, the AMZ student team in Zurich, Switzerland, won the event. The AMZ team's car was equipped with four inverters based on Enclustra Mercury ZX5 core boards (based on Xilinx Z
[Embedded]
Swisswin Zynq 7015-powered Formula E car wins FS race
Waterproof LED driver power supply may become the new favorite in LED market
LED power supply is the core component of LED lamps . The quality of LED driver power supply directly determines the service life of LED lamps . Especially for outdoor lighting, its driver power supply must have strict waterproof function, otherwise it cannot with
[Power Management]
Application of Serial LED Decoder/Driver TEC9607 in PIC16C5X Series Microcontrollers
PIC16C5X series microcontrollers have the characteristics of high reliability, low power consumption, practicality, low price, and easy learning. In particular, OTP products have almost the same performance and price as mask products, so they are widely used in industrial and civilian products. In the design of appl
[Microcontroller]
Application of Serial LED Decoder/Driver TEC9607 in PIC16C5X Series Microcontrollers
CS9027 is compatible with DRV8812, CS9029 is compatible with DRV8841, dual-channel H-bridge motor driver chip
The CS9027C provides a dual-channel integrated motor drive solution for printers and other motor integration applications. The CS9027C has two H-bridge drivers, each of which can provide a maximum output current of 2A (at 24V and Ta = 25C ​​with proper heat dissipation), and can drive two brushed DC motors, or
[Embedded]
CS9027 is compatible with DRV8812, CS9029 is compatible with DRV8841, dual-channel H-bridge motor driver chip
Design of WindML Graphics Driver Based on S3C2440
With the rapid development of information technology, the application fields of embedded systems are becoming wider and wider, and the demand for graphical user interfaces in embedded systems is increasing. VxWorks is a high-performance, customizable embedded real-time operating system developed by WindRiver, an A
[Microcontroller]
Bus driver for single chip microprocessor
  The basic structure of the microprocessor system is shown in Figure 1. Figure 1 Basic structure of microprocessor system   For microprocessors, address signals are output signals, and their function is to select the address of the memory or I/O interface. When a system has more memory units or I/O interfaces to
[Microcontroller]
Bus driver for single chip microprocessor
LED power supply and its basic driving circuit design
There are three main types of original power sources for LED power supply: low-voltage batteries, solar cells and AC mains power supply. No matter which original power source is used, it must undergo power conversion to meet the working conditions of the LED. This power conversion circuit generally refers to the LED d
[Power Management]
LED power supply and its basic driving circuit design
Use DMA to directly drive GPIO to achieve the highest GPIO output rate
STM32F303 chip, 72M main frequency, GPIO reaches 14.4M flip rate Here is the code: RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOC, ENABLE); GPIOC- MODER |= 0x55555555; GPIOC- OSPEEDR |= 0xFFFFFFF; GPIOC- PUPDR |= 0x55555555; u32 Gpio_data = {0x0000FFFF,0xFFFF0000,0x0000FFFF,0xFFFF0000}; DMA_InitTypeDef DMA_InitStructure;
[Microcontroller]
Latest Industrial Control Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号