Interfacing of a Stepper Motor

Encyclopedia
08/22/2024

Stepper Motor Definition

A stepper motor is a DC motor that moves in steps, with rotation speed dependent on the electrical signal rate.

4bf5256495d9f553efd1b39fe0e3efd9.jpeg

Components

The motor has a rotor (permanent magnet) and a stator (winding), with the rotor rotating and the stator stationary.

Working Principle

The center tap on the stator winding allows current direction change when grounded. This changes the stator’s magnetic properties, selectively attracting and repelling the rotor to create a stepping motion.

Stepping Sequence

In order to get correct motion of the motor, a stepping sequence has to be followed. This stepping sequence gives the voltage that must be applied to the stator phase. Normally a 4 step sequence is followed.

When the sequence is followed from step 1 to 4, we get a clock wise rotation and when it is followed from step 4 to 1, we get a counter clockwise rotation.

ef15d3de898a16407f096c05b4daf9ba.jpeg

Interfacing Diagram

5f7c0a08ef19b54a4ba11809a5f2068a.jpeg

The diagram below shows the interfacing of stepper motor to a micro-controller. This is general diagram and can be applied to any micro-controller family like PIC micro-controller, AVR or 8051 micro-controller.

Since the microcontroller cannot provide enough current, a driver like ULN2003 is used to run the motor. Individual transistors or other driver ICs can also be used. Ensure external pull-up resistors are connected if needed. Never connect the motor directly to the controller pins. The motor voltage depends on its size.

A typical 4 phase uni-polar stepper motor has 5 terminals. 4 phase terminals and one common terminal of the center tap that is connected to ground. The programming algorithm for continuous rotation in clockwise mode is given below-

  • Initialize the port pins used for the motor as outputs

  • Write a common delay program of say 500 ms

  • Output first sequence-0 × 09 on the pins

  • Call delay function

  • Output second sequence-0 × 0 c on the pins

  • Call delay function

  • Output third sequence-0 × 06 on the pins

  • Call delay function

  • Output fourth sequence-0 × 03 on the pins

  • Call delay function

  • Go to step 3

Step Angle

The number of steps required to complete one full rotation depends on the step angle of the stepper motor. The step angle can vary from 0.72 degrees to 15 degrees per step. Depending on that 500 to 24 steps may be required to complete one rotation. In position control applications the selection on motor should be based on the minimum degree of rotation that is required per step.

Half Stepping

Stepper motors can operate at half the actual step angle, known as half stepping. For example, a motor rated for 15 degrees per step can be programmed to rotate at 7.5 degrees per step using a special half-stepping sequence.

e7884b1a34f89c1664a2af5f1a9c46ca.jpeg

Stepper Motor v/s Servo Motor

Both the stepper motor and servo motor are used primarily in position control applications. But there lies a difference in their working and construction. The stepper motor has a large number of poles or teeth on their rotor and these teeth act as magnetic north and south poles which gets attracted or repelled to the electrically magnetized coil of the stator. This helps in the stepping motion that a stepper generates.

On the other hand, in a servo motor the position is controlled by the specialized circuit and the feedback mechanism, which generates an error signal to move the motor shaft.

Encyclopedia

The Electricity Encyclopedia is dedicated to accelerating the dissemination and application of electricity knowledge and adding impetus to the development and innovation of the electricity industry.

Cost Differences and Performance Comparison of 35kV New Energy Transformers Based on Dry-Type, Mineral Oil, and Vegetable Oil
Cost Differences and Performance Comparison of 35kV New Energy Transformers Based on Dry-Type, Mineral Oil, and Vegetable Oil
For users, when purchasing a 35kV new energy transformer, choosing between dry-type, mineral oil-filled, or vegetable oil-filled types involves multiple considerations. These include user habits, maintenance-free performance, safety and fire resistance, volume and weight, among others. However, cost differences are undoubtedly one of the most crucial factors.To illustrate the issue intuitively, this paper selects a three-level energy efficiency dual-winding new energy transformer with a rated ca
Ron
07/26/2025
What is the connection group of a transformer?
What is the connection group of a transformer?
Transformer Connection GroupThe connection group of a transformer refers to the phase difference between the primary and secondary voltages or currents. It is determined by the winding directions of the primary and secondary coils, the labeling of their start and end terminals, and the connection mode. Expressed in a clock-like format, there are 12 groups in total, numbered from 0 to 11.The DC method is commonly used to measure the transformer's connection group, mainly to verify whether the con
Vziman
07/26/2025
What is the sequence for powering down the transformer?
What is the sequence for powering down the transformer?
The sequence for shutting down a main transformer is as follows: when de-energizing, the load side should be shut down first, followed by the power supply side. For energizing operations, the reverse order applies: the power supply side is energized first, then the load side. This is because: Energizing from the power supply side to the load side makes it easier to identify the fault range and take prompt judgment and handling measures in case of a fault, preventing the fault from spreading or e
Rockwell
07/26/2025
What are the methods for switching operations of station transformers?
What are the methods for switching operations of station transformers?
Let's take an auxiliary power system with two station transformers as an example. When one station transformer needs to be out of service, there are two operation methods: non-interruptive power supply and instantaneous power interruption. Generally, the method of instantaneous power interruption on the low-voltage side is preferred.The operation method for instantaneous power interruption on the low-voltage side is as follows:Open the 380V power incoming circuit breaker of the corresponding sec
Vziman
07/26/2025
Inquiry
Download
IEE-Business is dedicated to serving the personnel in the global power industry.
Join IEE-Business, not only can you discover power equipment and power knowledge, but also canhnd like - minded friends!