You are on page 1of 8

Proceedings of the ASME 2015 International Mechanical Engineering Congress and Exposition

IMECE2015
November 13-19, 2015, Houston, Texas

IMECE2015-52784

DESIGN OF ROBUST MECHATRONICS EMBEDDED SYSTEMS BY INTEGRATION


OF VIRTUAL SIMULATION AND MECHATRONICS PLATFORM

Devdas Shetty Naresh Poudel


School of Engineering and Applied Sciences School of Engineering and Applied Sciences
University of the District of Columbia University of the District of Columbia
Washington DC, 20008, USA Washington DC, 20008, USA
devdas.shetty@udc.edu naresh.poudel@udc.edu

Esther Ososanya
School of Engineering and Applied Sciences
University of the District of Columbia
Washington DC, 20008, USA
eososanya@udc.edu

ABSTRACT dynamic interactions between the machine components. Many


Increasing demands on the productivity of complex real-world systems can be modeled by the mass-spring-damper
systems, such as machine tools and their steadily growing system and hence considering one such system, namely
technological importance will require the application of new Mechatronics Technology Demonstrator (MTD) is discussed
methods in the product development process. This paper shows here. MTD is a portable low cost, technology demonstrator,
that the analysis of the simulation results from the simulation developed and refined by the authors. It is suitable for studying
based mechatronic model of a complex system followed by a the key elements of mechatronic systems including; mechanical
procedure that allows a better understanding of the dynamic system dynamics, sensors, actuators, computer interfacing, and
behavior and interactions of the components. Mechatronics is a application development. An important characteristic of
design philosophy, which is an integrating approach to mechatronic devices and systems is their built-in intelligence
engineering design. Through a mechanism of simulating that results through a combination of precision, mechanical and
interdisciplinary ideas and techniques, mechatronics provides electrical engineering, and real time programming integrated to
ideal conditions to raise the synergy, thereby providing a the design process. The synergy can be generated by the right
catalytic effect for the new solutions to technically complex combination of parameters, that is, the final product can be
situations. This paper shows how the mechatronic products can better than just the sum of its parts. The paper highlights
exhibit performance characteristics that were previously design optimization of several mechatronic products using the
difficult to achieve without the synergistic combination. procedures derived by the use of mass spring damper based
mechatronic system. The paper shows step by step development
The paper further examines an approach used in modeling, of a mechatronic product and the use of embedded software for
simulation and optimization of dynamic machine tools and portability of hand held equipment.
adopts it for general optimized design of mechatronics
instrumentation and portable products. By considering the A LabVIEW based platform was used as a control tool to
machine tool as a complete mechatronic system, which can be control the MTD, perform data acquisition, post-processing,
broken down into subsystems, forms the fundamental basis for and optimization. In addition to the use of LabVIEW software,
the procedure. Starting from this point of view it is necessary to the use of embedded control system has been proposed for real-
establish appropriate simulation models, which are capable of time control and optimization of the mass-spring-damper
representing the relevant properties of the subsystems and the system. Integrating embedded control system with the mass-

1 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


spring-damper system makes the MTD a multi-concepts system, the rightmost dotted block, consists of mechanical,
Mechatronics platform. This allows interface with external electrical, and computer (electronic) systems as well as
sensors and actuators with closed-loop control and real-time actuators, sensors, and real time interfacing. Sensors and
monitoring of the physical system. This teaches students the actuators are used to transduce energy from high power, usually
skill set required for embedded control: design control the mechanical side, to low power, the electrical and computer
algorithms (model-based embedded control software or electronic side. The block labeled mechanical systems
development, signal processing, communications), Computer frequently consists of more than just mechanical components
Software (real-time computation, multitasking, interrupts), and may include fluid, pneumatic, thermal, acoustic, chemical,
Computer hardware (interfacing, peripherals, memory and other disciplines as well.
constraints), and System Performance Optimization. This
approach of deriving a mathematical model of system to be New developments in sensing technologies have emerged in
controlled, developing simulation model of the system, and response to the ever-increasing demand for solutions of specific
using embedded control for rapid prototyping and optimization, monitoring applications. They have produced faster, more
will practically speed product development and improve sensitive and precise measuring devices. Sensors are being
productivity of complex systems. miniaturized and implemented in solid-state form so that several
sensors can be integrated and their functions combined.
INTRODUCTION Irrespective of the application; industrial control,
Mechatronics is a methodology used to achieve an manufacturing, testing, or military, new developments in
optimal design of an electromechanical product. As a design sensing technology are constantly emerging.
philosophy, mechatronics serves as an integrating approach to
engineering design. A mechatronically-designed product relies
heavily on system and component modeling and simulation to
establish the optimal design tradeoffs between electronic and
mechanical disciplines when subject to specific cost and
performance constraints. The ideas and techniques developed
during the interdisciplinary simulation process provide the ideal
conditions to raise synergy and provide a catalytic effect for
discovering new and simpler solutions to traditionally complex
problems. Figure 2: Lockheed F22 fighter

An important characteristic of a mechatronic system is its built- The F-22 fighter, pictured in Figure 2, jointly developed by
in or embedded intelligence. This intelligence, a result of the Lockheed and Boeing, is an example of mechatronic technology
interdisciplinary simulation process, is implemented through in action. The design metrics emphasize reliability,
embedded software that orchestrates a combination of precision maintainability, and performance. Multi-disciplinary
mechanical and electrical components. There is a synergy in functionality such as the integrated flight-propulsion control
the integration of mechanical, electrical, and computer systems system and thrust-vectored engine nozzles, make point-and-
with information systems for the design and manufacture of shoot maneuvers that defy conventional aerodynamic control
products and processes. The synergy can be generated by the possible.
right combination of parameters, that is, the final product can be
better than just the sum of its parts. Mechatronic products Starting with the basic system design phase and progressing
exhibit performance characteristics that were previously through the manufacturing phase, the mechatronic process
difficult to achieve without this synergistic combination. optimizes the system parameters at each phase to produce a
high quality multi-disciplinary integrated product in a short
Electromechanical Real Time Interfacing
cycle time. Mechatronics employs control systems to provide a
Simulation and
Modeling Mechanical
coherent framework for component interactions and their
Electrical Computer
Mechatronics Automatic
Systems
Actuators
Systems
D/A Systems analysis. Integration within a mechatronic system is performed
Control
Sensors A/D
through the combination of hardware components and software,
Optimization

Information Systems
including information processing. Hardware integration results
from designing the mechatronic system as an overall system,
Figure 1: Key Mechatronic Elements which includes the sensors, actuators and embedded computer
as well. Software integration is based on control functions and
The key elements of the mechatronics approach are presented in algorithms to be performed.
Figure 1 (Shetty and Kolk, 1998). Mechatronics is the result of
applying information systems to physical systems. The physical

2 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


Process
Design Principles
Hardware;
Software; Knowledge The primary mass element in the system is the voice-
Information Processing
coil magnet. The magnet is suspended by four wires and “L”
brackets. They allow the mass to vibrate vertically with a very
Computers Actuators Process Sensors small coefficient of friction.

Figure 3: General Scheme of Hardware and Software


Integration

Figure 3 illustrates how the hardware and software integration


takes place. It also illustrates how additional process
knowledge, as it becomes available, is utilized to improve the
system design.

The benefits of the mechatronic design approach are greater Fig 4: Vertical MTD Configuration
productivity (shorter development cycles and faster time to
market), higher quality, and lower cost products. They also
provide additional influence through the acquisition of
knowledge information from the process. A mechatronic
product can achieve impressive results if it is effectively
integrated with the concurrent engineering management
strategy.

MECHATRONICS PLATFORM AS A TESTBED FOR Figure 5: Horizontal MDT Configuration


DESIGN VALIDATION OF PRODUCTS AND
MACHINING CENTERS Regardless of the configuration, position of the mass in the
MTD is measured using a position sensing detector (PSD)
MECHATRONICS PLATFORM: device. The PSD outputs a voltage proportional to the intensity
The Mechatronics Technology Demonstrator (MTD) is of the light cast upon it. The light source, a laser similar to the
a low cost technology demonstrator, developed and refined by type used for overhead presentations, is fastened to the base of
the authors. It is a mass – spring – damper system with an the MTD and aimed at a mirror attached to the mass. The laser
electromagnetic force actuator and a non-contact position is adjusted until the reflected beam just hits the center of the
sensor. It is built from low cost components available at most PSD when the mass is motionless and in its normal position. As
electronic, hardware, and home supply stores. It is suitable for the mass moves around its normal position the reflection angle
studying the key elements of mechatronic systems including; changes which, in turn, changes the area (intensity) of the light
mechanical system dynamics, sensors, actuators, computer hitting the PSD and hence its voltage. Aside from the initial
interfacing, and application development. “tuning” of the laser beam angle, the motion sensing method is
extremely accurate, non-contact, and extremely easy to
The MTD can be constructed in two configurations, vertical implement.
(Figure 4) and horizontal (Figure 5). The vertical
configuration offers greater motion control over shorter To provide force inputs to the mass for motion and/or active
distances while the horizontal configuration provides just the damping a voice-coil/magnetic actuator is used. Basically a
opposite. The MTD is shown in Figure 4, and it consists of the small loudspeaker is used with the paper cone coated with
following four major components; (i) mechanical mass-spring- fiberglass resin to provide a firm mounting area. The magnet is
damper assembly, (ii) displacement sensor, (iii) voice coil separated from the voice coil and attached directly to the mass.
actuator, (iv) voice coil power amplifier. In this case study, a The voice coil is attached to the base of the MTD. Application
dynamic model of a mass-spring-damper system will be of current to the coil results in either vertical or horizontal
developed, the behavior of the model with experimentally motion of the magnet depending on the orientation of the
obtained. mounting. Alignment of the magnet inside the voice coil is
somewhat critical to reduce binding. The vertical configuration
offers additional benefit in this area. Figure 6 presents the
vertical configuration of the actuator.

3 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


Figure 8 Physical Modeling
Figure 6: Voice coil/magnetic actuator – Vertical
Configuration Mass-Spring-Damper Mechanical Illustration for Physics Based
Model
Both the sensor and the voice coil actuator are connected to the From Newton’s Law of motion, we get
PC based visual modeling and real time simulation application
using a general purpose I/O card. The voltage output by the
PSD is ample for direct connection without the need for
amplification. The current used to drive the voice coil, Hence, the resulting transfer function of the model is,
however, does need amplification. The amplifier circuit used to
power the actuator is shown in Figure 7.
P o w e r S u p p ly ; + 6 v

C o il
Where, x = displacement of the mass.
S ig n a l fro m
C
f = force exerted on the mass.
d a ta I/ O B
b o a rd
3 .9 K R e s is to r D io d e E P o w e r T ra n s is to r 2 N 3 0 5 5
M = mass of the cart.
K = the equivalent spring constant.
B = the equivalent damping constant.

Experiment Options: The MTD can be used for several study


Figure 7: Actuator amplifier circuit options in mechatronics including modeling, simulation,
monitoring, and closed loop control. A brief description of two
The hardware components required for this case study are of the options follows.
presented in the following table:
Modeling and Simulation:
Table 1: Components of MTD Option 1
1 Position Sensitive Detector 1A: The physical model of the mass spring system is
(PSD) constructed using the block diagram. The model will provide
2 Laser Pointer prediction from a force input to the mass displacement (and
3 Power Transistor velocity). To verify the performance of the model, the
4 Power Supply experiment is conducted in parallel with actual data obtained
5 Braces and anchors along with a plot of comparison displacement outputs. Model
6 Laser Bracket parameters are adjusted until good performance correlation
7 Aluminum Sensor housing exists. An example of a block diagram model is shown in
Figure 8.
The physics based model for the mass-spring-damper system is
based on the mechanical illustration shown in Figure 8:

