| SimElectronics™ | ![]() |
Actuators & Drivers

The Stepper Motor block represents a stepper motor. It uses the input pulse trains, A and B, to control the mechanical output according to the following equations:
![]()
![]()
![]()
![]()
where:
iA and iB are the A and B phase winding currents.
vA and vB are the A and B phase winding voltages.
Km is the motor torque constant.
Nr is the number of teeth on each of the two rotor poles. The Full step size parameter is (π/2)/Nr.
R is the winding resistance.
L is the winding inductance.
B is the rotational damping.
J is the inertia.
If the initial rotor is zero or some multiple of (π/2)/Nr, the rotor is aligned with the phase winding of pulse A. This happens when there is a positive current flowing from the A+ to the A- ports and there is no current flowing from the B+ to the B- ports.
Use the Stepper Motor Driver block to create the pulse trains for the Stepper Motor block.
The Stepper Motor block produces a positive torque acting from the mechanical C to R ports when the phase of pulse A leads the phase of pulse B.
The model is based on the following assumptions:
This model neglects magnetic saturation effects, detent torque, and any magnetic coupling between phases.
When you select the Start simulation from steady state check box in the Simscape Solver Configuration block, this block will not initialize an Initial rotor angle value between –π and π.

Resistance of the A and B phase windings. The default value is 0.55 Ω.
Inductance of the A and B phase windings. The default value is 0.0015 H.
Motor torque constant Km. The default value is 0.19 N*m/A.
Step size when changing the polarity of either the A or B phase current. The default value is 1.8°.

Resistance of the rotor to change in motor motion. The default value is 4.5e-05 kg*m2. The value can be zero.
Energy dissipated by the rotor. The default value is 8e-04 N*m/(rad/s). The value can be zero.
Speed of the rotor at the start of the simulation. The default value is 0 rpm.
Angle of the rotor at the start of the simulation. The default value is 0 rad.
The block has the following ports:
Positive electrical output of pulse A.
Negative electrical output of pulse A
Positive electrical output of pulse B.
Negative electrical output of pulse B.
Mechanical rotational conserving port.
Mechanical rotational conserving port.
See the Controlled Stepper Motor demo.
[1] M. Bodson, J. N. Chiasson, R. T. Novotnak and R. B. Rekowski. "High-Performance Nonlinear Feedback Control of a Permanent Magnet Stepper Motor." IEEE Transactions on Control Systems Technology, Vol. 1, No. 1, March 1993.
[2] P. P. Acarnley. Stepping Motors: A Guide to Modern Theory and Practice. New York: Peregrinus, 1982.
[3] S.E. Lyshevski. Electromechanical Systems, Electric Machines, and Applied Mechatronics. CRC, 1999.
![]() | SPICE Environment Parameters | Stepper Motor Driver | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |