Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/337406336

A LabVIEW module to promote undergraduate research in control of AC servo


motors of robotics manipulator

Article  in  Computer Applications in Engineering Education · January 2020


DOI: 10.1002/cae.22180

CITATIONS READS

0 63

4 authors:

Samer Yahya Mahmoud Moghavvemi


University of Arkansas at Little Rock University of Malaya
39 PUBLICATIONS   244 CITATIONS    293 PUBLICATIONS   3,522 CITATIONS   

SEE PROFILE SEE PROFILE

Haider Abbas F. Almurib Hussain Al-Rizzo


University of Nottingham, Malaysia Campus University of Arkansas Little Rock
87 PUBLICATIONS   1,042 CITATIONS    287 PUBLICATIONS   1,480 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

Sliding mode observer with multilevel inverter of PMSM View project

Wireless Communications View project

All content following this page was uploaded by Hussain Al-Rizzo on 29 November 2019.

The user has requested enhancement of the downloaded file.


Received: 20 September 2018 | Accepted: 19 May 2019

DOI: 10.1002/cae.22180

RESEARCH ARTICLE

A LabVIEW module to promote undergraduate research in


control of AC servo motors of robotics manipulator

Samer Yahya1 | Mahmoud Moghavvemi2,3 | Haider A. F. Almurib4 |


1
Hussain Al‐Rizzo

1
Department of Systems Engineering,
George W. Donaghey College of Abstract
Engineering and Information Technology, This paper presents a project‐based learning pedagogy for undergraduate
University of Arkansas, Little Rock,
mechanical engineering students which integrates traditional hardware‐based
Arkansas
2 laboratory with LabVIEW to control the angular position, velocity, and
Department of Electrical Engineering,
CRAE, University of Malaya, Malaysia acceleration of AC servo motors of a six‐degree of freedom manipulator. The
3
Department of Electrical Engineering, proposed experimental modules have been proved to be very effective in
University of Science and Culture, assisting teams of undergraduate students within the Department of Mechan-
Tehran, Iran
4
ical, Materials and Manufacturing Engineering at the University of Nottingham,
Department of Electrical and Electronic
Engineering, University of Nottingham Malaysia Campus, who have used the modules in designing a new mechanical
Malaysia Campus, Kuala Lumpur, structure of a robot during their capstone design project. The proposed
Malaysia
pedagogy inspired undergraduate students to publish their first paper based on
Correspondence the outcomes of their project. The focus on this paper is to present how the
Samer Yahya, Department of Systems students’ learning experience has been significantly enforced and their role in
Engineering, George W. Donaghey
College of Engineering and Information
developing the modules introduced in this paper. Three modules are presented;
Technology, University of Arkansas, Little the first configures a timer to generate a signal that drives the servo motors. The
Rock, AR 72204‐1099. second drives the servo motor to a specific angular position with a constant
Email: syhadi@ualr.edu
angular velocity. Finally, the third is used to control the servo motor to follow
any desired angular position, velocity, and acceleration.

KEYWORDS
AC servo motors, LabVIEW, simulation

1 | INTRODUCTION solving skills, communication skills, teamwork skills,


independence, imagination, and creativity [20].
Computer‐aided design educational tools have recently Moreover, to comply with the ABET accreditation
gained popularity with successful implementation in requirements, graduates must be equipped with inte-
many areas including robotics, which is the subject of grated technical/professional skills and competencies to
this paper [1,3,5,14,17,18]. These tools are aimed at solve complex and ill‐structured industrial problems. The
helping students to visualize the concepts by providing most appropriate course to instill and assess these skills is
graphical feedback during the learning process [7]. the capstone project which is focused on and centered on
Robotics in education is considered as an interdisci- industry practice [10].
plinary, project‐based learning activity drawing mostly on Traditional hardware‐based design paradigms are
mathematics, science, and engineering technology offer- expensive and time‐consuming, while theoretical study
ing several avenues in education at all levels can be overwhelmingly difficult to introduce in the
[2,8,11,15,16]. Robotics education can foster problem‐ upper‐level undergraduate curriculum. With the proper
Comput Appl Eng Educ. 2019;1–15. wileyonlinelibrary.com/journal/cae © 2019 Wiley Periodicals, Inc. | 1
2 | YAHYA ET AL.

introduction of fundamental concepts, laboratory work the problems arising with kinematic singularities and
can become productive when integrated with CAD, such manipulator redundancy [6].
as LabVIEW as proposed by many scholars in engineer- Since controlling DC servo motors is easier than AC
ing education programs [23]. servo motors, many efforts have been paid by researchers
National Instruments LabVIEW is a graphical pro- to design models to control DC motors. This paper shows
gramming language that is heavily used in automation how students and instructors collaborated to develop
control and data acquisition. Its graphical representation flexible LabVIEW modules to control AC servo motors.
was created to provide an intuitive programming The rest of the paper is organized as follows. The
environment for scientists and engineers. LabVIEW has kinematics of the manipulator is presented in Section 2.
several key features which inspires us to adopt in our Section 3 reported the trajectory planning calculations. In
automation environment. Section 4, step by step LabVIEW modules structure is
Servo motors are rapidly replacing conventional ones. explained. The simulation results are shown in Section 5.
The introduction of servo motors has increased the Finally, the paper is concluded in Section 6.
importance of transient motion analysis, which is
becoming increasingly important and critical in the
design of automated machines and robots [4]. The 2 | PRERE QU IS I TE KNOW LED G E
characteristics of the electrical servo systems are sum-
marized as high servo response and noise suppression, Before delving into the modules’ development, traditional
high overload capability, wide speed range, and good fundamental knowledge is necessary for the students
smoothness of movement at very low speeds. To date, which covers how to determine the kinematics of a robot
DC servo motors have been widely used in and how to choose and calculate a trajectory planning to
obtaining such characteristics, which, however, have the task.
some disadvantages, such as mechanical commuta-
tion, regular maintenance due to brush wear, and the
losses in the rotor [12]. On the other hand, AC servo
2.1 | The kinematics of the manipulator
motors have been extensively employed in various The manipulator used to calculate the transformation
control systems, such as robot’s actuator, machining matrix of the manipulator is shown in Figure 1. The
center, computer numerical control, machine, and corresponding link parameters of the manipulator are
precise robot. Because of their favorable electrical and shown in Table 1, where l1, l2, …,l5 are the length of the
mechanical properties, good dynamics, and a high links, while d1 is the offset between the origin and the
efficiency, AC servo system is requested to have an end‐effector. Structure details concerning the manipula-
accurate response for the position reference and a tor used are reported in [21].
quick recovery for the external disturbances or load The individual transformations for each link as seen
variations [9,13]. in Figure 1 are computed using the parameters depicted
The problem posed to the students concerns the in Table 1 using (1) below which defines the matrix T for
trajectory planning problem in robotics defined as the links [19]
find a motion law along a given geometric path, taking
into account some predefined requirements, so as to ⎡ cos θi − sin θi cos αi sin θi sin αi ai cos θi ⎤
⎢ ⎥
sin θi cos θi cos αi − cos θi sin αi ai sin θi ⎥
be able to generate suitable reference inputs for the i −1
Ti = ⎢ , (1)
control system of the manipulator. The inputs of the ⎢ 0 sin αi cos αi di ⎥
⎢⎣ 0 0 0 1 ⎥⎦
trajectory planning are as follows: the geometric path,
the kinematic, and dynamic constraints, while the
where ci = cos(θi) and si = sin(θi) and θ is the angular
output is the trajectory of the joints (or of the end‐
position of any joint
effector), expressed as a time sequence of position,
velocity, and acceleration values.
⎡ c1 0 s1 0⎤ ⎡ c 2 − s2 0 l1 c2 ⎤
Another focus of the project is the planning of a ⎢s ⎢ ⎥
0 − c1 0⎥ s c 0 l1 s2 ⎥
trajectory in the joint space rather than in the 0
T1 = ⎢ 1 ⎥, 1
T2 = ⎢ 2 2 ,
operating space which has a major advantage, namely ⎢0 1 0 0⎥ ⎢0 0 1 d1 ⎥
⎣0 0 0 1⎦ ⎢⎣ 0 0 0 1 ⎥⎦
that the control system acts on the manipulator joints
rather than on the end‐effector, hence, it would be ⎡ c3 −s3 0 l2 c3 ⎤
⎢ ⎥
easier to adjust the trajectory according to the design 2
T 3 = ⎢ s3 c3 0 l2 s3 ⎥ (2)
requirements if working in the joint space. Moreover, ⎢0 0 1 0 ⎥
trajectory planning in the joint space allows avoiding ⎣0 0 0 1 ⎦
YAHYA ET AL. | 3

FIGURE 1 The manipulator used in experiments [21]

⎡ r11 r12 r13 px ⎤