4 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


PROGRAMMING
 Using the Analog Input task defined in Measurement
and Automation, get two signals; Channel 1 and
Channel 2. The “Split Signals” function can be used to
extract the two signals from the single wire bundle.
 The actual movement of the mass is determined using
the following formula;

Displacement = (Channel 1 – Channel 2) x


Conversion Factor

 Establish the Analog Output using the task defined in


Figure 9: Physical system block diagram for MTD Measurement and Automation explorer and a DAQmx
Write function.
1B: A Least Square model of the mass spring system is  The actual run plot must contain the following values;
developed using a step force input to the mass and recording the vertical movement of the mass, zero voltage level of
resulting displacement. The parameters in the second order the mass and ten-voltage level of the mass (3/8 inches).
model are computed using the least square method with gradient
adjustment. To verify the performance of the model, it is run in Front Panel
parallel with additional data records.

Option 2 - Control:
Closed loop control is used to provide additional electronic
damping to the MTD in order to smooth the time response.
Two control options are considered; rate feedback control
design and validation and on/off control design and evaluation.

2A: Design a model based control algorithm of the “rate


feedback” type to electronically increase the damping applied to
the mass. This will require installation and calibration of the
magnetic actuator and design of the rate feedback control
algorithm.
Block Diagram

Build Array

Figure 10: Mass displacement response with rate feedback


control
Build Array
2B: Design an on/off control which increases the damping
applied to the mass. This will require installation and
calibration of the magnetic actuator and design of the rate
feedback control algorithm. The algorithm will sense peak
points of mass acceleration, negate them and send the Figure 11: LabView front panel and Block Diagram for
information back to the actuator. MTD

5 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


CALIBRATION AND TESTING
Step1: Assembly: Verify that the mass oscillates freely when
displaced. Observe the oscillations for normal displacement
inputs. If there are problems, check the voice coil actuator and
magnet alignment

Step 2: Sensor Input and calibration: Check the alignment of


laser and PSD. With the mass at rest, the laser beam must hit the
center of PSD. Calibrate the input. At the center of psd the
resulting output voltage from the psd should be zero.
1. With the mass at rest, set the conversion factor
slider to a value of one. The resulting voltage from
the psd should be approximately zero.

2. Then actuate the coil to raise the mass to 3/8 inch.


Now adjust the conversion factor slider until the
resulting voltage from psd reads approximately
3/8 inch (0.375 in) Figure 14: Physics Based Model, Front Panel

EMBEDDED TOOLS FOR MECHATRONICS


PRODUCTS

MBED LCP1768
The LCP1768 is an ARM Cortex-M3 based
microcontroller for embedded applications requiring a high
level of integration and low power dissipation. The ARM
Cortex-M3 is a next generation core that offers system
enhancements such as modernized debug features and a higher
level of support block integration. The ARM Cortex-M3 CPU
(a) (b) incorporates a 3-stage pipeline and uses Harvard architecture
Figure 12: (a) Angle of reflection adjustment and (b) with separate local instruction and data buses as well as a third
Reflected laser beam at center of psd bus for peripherals. The ARM Cortex-M3 CPU also includes an
3. The system is now calibrated and test runs can be internal pre-fetch unit that supports speculative branches.
performed
The peripheral complement of the LPC1768 includes up to 512
Step 3: Run the actual test setup. Activate the coil to raise the KB of flash memory, up to 64 KB of data memory, Ethernet
mass. Set the Output Voltage slider to 10V. Leave the mass MAC, a USB interface that can be configured as either host,
raised for about 10 seconds. Then release the mass by setting device, or OTG, 8 channel general purpose DMA controller, 4
the Output Voltage slider to zero. Repeat Step 3 with the 10- UARTs, 2 CAN channels, 2 SSP controllers, SPI interface, 3
second timer for raising the mass for 10 seconds. I2C interfaces, 2-input plus 2-output I2S interface, 8 channel
12-bit ADC, 10-bit DAC, motor control PWM, Quadrature
Encoder interface, 4 general purpose timers, 6-output general
purpose PWM, ultra-low power RTC with separate battery
supply, and up to 70 general purpose I/O pins.

