Professional Documents
Culture Documents
A Bottom Up Approach To Teaching Mechatronics (2006)
A Bottom Up Approach To Teaching Mechatronics (2006)
Fig. 1. The Tracks in Mechatronics Fig. 2. One Axis Device and PID Controller
and electrical components. The theoretical introduction robot. The lab ends with a project that demonstrates the use
of electromechanical systems is followed by a practical of feedback control of a toy car to accomplish a variety of
demonstration of mechatronics in two laboratory courses: tasks.
378
Z. Shiller, S. Berman * A Bottom Up Approach to Teaching Mechatronics
l~~~~~~~~~~~~of
I two single axis systems (from the previous experiment)
joined together. Bot are controlled byte analog PID
controller developed earlier. Each axis is commanded by
an analog signal generated by the computer via an analog
.....1.......111111 .11 1 I/O interface. The positions of both axes are fed back to
the computer for graphic display in the joint space and
the workspace of the five-bar mechanism, as shown in
Figure 5. The graphic interface has two motion options:
point to point, and trajectory. The first moves the system
_..... _to a given point, specified in joint space or workspace.
Here students test the forward and inverse kinematics code
they wrote, investigate the mapping between joint space
and workspace, and examine the multiple solutions of the
Fig. 4. Two Axes Mechanism two DOF mechanism.
The trajectory mode moves the mechanism to points
st_p Ue[o] defined in a data file. The students generate the data using
Workspace oint any software of their choice (e.g. Excel). The resulting
E2
160; oin- trajectory is plotted on the screen, using the forward kine-
=
matics code written earlier, and plotted on a paper by a pen
140
140- 6
/°°-
=== = -50-O attached to the tip of the five-bar mechanism. Comparing
40~
000-1 ========:Ithe
ThOb'
0
two verifies the correctness of the kinematics code.
1Students
6>itaDl
12D also observe the quality of the resulting curve as
20-l a function of the gains of the individual axes, the speed
-6 4-0020400x i ia0 as
along the path, and the location in the workspace.
Fig. 5. Two Axes Graphic Interface C. Industrial Robot
379
ICM 2006 * IEEE 3rd International Conference on Mechatronics
previous ....
courses....
Following the. . . "analog" Robotics labora- .............
tory, the emphasis here is digital control and related periph-
erals, such as A/D and D/A conversion, sensors, actuators,
and the use of microprocessors for digital control.
True to the bottom-up approach of the program, the
students build the interfacing circuits on a breadboard. This
allows them to understand the problems associated with
system interfacing and the different roles of the system r_
components. The complexity of the built circuits is kept low
to balance the time spent wiring the circuits and the time
spent experimenting with them. Additionally, care is taken
to use circuits studied or developed in previous courses so
emphasis can be given to system integration rather then to
rewiring the circuits.
The laboratory is built around the PIGC18F243 1 Mi-
crochip microcontroller [5]. It was chosen for its built-
in encoder counter and a PWM interface, which makes it
suitable for motor control. The bottom up approach played
a major role in choosing this microcontroller over an expen-
sive integrated system such as the Rabbit microprocessor
[6]. The students build the control system from its basic
components so that they learn to construct the environment Fig. 6. Digital Control Circuit
that suits their specific needs.
The syllabus includes the following experiments:
D. Digital control
A. AID and DIA conversion In this experiment the students integrate the components
This experiment focuses on a sample and hold circuit, studied in the previous experiments and build a digital
connected to an anti aliasing filter. It is fairly simple to multi-axes controller. The experiment consists of two parts:
implement, yet it gives the students a feel of the data a) developing a single axis controller, and b) integrating
sampling process. The students build the system with a two single-axis controllers into a multi-axes system.
tunable sample period and experiment with various sam- The first part focuses on a digital PID controller for the
pling frequencies below and above the Nyquist frequency one-axis device described earlier. This includes the interfac-
of the input signals. They experience the effects of the filtering of the microcontroller with the hardware and computer,
by observing *sig*aat various frequencies. programing of the microcontroller, and modeling of the
entire system. A typical circuit developed by the students
is shown in Figure 6. The only difference between this
B. Sensors ......................
system and the one used earlier in the robotics laboratory
Here, the students experience working at various inte- is the optical encoder that replaces the potentiometer for
gration levels with a number of sensors, commonly used measuring the position of the output shaft. The students first
in robotic applications: light sensors, range sensors, and model the system, derive the digital closed loop transfer
machine vision. They build several light sensors based function, and use MATLABTMcontrol toolbox to generate
on a photo resistor, photo-diode, and photo-transistor, and the system step response. They then compare the simulated
examine the differences between the sensors with respect response to the response of the actual system using several
to signal amplification and response time. The students values of the PID gains.
also calibrate sonar-based range sensors and examine their The second part focuses on the two axes apparatus
beam width. In addition, they program machine vision shown in Figure 4. Here, students build a control system
algorithms using dedicated software (Vision Assistant by for point to point and trajectory following motions. For
National Instruments [7]). this part, the students receive a printed circuit with two
digital PID controllers, one for each axis, similar to the
C. Actuators * ...................... ............controller they ishad
~~~microcontroller developed
designated in main
as the the first part.controller,
system A third
Here, the students build a motor driver for a stepper ............programmedto coordinate the two single axis controllers
motor, chosen for its seamless integrated into digital control ............and
interface the system with a master computer. The
systems. The students build an indexer and an H-bridge ............master computer sends workspace position commands to
interface and test its operation in full and half steps under ............the
main controller. The latter then computes the joint
several load conditions. The motor position is monitored ............angles,
using the inverse kinematics routines developed
using a shaft encoder. ............earlier in the robotics laboratory, and sends them to the
380
Z. Shiller, S. Berman * A Bottom Up Approach to Teaching Mechatronics
381