This experiment: drives a stepper motor. The experiment requires that one button can control the start and stop of the stepper motor, and one button controls forward and reverse rotation.
1. Experimental Phenomenon
2. Experimental Code
3. The concept of stepper motor
A stepper motor is an actuator that converts electrical pulses into angular displacement. When the stepper driver receives a pulse signal, it drives the stepper motor to rotate a fixed angle in the set direction (this angle is called the step angle). We can control the angular displacement of the motor by controlling the number of pulses, thereby achieving the purpose of precise positioning; at the same time, we can also control the speed and acceleration of the motor by controlling the pulse frequency, thereby achieving the purpose of speed regulation.
4. Phase, line, polarity
"Phase" means how many coils (also called windings) the stepper motor has.
"Line" means how many connection ports the stepper motor has.
"Polarity" is divided into unipolar and bipolar. If the coil of the stepper motor can conduct electricity in both directions, then the stepper motor is bipolar. On the contrary, if the coil of the stepper motor is only allowed to conduct electricity in one direction, then the stepper motor is unipolar.
1. A five-wire four-phase stepper motor has five wiring ports and four coils.
Since there are five terminals, that is, the number of terminals is an odd number, that is, one terminal is a common terminal, so the conduction mode of its coil is only allowed to be unidirectional, that is, this stepper motor is unipolar.
2. A four-wire bipolar stepper motor has four wiring ports, and the conduction method allows bidirectional operation.
Since there are four wiring ports and the conduction method is bidirectional, this stepper motor is two-phase.
5. Stepping mode: single shot, double shot, single and double shot
1. Single shot: (single four-shot working mode)
The single-shot working mode means that only one coil is energized at a time, and the stepper motor rotates by changing the coil that is energized each time.
Let's talk about the five-wire four-phase stepper motor first. Assuming that its four coils are called A, B, C, and D, then in the single-shot working mode, the coils are energized in the following order: A, B, C, and D;
Then there is the four-wire bipolar stepper motor. Assuming its two coils are called A and B, then in the single-shot working mode, the coils are: A, B, -A, -B;
【Note】A and B refer to the forward current flowing through the A and B coils, and -A and -B refer to the reverse current flowing through the A and B coils.
Since the five-wire four-phase stepper motor cannot pass reverse current, there are only A, B, C, and D.
2. Double shot: (double four shot working mode)
The double-shot working method is: energize the two coils each time, and make the stepper motor rotate by changing the energized coil.
Five-wire four-phase stepper motor: In the double-beat working mode, the coils are energized in the following order: AB, BC, CD, DA;
For a four-wire bipolar stepper motor, in the double-beat working mode, the coils are energized in the following order: AB, BA, -AB, -BA;
3. Single and double beats (eight-beat working mode)
The single-double-shot working mode is to alternate between the single-shot working mode and the double-shot working mode.
Five-wire four-phase stepper motor: A, AB, B, BC, C, CD, D, DA;
Four-wire bipolar stepper motor: A, AB, B, BA, -A, -AB, -B, -BA;
4. Step angle:
Previous article:The relationship between AI and flexible robotic systems in the industrial field
Next article:How to brake the motor? What are the fast braking methods of BLDC? How to operate it specifically?
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
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
- Is it useful for people who work with microcontrollers to read "Introduction to Algorithms" and "Data Structures"?
- Design of electronic piano based on LPC2000 series ARM chip
- How do analog switches ensure bandwidth without distortion?
- How to use a multimeter from entry level to mastery
- Looking for lmk04826B5 routine
- PCB panelization methods and precautions
- mpy adds math.isclose() function
- Low power mode of msp430f149
- Android's past and present
- How should the DC component in the signal be extracted?