⎡ c4 −s4 0 l3 c4 ⎤ ⎡ c5 −s5 0 l 4 c5 ⎤ ⎢ r21 r22 r23 py ⎥
⎢ ⎥ ⎢ ⎥ 0
T6 = ⎢ ⎥ (4)
3
T 4 = ⎢ s4 c4 0 l3 s4 ⎥ , 4
T 5 = ⎢ s5 c5 0 l 4 s5 ⎥ , ⎢ r31 r32 r33 pz ⎥
⎢0 0 1 0 ⎥ ⎢0 0 1 0 ⎥ ⎢⎣ 0 0 0 1 ⎥⎦
⎣0 0 0 1 ⎦ ⎣0 0 0 1 ⎦
⎡ c 6 − s6 0 l5 c6 ⎤ where
⎢ ⎥
5
T 6 = ⎢ s6 c 6 0 l5 s6 ⎥
⎢0 0 1 0 ⎥ px = d1 sin(θ1) + cos(θ1)(l1 cos(θ2) + l2 cos(θ2 + θ3)
⎣0 0 0 1 ⎦
+ l3 cos(θ3 + 2θ3) + l 4 cos(θ3 + 3θ3)
Finally, the product of all six link transforms is + l5 cos(θ3 + 4θ3)),
evaluated as
py = d1 cos(θ1) + sin(θ1)(l1 cos(θ2) + l2 cos(θ2 + θ3)
0 0
T6 = T11T 22T 33T 4 4T 55T 6. (3) + l3 cos(θ3 + 2θ3) + l 4 cos(θ3 + 3θ3)
+ l5 cos(θ3 + 4θ3)),
It should be noted that for the proposed method,
θ3 = θ4 = θ5 [19], therefore these angles are defined as θ3. pz = l1 sin(θ2) + l2 sin(θ2 + θ3) + l3 sin(θ3 + 2θ3)
Hence, the product of all six link transforms can be + l 4 sin(θ3 + 3θ3) + l5 sin(θ3 + 4θ3).
written as:

T A B L E 1 Link parameters of the manipulator 2.2 | Trajectory planning


A trajectory is the path followed by the manipulator
i α a d θ
which is a function of the time profile along the path.
1 90 0 0 θ1
Trajectories can be planned either in joint space
2 0 l1 d1 θ2 (directly specifying the time evolution of the joint
3 0 l2 0 θ3 angles) or in Cartesian space (specifying the position
4 0 l3 0 θ4 and orientation of the end frame). Issues in trajectory
5 0 l4 0 θ5 planning include attaining a specific target from an
6 0 l5 0 θ6 initial starting point, avoiding obstacles, and staying
within manipulator capabilities. Planning in joint
4 | YAHYA ET AL.

space is the simplest and fastest because inverse Second, if there are mp via points between the initial
kinematics are avoided. and the final points, the whole trajectory may be divided
In other words, trajectory refers to a time history into mp + 1 segments, and each segment can be modeled
of the position, velocity, and acceleration for each individually.
degree of freedom. Suppose that the point‐to‐point To specify the position, velocity, and acceleration
trajectory is connected by several segments with at the beginning and end of a path segment, a
continuous acceleration at the intermediate via a quadrinomial and a quintic polynomial are required.
point. The position of each intermediate point as Between the initial point to mp intermediate via
seen Figure 2 is unknown along with its velocity. Of points, a quadrinomial is used to describe these
course, the intermediate points can also be given as segments as [22]
particular points that should be passed through. This
is useful especially when there is an obstacle in the θi, i +1 (t ) = ai0 + ai1 ti + ai2 ti 2 + ai3 ti3 + ai 4 ti4,
working area [22].
(i = 0, …, mp − 1), (8)
There are two methods for trajectory planning with
specified via points in the workspace [24]. The first is to
where the constraints are given as
define the trajectory using a single high‐order polyno-
mial, where the order of the polynomial depends on the
θi = ai0 , (9)
number of constraints. For example, given that the
positions, velocity, and acceleration of the first point and
target points are known, then the position and velocity on θi +1 = ai0 + ai1 Ti + ai2 Ti 2 + ai3Ti3 + ai 4Ti 4 , (10)
the mp via points, are determined using the polynomial of
the trajectory θi̇ = ai1, (11)

θ (t ) = a0 + a1 t + a2 t 2 + … + ak t k θi̇ +1 = ai1 + 2ai2 Ti + 3ai3 Ti 2 + 4ai 4 Ti 3, (12)


(k = (6 + 2*mp) − 1). (5)
θï +1 = 2ai2 , (13)

Next, the velocity and acceleration at any point as are where, Ti is the executing time from point i to point i + 1.
found using The five unknowns can be solved as

θ (t ) = a1 + 2 a2 t + … + k ak t k −1, (6)
ai0 = θi , (14)

θ ̈ (t ) = 2 a2 + … + k (k − 1) ak t k −2, (7) ai1 = θi̇ , (15)

Where θ ̇ and θ ̈ are the angular velocity and acceleration


ai2 = θï /2, (16)
of the joints. Therefore, the number of unknown
variables k is equal to the number of equations (initial
position and velocity for via and target points, and the ( )
ai3 = 4θi +1 − θi̇ +1 Ti − 4θi − 3θi̇ Ti − θï Ti2 / Ti3, (17)
acceleration at the initial and target points)
( )
ai4 = θi̇ +1 Ti − 3θi +1 + 3θi + 2θi̇ Ti + θï Ti2/2 / Ti4. (18)

