Stepper Motor Driver - Model stepper motor driver

Library

Actuators & Drivers

Description

The Stepper Motor Driver block represents a stepper motor driver. It creates the pulse trains, A and B, required to control the motor. This block initiates a step each time the voltage at the PWM port rises above the Enable threshold voltage.

If the voltage at the REV port is less than or equal to the Reverse threshold voltage, pulse A leads pulse B by 90 degrees. If the voltage at the REV port is greater than the Reverse threshold voltage, pulse B leads pulse A by 90 degrees and the motor direction is reversed.

At time zero, pulse A is positive and pulse B is negative.

Use the Controlled PWM Voltage block to create the voltage at the PWM port. This block creates a network engine event every time the PWM signal goes high. The network engine event triggers a simulation time point when the PWM signal goes high, which ensures good simulation accuracy. If you instead use the Controlled Voltage Source block from the Foundation library, which is controlled by Simulink®, you need to set a suitably small time step for the simulation. For information about specifying the Simulink step size, see Choosing a Solver in the Simulink User's Guide.

Dialog Box and Parameters

Enable threshold voltage

When the voltage at the PWM port rises above this threshold, the Stepper Motor Driver block initiates a step. The default value is 2.5 V.

Reverse threshold voltage

When the voltage at the REV port rises above this threshold, pulse B leads pulse A by 90 degrees and the motor direction is reversed. The default value is 2.5 V.

Output voltage amplitude

Amplitude of the output pulse trains. The default value is 10 V.

Ports

The block has the following ports:

A+

Positive electrical output of pulse A.

A-

Negative electrical output of pulse A

B+

Positive electrical output of pulse B.

B-

Negative electrical output of pulse B.

PWM

Triggering input step voltage.

REF

Input floating reference voltage.

REV

Input voltage that controls motor direction.

Examples

See the Controlled Stepper Motor demo.

See Also

Controlled PWM Voltage and Stepper Motor.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS