28BYJ-48 stepper motor:
A stepper motor is an actuator that converts electrical pulses into angular displacement. In simple terms: when the stepper driver receives a pulse signal, it drives the stepper motor to rotate a fixed angle (and step angle) in the set direction. You can control the angular displacement by controlling the number of pulses to achieve accurate positioning; at the same time, you can control the speed and acceleration of the motor by controlling the pulse frequency to achieve speed regulation.
The stepper motor 28BYJ48 is a four-phase eight-beat motor with a voltage of DC5V-DC12V. When a series of continuous control pulses are applied to the stepper motor, it can rotate continuously. Each pulse signal corresponds to a change in the power-on state of one or two phases of the stepper motor winding, which corresponds to the rotor rotating a certain angle (a step angle). When the change in the power-on state completes a cycle, the rotor rotates one tooth pitch. The four-phase stepper motor can operate in different power-on modes. Common power-on modes include single (single-phase winding power-on) four beats (ABCDA...), double (two-phase winding power-on) four beats (AB-BC-CD-DA-AB-...), and eight beats (A-AB-B-BC-C-CD-D-DA-A...)
Since the signal from the microcontroller interface is not large enough, it needs to be amplified by ULN2003 and then connected to the corresponding motor interface, as follows:
blue | Hexadecimal (P1 port) |
|||
The order is exactly the opposite
So we can define the rotation phase sequence
uchar code CCW[8]={0x08,0x0c,0x04,0x06,0x02,0x03,0x01,0x09};
uchar code CW[8]={0x09,0x01,0x03,0x02,0x06,0x04,0x0c,0x08};
C language code:
void delaynms(uint aa)
{
}
void delay500us(void)
{
}
void beep(void)
{
}
void motor_ccw(void)
{
}
void motor_cw(void)
{
}
void main(void)
{
}
Appendix: Tips on stepper motors (reprinted)
1. What is a stepper motor?
A stepper motor is an actuator that converts electrical pulses into angular displacement. In simple terms: when the stepper driver receives a pulse signal, it drives the stepper motor to rotate a fixed angle (and step angle) in the set direction. You can control the angular displacement by controlling the number of pulses to achieve accurate positioning; at the same time, you can control the speed and acceleration of the motor by controlling the pulse frequency to achieve speed regulation.
2. What are the types of stepper motors?
There are three types of stepper motors: permanent magnet (PM), reactive (VR) and hybrid (HB).
Permanent magnet stepper motors are generally two-phase, with small torque and volume, and a step angle of 7.5 degrees or 15 degrees;
reactive stepper motors are generally three-phase, can achieve large torque output, and a step angle of 1.5 degrees, but the noise and vibration
are very large. They have been eliminated in developed countries such as Europe and the United States in the 1980s;
hybrid stepper motors refer to a combination of the advantages of permanent magnet and reactive. It is divided into two-phase and five-phase: the two-phase step
angle is generally 1.8 degrees and the five-phase step angle is generally 0.72 degrees. This type of stepper motor is the most widely used.
3.What is holding torque?
Holding torque refers to
the torque of the stator locking the rotor when the stepper motor is powered but not rotating. It is one of the most important parameters of the stepper motor. Usually, the torque of the stepper motor at low speed is close to
the holding torque. Since the output torque of the stepper motor decreases with the increase of speed, and the output power also
changes with the increase of speed, the holding torque has become one of the most important parameters for measuring stepper motors. For example,
when people say a stepper motor with a holding torque of 2N.m, it means
a stepper motor with a holding torque of 2N.m without special instructions.
4.What is DETENT TORQUE?
DETENT TORQUE refers to the torque of the stator locking the rotor when the stepper motor is not powered.
There is no unified translation method for DETENT TORQUE in China, which can easily lead to misunderstandings; since
the rotor of the reactive stepper motor is not made of permanent magnet material, it does not have DETENT TORQUE.
5.What is the accuracy of the stepper motor? Is it cumulative?
The accuracy of a general stepper motor is 3-5% of the step angle and is not cumulative.
6.What is the allowable surface temperature of the stepper motor?
If the temperature of the stepper motor is too high, the magnetic material of the motor will be demagnetized, which will cause the torque to drop or even lose steps.
Therefore, the maximum allowable temperature of the motor surface should depend on the demagnetization point of the magnetic material of the motor.
Generally speaking, the demagnetization point of the magnetic material is above 130 degrees Celsius, and some are even as high as 200 degrees Celsius
. Therefore, it is completely normal for the surface temperature of the stepper motor to be 80-90 degrees Celsius.
7.Why does the torque of a stepper motor decrease as the speed increases?
When the stepper motor rotates, the inductance of each phase winding of the motor will form a reverse electromotive force; the higher the frequency,
the greater the reverse electromotive force. Under its action, the motor phase current decreases as the frequency (or speed) increases, resulting in
a decrease in torque.
8.Why can the stepper motor run normally at low speed, but cannot start and makes a howling sound if it is higher than a certain speed?
The stepper motor has a technical parameter: no-load starting frequency, that is,
the pulse frequency at which the stepper motor can start normally under no-load conditions. If the pulse frequency is higher than this value, the motor cannot start normally and may lose steps or stall
. Under load conditions, the starting frequency should be lower. If the motor is to reach high-speed rotation, the pulse frequency
should have an acceleration process, that is, the starting frequency is low, and then it is increased to the desired high frequency at a certain acceleration (the motor
speed increases from low speed to high speed).
9. How to overcome the vibration and noise of the two-phase hybrid stepper motor when running at low speed?
The inherent disadvantages of stepper motors are that they produce large vibrations and noises when rotating at low speeds. Generally, the following solutions can be used to overcome them:
A. If the stepper motor happens to work in the resonance zone, the resonance zone can be avoided by changing the reduction ratio and other mechanical transmission methods;
B. Use a driver with subdivision function, which is the most commonly used and simplest method;
C. Replace with a stepper motor with a smaller step angle, such as a three-phase or five-phase stepper motor;
D. Replace with an AC servo motor, which can almost completely overcome vibration and noise, but the cost is higher;
E. Add a magnetic damper to the motor shaft. This product is already available on the market, but the mechanical structure changes significantly.
10. Can the number of subdivisions of a subdivision driver represent accuracy?
The subdivision technology of stepper motor is essentially an electronic damping technology (please refer to relevant literature). Its main purpose
is to reduce or eliminate the low-frequency vibration of stepper motor. Improving the running accuracy of motor is only a
subsidiary function of subdivision technology. For example, for a two-phase hybrid stepper motor with a step angle of 1.8°, if the
subdivision number of the subdivision driver is set to 4, the running resolution of the motor is 0.45° per pulse. Whether the accuracy of the motor can reach
or approach 0.45° also depends on other factors such as the subdivision current control accuracy of the subdivision driver. The accuracy of subdivision drivers from different manufacturers
may vary greatly; the larger the subdivision number, the more difficult it is to control the accuracy.
11.What is the difference between the series connection and the parallel connection between the four-phase hybrid stepper motor and the driver?
Four-phase hybrid stepper motors are generally driven by two-phase drivers. Therefore, when connecting,
the four-phase motor can be connected in series or in parallel to form two phases. The series connection is generally used in situations where the motor speed is relatively high.
At this time, the required driver output current is 0.7 times the motor phase current, so the motor heats up less; the parallel connection
is generally used in situations where the motor speed is relatively high (also known as high-speed connection), and the required driver output current is
1.4 times the motor phase current, so the motor heats up more.
12. How to determine the DC power supply for the stepper motor driver?
A. Determination of voltage
The power supply voltage of the hybrid stepper motor driver is generally in a wide range (for example,
the power supply voltage of IM483 is 12~48VDC). The power supply voltage is usually
selected according to the motor's operating speed and response requirements. If the motor's operating speed is high or the response requirement is fast, the voltage value is also high, but
note that the ripple of the power supply voltage cannot exceed the maximum input voltage of the driver, otherwise the driver may be damaged.
B. Determination of current
The power supply current is generally determined by the output phase current I of the driver. If a linear power supply is used,
the power supply current can generally be 1.1 to 1.3 times of I; if a switching power supply is used, the power supply current can generally
be 1.5 to 2.0 times of I.
13. Under what circumstances is the offline signal FREE of the hybrid stepper motor driver generally used?
When the offline signal FREE is low, the current output from the driver to the motor is cut off, and the motor rotor is in
a free state (offline state). In some automation equipment, if
the motor shaft is required to be rotated directly without powering off the driver (manual mode), the FREE signal can be set low to make the motor offline for manual
operation or adjustment. After the manual operation is completed, the FREE signal is set high to continue automatic control.
14. How to use a simple method to adjust the rotation direction of a two-phase stepper motor after it is powered on?
Just swap the A+ and A- (or B+ and B-) of the motor and driver wiring.
Previous article:C language program for I2C communication
Next article:Introduction to FranklinC51, a high-level programming language for single-chip microcomputers
Recommended ReadingLatest update time:2024-11-16 13:31
- Popular Resources
- Popular amplifiers
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- Modern Product Design Guide
- Modern arc welding power supply and its control
- Small AC Servo Motor Control Circuit Design (by Masaru Ishijima; translated by Xue Liang and Zhu Jianjun, by Masaru Ishijima, Xue Liang, and Zhu Jianjun)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- I recently saw the DJI Mech S1 and it’s very interesting. Is anyone using it?
- MicroPython common IO port simulates SPI communication, which may be used when porting to some boards
- Three-coordinate programming
- Beijing's well-known 5G chip developer is recruiting: digital front-end engineer (RISCv or CPU digital front-end direction)
- Bike modification series: solar energy and batteries
- 【AT-START-F403A Review】Part 3 F403A STOP Mode Current Test
- [Free book 100% gift] A book teaches you how to develop test systems and gain an in-depth understanding of data acquisition systems
- 【DIY Creative LED】Circuit Analysis
- [DIY Bing Dun Dun] + a simple small Dun Dun board
- [RVB2601 Creative Application Development] 5. Initial test of RVB2601 WiFi networking and data interaction