Interfacing A Stepper Motor With ARM Controller LPC2148
Interfacing A Stepper Motor With ARM Controller LPC2148
Interfacing A Stepper Motor With ARM Controller LPC2148
Volume: 4 Issue: 3 72 – 80
_______________________________________________________________________________________________
Interfacing a Stepper Motor with ARM Controller LPC2148
Abstract—Another useful machine interfaced to the computer system is the Stepper motor. A Stepper motor is a digital motor because each
input pulse results in discrete output or discrete steps as it traverses through 360 0 which means the shaft rotation by definite angle called step angle.
Stepper motors are DC motors that move in discrete steps. They possess multiple coils that are organized in groups referred to as phases. By
energizing each phase in sequence, the motor will rotate one step at a time. Stepper motors are available in various sizes and styles as well as
electrical characteristics. Nowadays, the use of ARM controllers is in limelight. The ARM controllers are basically designed to target the 32 bit
microcontrollers. These controllers provide excellent performance and are available with latest and enhanced features. The ARM controllers are
suitable for 32 bit embedded applications. The state of the art presented in this paper is the interfacing of Stepper motor with ARM controller LPC
2148.
Keywords-Stepper motor, discrete steps, shaft rotation, step angle, 32 bit embedded applications, ARM controller LPC2148, interfacing.
__________________________________________________*****_________________________________________________
I. INTRODUCTION
A Stepper motor is an electrical machine that translates the
electrical pulses into mechanical movement. Stepper motors are
also referred to as stepping motors or step motors because they
rotate through a fixed angular step in response to each input
current pulse from its controller. Stepper motors are designed
to develop torques ranging from 1 µNm (in tiny wrist watch
motor of 3 mm diameter) up to 40 Nm in a motor of 15 cm
used for machine tool applications. The output power of
stepper motor ranges from about 1 Watt to about 2500 Watt.
The only moving part in a stepper motor is its rotor which has
no windings. Hence it does not require commutator and
brushes. In applications such as disk drives, dot matrix printers
and robotics, the stepper motor is used for position control. A
common stepper motor is geared to move perhaps 150 per step
in inexpensive motor, to 10 per step in a more costly, high
precision stepper motor. In all cases, these steps are gained
through many magnetic poles and/or gearing. Every Stepper
motor has a permanent magnet rotor (also known as the shaft)
surrounded by the stator. This is depicted in fig.1
The most common stepper motors have four stator
windings that are paired with a Center tapped common as Fig.1 Internal schematic of Stepper motor
shown in fig.2. This type of stepper motor is commonly
referred to as a four phase stepper motor. The center tap allows
the change of current direction in each of two coils when a
winding is grounded, which results in a polarity change of the
stator.
The internal construction of the stepper motor, to be more
precise the number of teeth on the stator and the rotor, decides
how much movement is associated with a single step. The step
angle is the minimum degree of rotation associated with a
single step. Various motors have different step angles. Table
1illustrates some step angles for various motors. The term steps
per revolution is the total number of steps needed to rotate one
complete rotation or 360 degrees. (For example, 180 steps x 2
degrees = 360). [1] [2].
74
IJFRCSCE | March 2018, Available @ http://www.ijfrcsce.org
_______________________________________________________________________________________
International Journal on Future Revolution in Computer Science & Communication Engineering ISSN: 2454-4248
Volume: 4 Issue: 3 72 – 80
_______________________________________________________________________________________________
The photographic view of the Stepper motor used in the On the desktop computer my computer icon was right clicked
system is illustrated in fig 5. and manage option was chosen and further the device
manager option was selected and then the ports option was
clicked which depicted the communication port as port 1 and
the USB to serial port as port 3. The keil µ-vision 4 software
was used to write the C program for the rotation of the stepper
motor in anticlockwise and clockwise direction interfaced with
ARM-09 NXP LPC2148 Microcontroller board [7]. The
following sequence of steps was followed in order to get the
desired output.
The keil µ-vision 4 software was opened by double clicking on
the keil µ-vision 4 icon located on the desktop screen [7]. The
project option was right clicked and then new µ-vision project
was chosen as illustrated in fig.7
Fig.9 selecting the microcontroller LPC2148 Fig.12 selecting the new file
A new window appears named µ-vision copy startup project The program was written in embedded C language for rotation
folder and Add file to the project with two options Yes and No. of stepper motor in anticlockwise and clockwise direction by
The Yes option was chosen. This is shown in fig. 10 50 steps. After the completion of program the next step was to
save the program. In order to do this save icon was clicked as
shown in fig.13
Fig.16 adding existing files to source group-1. Fig.19 obtaining the error free program
A new window named Add Files to Group „Source Group 1‟ In the project window Target-1 was right clicked and the
appeared where the file ROTATING was selected and then options for Target, Target 1 was chosen as shown in fig.20
Add and Close options were clicked sequentially. This is
shown in fig.17
Fig.21 enabling Xtal 12.0 MHz, Micro lib, IROM and IRAM 1 Fig.24 selecting rebuild option for building source file
In the same window the next option chosen was output, where This created the .HEX file as 0 Error(s), 0 Warning(s) and this
create hex file option was enabled by selecting it as illustrated was displayed in the Build output window as shown in fig.25
in fig.22
STEP2: ERASE
In this step Erase blocks used by hex file was enabled by
selecting this option as illustrated in fig.27 Fig. 29 STEP4: OPTIONS
STEP5: START
In this step the start option was clicked to download the Hex
file to the controller on the ARM-09 NXP LPC2148
Microcontroller board as shown in fig.30
80
IJFRCSCE | March 2018, Available @ http://www.ijfrcsce.org
_______________________________________________________________________________________