The intermediate point i + 1′s acceleration can be


obtained as

θï +1 = 2ai2 + 6ai3 Ti + 12ai 4 Ti 2. (19)

The segment between the number mp of intermediate


points and the final point can be described by quitic
polynomial as

θi, i +1 (t ) = bi0 + bi1 ti + bi2 ti 2 + bi3 ti3 + bi 4 ti 4


FIGURE 2 Intermediate points on the path + bi5 ti5, (i = mp), (20)
YAHYA ET AL. | 5

where the constraints are given as 3 | La bVI EW MODE L T O


CONTRO L THE ANGULAR
θi = bi0 , (21) POSITION WITH CONSTANT
VE LOC ITY
θi +1 = bi0 + bi1 Ti + bi2 Ti 2 + bi3Ti3 + bi 4Ti 4 + bi5Ti5,
(22) In this section, the LabView platform design stages to
drive the servo motor to a specific angular position are
θi̇ = bi1, (23) illuminated step by step. Three servo motors are used in
these experiments; they are used to control a robotic
θi̇ +1 = bi1 + 2bi2 Ti + 3bi3 Ti 2 + 4bi 4 Ti 3 + 5bi 4 Ti 4, (24) manipulator. The first presented model is to control the
signal that drives the servo motors R88M‐G40030H‐S2
θï = 2bi2 , used in each joint via a national instrument data
(25)
acquisition (NI‐DAQ). To calculate the angle of each
joint, an angular position sensor (OMRON Incremental
θï +1 = 2bi2 + 6bi2 Ti + 12bi3 Ti 2 + 20bi 4 Ti 3. (26)
Rotary Encoder) is used. The sensors used to read the
angles are shown in Figure 3.
These constraints specify a linear set of six equations As mentioned earlier that undergraduate students
with six unknowns whose solution is given by within the Department of Mechanical, Materials and
Manufacturing Engineering at the University of Notting-
bi0 = θi , (27) ham Malaysia Campus have used the models as a
reference; they were introduced first to how to calculate
bi1 = θi̇ , (28) forward and inverse kinematics to different degrees of
freedom robots, and how to calculate trajectory planning.
bi2 = θï /2, (29) Then students are instructed on the electrical motors,
encoders and all the other equipment needed for the
( (
bi3 = 20θi +1 − 20θi − 8θi̇ +1 + 12θi̇ Ti ) interface between the manipulator and the PC to control
the servo motor.
(
− 3θï − ) )/2T ,
θï +1 Ti2 i
3
(30) To control the motion of each motor in the
manipulator, two steps to be followed: Reading optical
encoders with a counter, and configuring a timer to
( (
bi 4 = 30θi − 30θi +1 + 14θi̇ +1 + 16θi̇ Ti ) generate a signal that drives the servo motors.
( ) )
+ 3θï − 2θï +1 Ti2 /2Ti4, (31)
3.1 | Concept 1: Use counters to monitor
the joints angles
( (
bi5 = 12θi +1 − 12θi − 6θi̇ +1 + 6θi̇ Ti )
The NI PCI‐6602 features eight counters that can be used
( ) )
− θï − θï +1 Ti2 /2Ti5. (32) to read encoders interfaced to the NI‐DAQ card. Three
counters are configured to monitor the optical encoders
mounted on the manipulator as shown in Figure 3. The
As formulated above, the total parameters to be value of the angles θ1, θ2, and θ3 can be displayed in real‐
determined are the joint angles of each intermediate time. To monitor the manipulator angles, the following
via point (n × mp parameters), the joint angular steps should be followed:
velocities of each intermediate point (n × mp para- The first step is creating the front panel and block
meters), the execution time for each segment (mp + 1 diagram for each encoder by dragging a numeric
parameters), and the initial and final points of the indicator and a stop button into an empty VI front
desired path (2[n−m] parameters). Therefore, there panel. A waveform chart is dragged to display the
are ((2n + 1) mp + 2[n−m] + 1) parameters to be history of each joint angle of the manipulator. The
determined. correspondence block diagram is shown in Figure 4
Once the analytical formulation of the desired which uses a while loop.
trajectory has been introduced to the students, the next The next step is configuring a DAQ assistant for each
section describes how to control each joint via LabView encoder by launching a DAQ assistant. Then choose an
to follow this desired trajectory. acquire signal, counter input, position, angular, and
6 | YAHYA ET AL.

FIGURE 3 The encoders used to measure the angles

finally, select the channels of the NI‐DAQ card which


will be connected to the encoders.
The next step is the connection between encoders and
their timer, i.e., the parts (E6B2‐CWZ6C) and NI PCI‐
6602. Figure 5 shows the output circuit diagram of the
encoders used in this project to read the joints angles.
Phases A and B of each encoder are connected to one of
the counters of the NI PCI‐6602 via the BNC‐2121
connector. Phase A is connected to the SOURCE of the
selected counter while Phase B is connected to UP/ FIGURE 5 The output circuit diagram of the encoder (E6B2‐
DOWN of the selected counter. CWZ6C)

FIGURE 4 Encoder display block diagram. DAQ, data acquisition


YAHYA ET AL. | 7

3.2 | Concept 2: Generating a signal that motors. For the motors have the ability of following any
drives the servo motors desired angular position, velocity, and acceleration, the
model show in the next section can be used.
The servo motors R88M‐G40030H‐S2 can be controlled
by the signal feeding the two pins (22 and 24 which
control the direction of rotation) of the CN1 connector of
4 | La bVI EW MODE L T O
each servo motor. The type of the signal feeding these
CONTRO L THE ANGULAR
two pins specifies the direction of the servo motor
P O S I T I O N , VE L O C I T Y , A N D
whether it is clockwise or counterclockwise. Figure 6
ACCELERATION
shows the signals generated to control the servo motors.
To generate the square signals needed to drive
The model of Figure 4 can read the angular position of
the servo motors using LabVIEW, the model shown in
the servo motor but cannot read the angular velocity and
Figure 7 is used. It is also needed to mention that two
acceleration. Because the velocity is the measurement of
models are used instead of one for each servo motor,
the rate and direction of change in the position of an
because from these two pins, each pin is connected to
object, therefore a shift register is needed. The DAQ
one‐timer to generate the square pulse. For example,
assistant provides the current angle while the shift
COUNTER 0 is connected to pin 22 and COUNTER 1 is
register provides the previous angle value. Their differ-
connected to pin 24 of the servo motor, to rotate the servo
ence between them is divided by the sample time to
motor clockwise. For example, the signal of COUNTER 0
calculate the angular velocity. Figure 9 shows the block
of NI PCI‐6602 is set to zero while the signal of the
diagram which displays angular velocity. To calculate the
COUNTER 1 is set to be square signal. So, to rotate the
angular acceleration of the servo motor, another shift
servo motor counterclockwise, the signal of COUNTER 1
register is needed to provide the previous angular
is set to zero while the signal of the COUNTER 0 is set to
velocity.
be square signal.
Then the difference between the current angular
Then the counters of NI PCI‐6602 are connected to the
velocity of the motor and the previous angular velocity
servo motors via the BNC‐2121 and the servo motors
divided by the sample time calculates the angular
connection to the power supply should be completed
acceleration of the motor. Figure 10 shows the block
before testing the system.
diagram which displays angular acceleration.
Two LabView models are created then, one to display
As mentioned in the model of Figure 8, the velocity of
the angle position of the encoder and the second model is
the motors can be changed manually by changing the
to generate the signal that drives the servo motors. In
frequency of the motor pulse which is not very useful in
other words, if it is desired to design a model which is
real industrial applications. Instead, it is required to
able to generate signal which drives the servo motor and
design a model by which it is able to manipulate the
display the angle position of each joint as well, these two
angular velocity of the motor according to a desired path
models can be combined.
(equation). To achieve this ability, a formula node is
To make the model capable to stop the servo motor
added as shown in Figure 11. Inside this formula node,
when the angle reaches the target angle, the next
the desired equations of the angular position, velocity,
modifications in Figure 8 should be added. In this model,
and acceleration are written. Then connect the angular
a new block is added to make a continuous comparison
velocity value of this node to the frequency block of the
between the target angle and the experimental angle read
servo motor. To reduce the noise from the reading of the
from the encoder, once they are equal, the designated
encoders, RMS filter could be used in the model.
motor will be stopped.
It should be noted that in this model, the angular
velocity of the AC servo motors is constant, i.e., there is
no angular velocity reference that the motors should
5 | SI MULATI ON RE SULTS
follow. Instead, the angular velocity could be manipu-
Two tutorials are presented in this section. In the first
lated manually by changing the value of the pulse
tutorial, the angular velocity is set to be constant while
frequency of the signal generated to feed the servo
changing the angular position of the degrees of freedom
of the joint angles. In the second tutorial, there are
reference equations for the desired angular position,
velocity, and acceleration for the servo motors which
makes students more aware of expected cases in
FIGURE 6 Servo motors forward and reverse commands controlling a robot in real industry applications. The
8 | YAHYA ET AL.

FIGURE 7 Servo motors pulse generator model

servo motors used in the experiments are R88M‐ 5.1 | Tutorial 1


G40030H‐S2, which are controlled by the NI PCI‐6602
It is desired to rotate the three servo motors to the angles
via the BNC‐2121 connector. The encoders used to
ϕ = −15.92, α = 34.95, and θ = −37.37. Using the LabVIEW
display the angle position of each joint are OMRON
model of Figure 8, the motors of the experimental
(E6B2‐CWZ6C).
manipulator are moved until the angles get the values of

FIGURE 8 Servo motors control model


YAHYA ET AL. | 9

FIGURE 9 The block diagram which displays angular velocity. DAQ, data acquisition

FIGURE 10 The block diagram which displays angular acceleration. DAQ, data acquisition
10 | YAHYA ET AL.

FIGURE 11 The model used to control the angular position, velocity, and acceleration of the motor

FIGURE 12 The values of the encoders using the LabVIEW


YAHYA ET AL. | 11

ϕ = −15.93, α = 35.05, and θ = −37.48. Figure 12 shows the and acceleration of joint angles following desired values
results of the three angles in which, it is noted that the on targeted intermediate points. For example, consider
percentage error between the target angles (ϕ = −15.92, the robot shown in Figure 1. It is desired to design a
α = 34.95, and θ = −37.37) and the real angles of the polynomial trajectory to each joint in which there are two
manipulator (ϕ = −15.93, α = 35.05, and θ = −37.4) is (0.06, via points. The total time for the end effecter to go from
0.28, and 0.08) which is too small compared with the target initial point to target point is 15 s. And then the time
angles, hence shows the effectiveness of the proposed model needed for the end‐effector to go from the initial point to
to be used to control AC servo motors. the first via point is 5 s, and from the first via point to
second via point is 5 s as well. For the first joint,
θ1 (0) = 0, θ1̇ (0) = 0, θ1 (5) = 6.25, θ1̇ (5) = 12.5,
5.2 | Tutorial 2 θ1 (10) = 25, θ1 (10) = 5, θ1 (15) = 56.25, θ1̇ (15) = 7.5,
̇
This tutorial will teach students to derive the equations of and the first joint rotates with a constant angular
trajectory planning to control angular position, velocity, acceleration equal to 50. While the second joint rotates

FIGURE 13 The values of the estimated and measured angular position, velocity, and acceleration of the first motor. (white: estimated,
red: measured)
12 | YAHYA ET AL.

FIGURE 14 The values of the estimated and measured angular position, velocity, and acceleration of the second motor. (white:
estimated, red: measured)

in a constant angular velocity equal to 2, and then θ1 (t ) = 0.25t 2, (33)


θ2 (0) = −1, θ2 (5) = 9, θ2 (10) = 19, θ2 (15) = 29. For the
third joint, θ3 (0) = −2, θ3̇ (0) = 2, θ3 (5) = 13, θ3̇ (5) = 4 , θ2 (t ) = 2t − 1, (34)
θ3 (10) = 38, θ3̇ (10) = 6, θ3 (15) = 73, θ3̇ (15) = 8, and this
joint rotates with a constant angular acceleration as well θ3 (t ) = 0.2t 2 + 2t − 2, (35)
which is equal to 0.4, here all the positions are in degree,
velocities are in degrees/s, and accelerations are in Using the model shown in Figure 11, the joint can be
degree/s2. controlled following the desired trajectory. Figure 13
Sol. shows the estimated (white) and measured (red) angle,
Using (5–32), we found that the trajectory for the angular velocity, and angular acceleration of the first
joints can be defined as motor defined above, Figure 14 shows the estimated
YAHYA ET AL. | 13

FIGURE 15 The values of the estimated and measured angular position, velocity, and acceleration of the third motor. (white:
estimated, red: measured)

(white) and measured (red) angle, angular velocity, and required to control the angular position, velocity, and
angular acceleration of the second motor while Figure 15 acceleration of AC servo motors. It should be noted that
shows the estimated (white) and measured (red) angle, available literature is focused mainly on DC servo motors
angular velocity and angular acceleration of the third since they are easier to control than AC servo motors.
motor of the manipulator. Our experience summarized in this paper provides new
contributions for the students and instructors who are
interested in using AC servo motors for the robotics
6 | C ON C LU S I O N joints. Two modules are presented in this paper, the first
is to drive the servo motor to a specific angular position
The objective of this paper is to describe a LabVIEW‐ with a constant angular velocity. The second drives the
based modules developed along with the instrumentation servo motor in any desired angular position, velocity, and
14 | YAHYA ET AL.

acceleration. In other words, in the second module, the Electrical Machines and Systems (ICEMS 2001). 2001. vol. 2,
angular position, velocity, and acceleration are function pp. 691–694.
of time. Another major contribution of this work is the 14. J. Liu and W. Guo, "A teaching model of spatial design by
computer‐aided design," 2009 IEEE 10th International Con-
simplicity of constructing the models guaranteed by the
ference on Computer‐Aided Industrial Design & Conceptual
graphical nature of LabVIEW. The results obtained from
Design, Wenzhou, 2009, pp. 831–835.
LabVIEW models show the effectiveness of the presented 15. G. T. McKee, "The robotics body of knowledge [Education],"
model in the control of the servo motors. IEEE Robotics & Automation Magazine, vol. 14, no. 1, pp.
18–19, 2007.
16. K. Nagai, "Learning while doing: Practical robotics education,"
ORCID IEEE Robotics & Automation Magazine, vol. 8, no. 2, pp. 39–43,
Samer Yahya http://orcid.org/0000-0003-0723-8751 June 2001.
17. H. Ping et al., "An educational tool design for the course of signal
Hussain Al‐Rizzo http://orcid.org/0000-0002-7280-5313
processing based on Matlab GUI," 2014 IEEE International
Conference on Teaching, Assessment and Learning for
REFERENCES Engineering (TALE), Wellington, 2014, pp. 131–134.
18. B. Schulz et al., "On the computer aided introduction of design
1. P. N. Baldini et al., "Early introduction of robust control patterns into object‐oriented systems," Proceedings Technology
concepts: hands‐on experience and CAD," IEEE Revista Iber- of Object‐Oriented Languages. TOOLS 27 (Cat. No.98EX224),
oamericana de Tecnologias del Aprendizaje, vol. 11, no. 2, pp. Beijing, China, 1998, pp. 258–267.
56–62, 2016. 19. L‐W. Tsai, Robot analysis: The mechanics of serial and parallel
2. V. Chaudhary et al., "An experience report on teaching manipulators, John Wiley & Sons, Inc, New York, NY, 1999.
programming and computational thinking to elementary level 20. Y. Ugurlu and T. Nagano, "Project‐based learning using
children using lego robotics education kit," 2016 IEEE Eighth LabVIEW and embedded hardware," 2011 IEEE/SICE Interna-
International Conference on Technology for Education (T4E), tional Symposium on System Integration (SII), Kyoto, 2011, pp.
Mumbai, 2016, pp. 38–41. 561–566.
3. D. Danković et al., "An electromechanical approach to a printed 21. S. Yahya, M. Moghavvemi, and H. A. F. Mohamed, Joint
circuit board design course," IEEE Transactions on Education, torques reduction of a three dimensional redundant planar
vol. 56, no. 4, pp. 470–477, Nov. 2013. manipulator, Sensors. 12 (2012), no. 6, 6869–6892.
4. H. Diken, Servo motor control of a coupled elastic shaft–elastic 22. S. Yue et al., Point‐to‐point trajectory planning of flexible
beam system, Mech. Mach. Theory. 42 (2007), 1376–1387. redundant robot manipulators using genetic algorithms, Robot-
5. L. Foulloy, R. Boukezzoula, and S. Galichet, "An educational ica. 20 (2002), no. 3, 269–280.
tool for fuzzy control," IEEE Transactions on Fuzzy Systems, 23. W. Zhan, J. R. Porter, and J. A. Morgan, Experiential learning of
vol. 14, no. 2, pp. 217–221, 2006. digital communication using LabVIEW, IEEE Trans. Educ. 57
6. A. Gasparetto, and V. Zanotto, A new method for smooth (2014), no. 1, 34–41.
trajectory planning of robot manipulators, Mech. Mach. Theory. 24. M. Zhihong, Robotics, second edition., Prentice Hall, 2005.
42 (2007), no. 4, 455–471.
7. C. Gencer, Mehmet “A computer‐aided educational tool for induction
motors”, Mech. Mach. Theory. 20 (2007), no. 3, 503–509.
8. Y. A. C. González and A. G. Muñoz‐Repiso, "Educational AUTHOR BIOGRAPHIES
robotics for the formation of programming skills and computa-
tional thinking in childish," 2017 International Symposium on
Computers in Education (SIIE), Lisbon, 2017, pp. 1–5. Samer Yahya received BSc degree in Mechatronics
9. J‐H. Horng, Hybrid MATLAB and LabVIEW with neural engineering from University of Baghdad, Iraq in 2003,
network to implement a SCADA system of AC servo motor,
and PhD in Electrical Engineering from the Uni-
Adv. Eng. Software. 39 (2008), 149–155.
10. B. Johnson and R. Ulseth, "Professional competency attainment in a
versity of Malaya, Malaysia in 2012. In 2012, he joined
project based learning curriculum: A comparison of project based Swinburne University of Technology as a lecturer in
learning to traditional engineering education," 2014 IEEE Frontiers Robotic and Mechatronics department. In 2013, he
in Education Conference (FIE) Proceedings, Madrid, 2014, pp. 1–4. started working at the University of Nottingham
11. S. Jung, "Experiences in developing an experimental robotics Malaysia Campus as an assistant professor in the
course program for undergraduate education," in IEEE Transac- department of Mechanical, Materials and Manufac-
tions on Education, vol. 56, no. 1, pp. 129–136, 2013. turing Engineering. In 2017, Samer joind the Uni-
12. D. Kim, J‐W. Lee, and S. Kim. Control of permanent magnet AC
versity of Arkansas at Little Rock as a visiting scholar
servo motors via fuzzy reasoning. Conference Record of the
IEEE, Industry Applications Society Annual Meeting. 1992. vol.
in the Systems Engineering Department. His research
1, pp. 482–489. interests include redundant manipulator, lightweight
13. P‐H. Kim et al., Speed control of AC servo motor using neural robotic arms, artificial intelligence, flexible antenna,
networks. Proceedings of the Fifth International Conference on decoupled antenna array, and MIMO.
YAHYA ET AL. | 15

Mahmoud Moghavvemi received the BSc degree in Communication Systems (1983) (High Honors) from
electronics from the State University of New York at the University of Mosul, Mosul, Iraq. From May 1983
Buffalo, Buffalo, NY, USA, the MSc degree in to October 1987 he was working with the Electro-
electrical engineering from the University of Bridge- magnetic Wave Propagation Department, Space and
port, Bridgeport, CT, USA, and PhD degree in Astronomy Research Center, Scientific Research
electrical engineering from the Department of Elec- Council, Baghdad, Iraq. On December, 1987, he
trical Engineering, University of Malaya, Kuala joined the Radiating Systems Research Laboratory,
Lumpur, Malaysia. He worked as Test and Design Electrical and Computer Engineering Department,
Engineer at CTI Electronics, Fairfield CT, and as the University of New Brunswick, Fredericton, NB,
Director of Informatics School of Engineering, Kuala Canada where he obtained his PhD (1992) in
Lumpur Malaysia. He joined the Department of Computational Electromagnetics, Wireless Commu-
Electrical Engineering, University of Malaya, as a nications, and the Global Positioning System. For his
Lecturer, where later was promoted to the post of an various academic achievements he received the best
Associated Professor in 1996 and to a Full Professor in doctoral graduate award in science and engineering
2002. He is a reviewer for several distinguished by the University of New Brunswick. Since 2000, he
journals in his field of expertise. He is the Founder joined the Systems Engineering Department, Univer-
and currently the Director of the Center for Research sity Arkansas at Little Rock where he is currently a
in Applied Electronics, University of Malaya. His Professor of Telecommunication Systems Engineering
contributions can be seen in more than 30 patents, He has published over 200 peer‐reviewed journal
and more than 300 refereed journals and conference papers and presentations, book chapters, and two
articles. patents. His research areas include implantable
antennas and wireless systems, smart antennas, 4G
Haider A. F. Almurib (S’00–M’05–SM’11) received
LTE‐A, WLAN/MIMO deployment and load balan-
his PhD in electrical engineering from the University
cing, electromagnetic wave scattering by complex
of Malaya, Kuala Lumpur, Malaysia, in 2006. He is
objects, design, modeling and testing of high‐power
currently working as a Professor in the Department of
microwave applicators, precipitation effects on terres-
Electrical and Electronic Engineering, The University
trial and satellite frequency re‐use communication
of Nottingham Malaysia Campus, Malaysia, where he
systems, field operation of NAVSTAR GPS receivers,
served as head of the department from 2014 for 4
data processing, and accuracy assessment, effects of
years. He is also Fellow of HEA, UK, since 2012.
the ionosphere, troposphere and multipath on code
Before this he was a Senior Lecturer in the University
and carrier‐beat phase GPS observations and the
of Malaya. He also worked in industry for four years
development of novel hybrid Cartesian/cylindrical
as an R&D engineer in the field of computer
FDTD models for passive microwave components.
automation. His research interests include nonlinear
and intelligent control, electric machines and drives,
embedded systems, and fault tolerance of digital
systems. He served as an associate editor for IET
Power Electronics. Among his research achievements How to cite this article: Yahya S, Moghavvemi
is more than 150 publications, 14 PhD graduates and 6 M, Almurib HA, Al‐Rizzo H. A LabVIEW module
patents. to promote undergraduate research in control of
AC servo motors of robotics manipulator. Comput.
Hussain Al‐Rizzo received his BSc in Electronics
Appl. Eng. Educ. 2019;1–15.
and Communications (1979) (High Honors), Post-
https://doi.org/10.1002/cae.22180
graduate Diploma in Electronics and Communica-
tions (1981) (High Honors) and MSc in Microwave

View publication stats

You might also like