Figure 13: Physics Based Model Test and Simulation Figure 15: LPC 1768 Cortex M3 Board

6 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


INTERFACE WITH LABVIEW absorber, which is fed into the suspension. The system has not
employed physical actuator because the magnetic coil
arrangement under excitation provides an actuator and/or shock
absorber behavior. The displacement of the Mass is measured
using Laser and PSD sensor.

The MBED is a valuable device, which can be used to


implement some simple control algorithms. Closed loop control
systems employ internal error analysis to achieve accurate
control of actuators, given continuous sensor input readings.
The system measures the displacement of the Mass, compares it
with the set point of zero at rest, and uses the error to move the
actuator to place the Mass in the rest position. The PSD
measures the effect of the action by tracking the displacement.
The MBED computes the difference between the zero set point
and actual position. No action is required when the desired set
point is achieved.

Compared to the LabView control, LabView uses calibrated


actuator settings or look-up table to achieve its desired action. It
could not measure time to response or mass velocity, or auto
detects misalignment of the laser, and so the control cannot be
Figure 16: Functional Diagram of LCP1768 accurately predicted. With the use of embedded system, the
system can detect inertial sensor reading or friction loading on
VisSim and LabView are all simulation tools that have the mass, and signal corrective action. If laser is not at the set
been developed over the years to support mechatronic products point, additional sensors can be added to improve on the
design. LabView is also used for rapid prototyping and for measurement of the controlled variable and ensures that
control of mechanical system that does not required real-time accuracy is achieved. The closed loop control therefore has
operations. Incorporating embedded system allows real-time advantages of improved accuracy of control variables and the
and dynamic control of the mechanical system. The use of ability to automatically make continuous adjustment. In cases
embedded systems allows optimization of performance, and the where the actuator is non-linear in terms of performance or
design of safe and reliable products. In particular, since in a instability, closed loop control built around fast microcontroller
mechatronic system, the mechanical, electrical, and/or thermal is a necessity.
components of a product are connected through sensors and
actuators, using embedded controllers define the overall system SIMULATION AND VALIDATION OF MACHINE
functionality and provide status of the control system and sensor DYNAMICS
signals. VisSim and LabView use 1D model, in which icons to The mechatronics technology is studied and applied to
which mathematical equations are connected represent the investigation of machining centers for wide variety of
components, systems or subsystems. 0D models are also used machining applications. The traditional design procedures
which describe systems with simple relations or tabular and attempt to refine machining center performances through
graphical representations. iterative trials on prototypes, designing and modifying machine
tool architecture, auxiliary subsystems and components of the
Next, the MBED microcontroller is interfaced directly to the feed drives with their static and dynamic performances. For
MSD for dynamics control of the system. The MBED reads the example, the whole system of Computer Machining Center
Position Sensor Displacement (PSD) of the Mass using the actuators, mechanical components, cutting process can be
MBED analog inputs and the AnalogIN MBED object. Using modeled, simulated and validated through a series of simulation
the AnalogOut MBED object, the MBED analog output is runs. You can create a fully digitized model of the machining
connected in a feedback control loop to provide the excitation centers and integrate simulated numerical functions and control
force for the damper. In the LabView control, the set of the capabilities with the model of the kinematics of feed drives of
MSD constants and damper parameters is determined that can the mechanical structures.
meet the required performance. In the MBED control, feedback
loop dynamically control the MSD to provide required The integration of virtual model and real time mechatronics
performance, in response to excitation inputs. The excitation hardware makes it possible to study the interaction between the
input is the computed actuator force representing active shock dynamics of active and passive mechanical structures. A multi
body approach can be performed for a machining center. Each

7 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use


structural component of the machine is imported from a CAD [3] Gary Johnson, Richard Jennings, LabVIEW Graphical
environment with proper dynamic behavior. The joint stiffness Programming, McGraw Hill Professional, Jul 2006.
between the mechanical components is simulated with linear
guides and roller bearings using spring elements. Using mass, [4] Toulson, R. & Wilmshurst, T. (2012). Fast and Effective
spring and damping elements one can simulate recirculating ball Embedded Systems Design - Applying the ARM mbed,
screws, gearboxes. Newnes, Oxford, ISBN: 9780080977683.

The Mechatronic Technology Demonstrator platform [5] K. Jeevan Kumar and N. Akshay (2014), “Multichannel
implements a prototype of an active damper and active Data Acquisition And Control System Using Labview”,
suspension system. From the VisSim and LabView simulations International Journal of Embedded & VLSI System,
of the MSD system, the settings of the spring constant, the Volume 3, Issue 12 Dec 2014.
optimal damper parameters or coefficients, were optimized for a
fixed mass and fixed load. These parameters were adjusted until [6] Altinas, Y., Brecher, C., Weck, M and Witt, S., 2005
desired performance is achieved. Hardware-in-the-loop HIL “Virtual Machine Tool”, Annals of CIRP, 53 (2), pp 619-
simulation, a model of the environment the mechatronic product 642
being designed will be used needs to be synthesized for a more
reliable product design. The virtual prototype of a machine tool [7] Bedini, R., Tani, G., Fortunato, A, Gallorini, G and
will be a computer simulation model using several mass spring Montega, C., “From Traditional to Virtual Design of
damping units that can be interlinked, presented, tested like a Machine Tools: A Long Way to Go.. 2006, IMECE 2006-
real machine. 13526, IMECE, Chicago, November 5-10, 2006

CONCLUSION [8] M. Hamad, A. Kassem, R.A. Jabr, and C. Bechara,(2006),


The paper further examines an approach used in modeling, “A PIC-based microcontroller design laboratory”, Proc.
simulation and optimization of dynamic machine tools and IEEE Int. Workshop on Chip for Real-time Applications,
adopts it for general optimized design of mechatronics pp. 66-69.
instrumentation and portable products. Many real-world
systems can be modeled by the mass-spring-damper system and [9] “MBED rapid prototyping for microcontrollers”,
hence considering one such system, namely Mechatronics www.mbed.org
Technology Demonstrator platform is presented. The platform
is suitable for studying the key elements of mechatronic systems [10] “LabVIEWEmbedded Module for ARM
including; mechanical system dynamics, sensors, actuators, Microcontrollers”, www.ni.com/arm
computer interfacing, and application development. An
important characteristic of mechatronic devices and systems is
their built-in intelligence that results through a combination of
precision, mechanical and electrical engineering, and real time
programming integrated to the design process. By considering
the machine tool as a complete mechatronic system, which can
be broken down into subsystems, forms the fundamental basis
for the procedure. The paper highlights design optimization of a
mechatronic product using the procedures derived by the use of
mass spring damper based mechatronic system. In this way, the
designer can foresee the effects of his design ideas before
manufacturing a physical prototype with a good probability that
the optimization of virtual machining center will lead to real
good results.

REFERENCES

[1] Shetty, D and Kolk, R (2010) “Mechatronic System


Design”, 2nd edition Cengage Learning, Boston, USA.

[2] Schlemer, L and Alptekin, S (1998) “Team based product


Development in Mechatronics Design Class” ASME
Presentations, 1998-WA/DE-19.

8 Copyright © 2015 by ASME

Downloaded From: http://proceedings.asmedigitalcollection.asme.org/ on 08/21/2017 Terms of Use: http://www.asme.org/about-asme/terms-of-use

You might also like