Classification of stepper motors_Stepper motor forward and reverse control program

Publisher:平和思绪Latest update time:2023-05-10 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Classification of stepper motors

Stepper motors can be classified according to different standards, such as rotor structure, control method, electrical characteristics, etc. The following are several common classification methods:


Classification by rotor structure Stepper motors can be divided into two categories according to the rotor structure: single-blocked rotor type and double-blocked rotor type. The rotor and stator of the single-blocked rotor stepper motor move relative to each other, while the rotor of the double-blocked rotor stepper motor is divided into several parts, each of which has its own stator coil, and the rotor movement is controlled by controlling different stator coils.


Classification by control method Stepper motors can be divided into open-loop control stepper motors and closed-loop control stepper motors. The control signal of an open-loop control stepper motor is just a simple pulse signal, while a closed-loop control stepper motor can achieve more precise position control through feedback mechanisms such as encoders.


Classification by electrical characteristics Stepper motors can be divided into two categories according to their electrical characteristics: single-phase stepper motors and multi-phase stepper motors. Single-phase stepper motors have only one stator coil, so they can only achieve relatively small output torque and speed. Multi-phase stepper motors have multiple stator coils and can provide higher output torque and speed.


Classification by step angle Stepper motors can be divided into several different types according to the step angle, including 1.8 degrees, 0.9 degrees, 0.45 degrees and 0.225 degrees. The smaller the step angle, the higher the resolution of the motor, which can achieve more precise position control, but usually requires a higher cost.


In short, stepper motors can be divided according to different classification methods, and different types of stepper motors can be selected according to specific application needs to meet different control requirements.


Stepper motor forward and reverse control program

The stepper motor forward and reverse program is a system program for stepper motor speed control. MAIN: ; Main program.

;Program function: stepper motor speed control

MAIN: ; Main program

ACALL Z_M ;Call the forward rotor program

ACALL F_M ;Call reverse subroutine

MOV R5, #250; assign R5 to 250

ACALL DELAY ; call delay subroutine

JMP MAIN; Jump to MAIN to form a loop

Z_M: ; Positive rotor program

MOV R0, #20; repeat 20 times

MOV A, #11001100B ; Left shift initial value

LOOP:MOV P0, A; output

MOV R5, #50; assign the delay counter R5 to 50

ACALL DELAY ; Call the delay subroutine to delay for 1 second

RL A ;Move left

DJNZ R0, LOOP; Determine whether to loop 20 times

RET ; Subroutine return

F_M: ;Reverse subroutine

MOV R1, #200; repeat 200 times

MOV A, #00110011B; right shift the initial value

LOOP1: MOV P0, A; output

MOV R5, #5; assign the delay counter R5 to 5

ACALL DELAY ; Call the delay subroutine to delay for 0.1 seconds

RR A ; right shift

DJNZ R1, LOOP1; Determine whether to loop 200 times

RET ; Subroutine return

DELAY: ; Delay subroutine

DLY1: MOV R6,#100

DLY2: MOV R7,#100

DJNZ R7,$

DJNZ R6, DLY2

DJNZ R5, DLY1

RIGHT

END


Reference address:Classification of stepper motors_Stepper motor forward and reverse control program

Previous article:Why is the stepper motor slow? How to adjust the speed of the stepper motor
Next article:The basic principles and characteristics of stepper motors

Latest Embedded 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号