Using AM-MS2 stepping motor drive module
- Connecting the Hardware
- Enable Signal
Enable signal is used to drive or stop the stepping motor. Being Active High, if you want to
operate a motor continuously, you must connect it to VCC. To use in Sleep mode, connect
to the port output. If out value is 0, the motor torque disappear
- Step Mode [1:0] Signal
This pin is to set the step mode to Micro-step. The default is set to the Half Step

Depending on requirement, if you hope to connect to the port or if you hope to use only one
mode, apply VCC or GND to the respective pin. If you do not connect anything, it works
in Half Step Mode.
- Left/Right Motor DIR
Determines the direction of left and right Motors. If the DIR pin is connected to GND, the
motor rotates clockwise (CW) and if DIR is connected to VCC, motor rotates
counter-clockwise (CCW).When making moving robot using 2 motors, the left motor
should be configured to counter-clockwise and right motor to clockwise direction. Then only
the Robot can move in forward direction. Apply VCC or GND to the respective pin or to the
port output.
- Left/Right Motor CLK
Determine the rotation speed of left and right motor. Depending on the CLK speed, the motor
rotates at fast or slow speed. This pin is connected to the microcontroller’s port and allows taking
the CLK from the microcontroller.
The motor rotation angle per clock cycle depends on the Micro-step mode.
- Understanding Stepping motors in details
In order to drive a stepping motor, one needs to understand the basic structure and operation of
stepping motor and should create the drive signals using software. Refer the example file
implemented by ATMega128 in NEWTC webpage. (http://www.NEWTC-en.com) Please refer
the "Line tracer Lecture -2 Driving a motor" for basic structure and operating methods and software implementation method

Picture showing usage of stepping motor drive module using “KD-128PRO”.
Picture of AM-MS2 (stepping motor clock driving module)
