Beruflich Dokumente
Kultur Dokumente
ME153P
LABORATORY MANUAL
EXERCISES:
MICROCONTROLLER
PNEUMATICS
HYDRAULICS
ELECTROMECHANICAL SYSTEM
PREPARED BY:
Preface 4
Laboratory Guidelines 5
Graphical User Interface 6
Exercise 1: Temperature Conversion 8
Exercise 2: Vibration of Spring-Mass System 9
Exercise 3: Parametric Equations of Motion 10
Exercise 4: Pump Performance Curve 11
Exercise 5: Nodal Temperatures 14
Microcontroller 16
Exercise 6: Blinking LED 17
Exercise 7: Button Indication 18
Exercise 8: Temperature Measurement 19
Exercise 9: Speed Control 20
Exercise 10: Servo Motor Control 21
Pneumatics 22
Exercise 11: Pushing Device 23
Exercise 12: Sorting Device 23
Exercise 13: Transferring Device 23
Exercise 14: Separating Device 24
Exercise 15: Folding Device 24
Exercise 16: Marking System 24
Exercise 17: Supplying Machine 25
Exercise 18: Welding System 25
Exercise 19: Switching Machine 25
Exercise 20: Mixing Machine 26
Exercise 21: Feed Divider 26
Exercise 22: Welding Mechanism 26
Exercise 23: Sieve Shaker 27
Exercise 24: Trash Compactor 27
2
Exercise 25: Clamping Machine 28
Exercise 26: Cutting Machine 28
Hydraulics 29
Exercise 27: Lathe Spindle 30
Exercise 28: Lifting Machine 31
Exercise 29: Pressing Machine 32
Exercise 30: Feed Lifter 33
Exercise 31: Cover Opener 33
Exercise 32: Storage Door Opener 33
Exercise 33: Embossing Machine 34
Exercise 34: Grinding Table 34
Exercise 35: Door Lifter 34
Exercise 36: Lifting Device 35
Exercise 37: Clamping Device 35
Exercise 38: Automatic Reciprocating Cylinder 35
Electromechanical System 36
Exercise 39: Sorting Mechanism 36
Exercise 40: Cutting Device 37
Exercise 41: Tipping Device 37
Exercise 42: Pushing Mechanism 37
Exercise 43: Diverting Device 38
Exercise 44: Stamping Device 38
References 39
3
PREFACE
This manual contains exercises which are related to the applications of control systems in
the field of mechanical and manufacturing engineering. The exercises will cover some basic
concepts in other subjects such as Thermodynamics, Heat Transfer, Numerical Methods,
Machine Shop Practices, Basic Electrical and Electronics Engineering.
In the first set of exercises, the students will create a Graphical User Interface (GUI) in
order to solve engineering problems and graph specific functions through the use of MATLAB
software. The next set of exercises will deal with the programming of Microcontroller and the
assembling of electric circuits containing LEDs, sensors and motors. Arduino software will be
used for the programming of Gizduino Microcontroller.
The third and fourth set of exercises will cover the design of pneumatic systems and
hydraulic systems, respectively. These set of exercises are very applicable to mechanical and
manufacturing processes. For the pneumatics and hydraulics, the students will create schematic
diagrams and simulate these designs using the FluidSIM software. The last set of exercises will
deal with electromechanical system which is the combination of mechanical and electrical
control systems such as relays and valves. Basic electromechanical system designs will also be
simulated using FluidSIM software.
All of the exercises presented are based from available manuals in Arduino and Festo
FluidSim software.
4
LABORATORY GUIDELINES
5
Graphical User Interface
A graphical user interface (GUI) is type of program interface that consists of icons or set of
graphics which are used in order to perform specific tasks.
Objectives:
1. To create GUIs in order to solve specific engineering problems using MATLAB
2. To be familiar with some basic GUI programming commands
3. To apply concepts in mathematics and engineering in creating GUIs
General Procedures:
1. Open MATLAB and type the word “guide” in the command window to open the GUIDE
window as shown below.
6
Figure 2. GUI Window
7
GUI : Exercise no. 1
Problem: Temperature Conversion
A data acquisition system for equipment maintenance involves the measurement of temperature
in degree Celsius. However, conversions to different temperature scales are needed in the data
analysis.
Where:
: Temperature in oF
: Temperature in oC
: Temperature in R
: Temperature in K
8
GUI : Exercise no. 2
Problem: Vibration of Spring-Mass System
Vibration in spring-mass system can be analyzed by plotting the equation that can describe its
displacement. If manual graphing will be applied, the process will be time-consuming.
9
For the programming, the following formula will be used:
Where:
y: displacement (m)
L: unstretched length (m)
s: initial position (m)
v: initial velocity (m/s)
k : spring constant (N/m)
m: mass (kg)
10
GUI : Exercise no. 4
Problem: Pump Performance Curve
A pump performance curve can be used to estimate the pump head, power, efficiency and Net
Positive Suction Head Required (NPSHR) for operation if the flowrate is known. Unfortunately,
consulting the curve (figure 7) for the values is time-consuming and inconvenient.
11
For this exercise, create a GUI similar to figure 8.
H = 36.8-(2*10^-4)*(Q-40000)-(8*10^-9)*(Q-40000)*(Q-42500)-(5.3333*10^-12)*(Q-
40000)*(Q-42500)*(Q-45000)+(8.5333*10^-16)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)-
(1.024*10^-19)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)+(1.2516*10^-23)*(Q-
40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)-(1.5279*10^-27)*(Q-
40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)+(1.6091*10^-
31)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)*(Q-
57500)-(1.3653*10^-35)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)*(Q-55000)*(Q-57500)*(Q-60000);
N = 79.52+(1.192*10^-3)*(Q-40000)-(5.726*10^-8)*(Q-40000)*(Q-42500)+(3.9467*10^-
12)*(Q-40000)*(Q-42500)*(Q-45000)-(6.9333*10^-16)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-
47500)+(7.68*10^-20)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)-(8.4764*10^-
24)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)+(1.0305*10^-27)*(Q-
40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)-(1.1789*10^-
12
31)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)*(Q-
57500)+(1.3037*10^-35)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)*(Q-55000)*(Q-57500)*(Q-60000);
P = 5190.476+(2.8572*10^-2)*(Q-40000)-(3.8096*10^-6)*(Q-40000)*(Q-42500)+(3.5557*10^-
10)*(Q-40000)*(Q-42500)*(Q-45000)-(9.1431*10^-14)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-
47500)+(1.8286*10^-17)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)-
(2.5736*10^-21)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)+(2.6316*10^-25)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)*(Q-55000)-(1.9118*10^-29)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-
50000)*(Q-52500)*(Q-55000)*(Q-57500)+(7.4991*10^-34)*(Q-40000)*(Q-42500)*(Q-
45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)*(Q-57500)*(Q-60000);
NPSHR = 13.33-(1.4*10^-4)*(Q-40000)-(8*10^-10)*(Q-40000)*(Q-42500)+(1.3867*10^-
12)*(Q-40000)*(Q-42500)*(Q-45000)-(2.6667*10^-16)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-
47500)+(4.1813*10^-20)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)-
(4.1529*10^-24)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)+(2.3731*10^-28)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-50000)*(Q-
52500)*(Q-55000)-(3.25089*10^-34)*(Q-40000)*(Q-42500)*(Q-45000)*(Q-47500)*(Q-
50000)*(Q-52500)*(Q-55000)*(Q-57500)-(1.5821*10^-36)*(Q-40000)*(Q-42500)*(Q-
45000)*(Q-47500)*(Q-50000)*(Q-52500)*(Q-55000)*(Q-57500)*(Q-60000);
The formulas above were derived by applying curve fitting under Numerical Methods.
Where:
Q: flowrate (cu. m/h)
H: Output head (m)
N: Pump Efficiency (%)
P: Power (KW)
NPSHR: Net Positive Suction Head Required (m)
13
GUI : Exercise no. 5
Problem : Nodal Temperatures
A system of linear equations will be obtained in the process of determining the nodal
temperatures of a flat surface exposed to conduction at each side. However, the system of linear
equations will be difficult to solve due to the several equations involved.
14
For the programming, the following formulas will be used:
x = [-4,1,0,1,0,0,0,0,0;1,-4,1,0,1,0,0,0,0;0,1,-4,0,0,1,0,0,0;1,0,0,-4,1,0,1,0,0;0,1,0,1,-
4,1,0,1,0;0,0,1,0,1,-4,0,0,1;0,0,0,1,0,0,-4,1,0;0,0,0,0,1,0,1,-4,1;0,0,0,0,0,1,0,1,-4];
y = [-Ta-Tb;-Tb;-Tb-Tc;-Ta;0;-Tc;-Ta-Td;-Td;-Tc-Td];
z = x\y;
T1 = z(1,1);
T2 = z(2,1);
T3 = z(3,1);
T4 = z(4,1);
T5 = z(5,1);
T6 = z(6,1);
T7 = z(7,1);
T8 = z(8,1);
T9 = z(9,1);
Qleft = k*(3*Ta-T1-T4-T7);
Qup = k*(3*Tb-T1-T2-T3);
Qright = k*(3*Tc-T3-T6-T9);
Qdown = k*(3*Td-T7-T8-T9);
Checking = Qleft + Qright + Qup + Qdown;
Where:
T: temperatures (oC)
Q: heats (W)
15
Microcontroller
Objectives:
1. To be familiar with basic microcontroller programming using Arduino
2. To construct basic electric circuits in a breadboard
3. To use a microcontroller to control circuits with LEDs, sensor and motors
General Procedures:
1. Open Arduino software and start the programming depending on the exercise to be
performed (refer to figure 10)
16
Microcontroller: Exercise no. 6
Problem : Blinking LEDs
There is a need for an indication that the device is working properly. Hence, LEDs can be used to
indicate that there is no problem with the system.
17
Microcontroller: Exercise no. 7
Problem : Button Indication
When pressing a button for turning on machines, it is necessary to have an indicator that the
equipment is still operating.
18
Microcontroller: Exercise no. 8
Problem : Temperature Measurement
HVAC systems need proper monitoring of air properties like dry-bulb temperature. Hence, there
is a need for sensors that can measure air properties.
19
Microcontroller: Exercise no. 9
Problem : Speed Control
For the locomotion of robotic cars, it is necessary to have a control in speed in order to comply
with the requirements on a specific application.
20
Microcontroller: Exercise no. 10
Problem : Servo Motor Control
In robots, it is essential to have an accurate movement of mechanical components that is needed
in manufacturing applications.
21
Pneumatics
Pneumatic systems make use of compressed or pressurized air in order to control the movement
of components or actuators to perform specific tasks.
Objectives:
1. To be familiar with the basic components of pneumatic systems
2. To construct pneumatic systems to perform specific functions related in mechanical
and manufacturing processes
3. To know the purpose of different valves used in pneumatics
General Procedures:
1. Open the Festo FluidSim Pneumatics (refer to figure 16)
23
Pneumatics: Exercise no. 14
Problem : Separating Device
A system is needed to separate materials by having an upward and downward movement. The
upward motion should be slower than the downward motion. See figure 21.
24
Pneumatics: Exercise no. 17
Problem : Supplying Machine
A machine is needed to supply a raw material one at a time at a specific time interval. After
reaching the maximum forward position, there is a delay period before the retraction process. See
figure 24.
25
Pneumatics: Exercise no. 20
Problem : Mixing Machine
A system is needed for the mixing of paints. There is a specified time interval for the vibration if
a button is pressed. A double acting cylinder can be used to produce the vibration required with a
limited position within its maximum range. See figure 27.
26
Pneumatics: Exercise no. 23
Problem : Sieve Shaker
A vibrating movement with regulator is needed for the sieving of aggregates. The upper sieve
and lower sieve moves in opposite directions. There is a single acting cylinder moving with the
pattern similar to the upper sieve. A button with selector switch activates the operation. See
figure 30.
27
Pneumatics: Exercise no. 25
Problem : Clamping Machine
A machine is needed to clamp coverings to the products. When a button is pressed, the controlled
clamping begins through a forward movement of a cylinder followed by a perpendicular
movement of a pressured regulated cylinder. Another button is for the retraction in a reversed
process. See figure 32.
28
Hydraulics
Hydraulic systems make use of pressurized fluids in order to control the movement of hydraulic
machineries and components.
Objectives:
1. To be familiar with the basic components of hydraulic systems
2. To construct hydraulic systems to perform specific functions related in mechanical and
manufacturing processes
3. To know the purpose of different valves used in hydraulics
General Procedures:
1. Open the Festo FluidSim Hydraulics (refer to figure 34)
2. Add components by dragging the graphical icons under the library section.
3. Connect the components by dragging one port to another
4. Press the start button to simulate the movement of the pneumatic system.
29
Hydraulics: Exercise no. 27
Problem : Lathe Spindle
In an automatic lathe, a hydraulic motor runs the main spindle. It is necessary to know the
relationship of the pressure to the flowrate (pump characteristic). See figure 35.
30
Hydraulics: Exercise no. 28
Problem : Lifting Machine
A lifting machine transfer products to a higher elevation. A system with pressure relief valve can
be used. However, it is necessary to determine the relationship of the pressure to the flowrate for
the operation (pressure relief valve characteristics). See figure 36.
For this exercise, determine the following values and graph the points
31
Hydraulics: Exercise no. 29
Problem : Pressing Machine
In a pressing machine, there is a need to test the hydraulic resistance of the components to
evaluate the pressure for the pressing action. There is a pressure range for operation. See figure
37.
For this exercise, determine the following values and graph the points
Flow rate P1 P2 dP
L/min Bar Bar Bar
0.1
0.2
0.3
0.4
0.5
0.6
And so on up to 5
L/min
32
Hydraulics: Exercise no. 30
Problem : Feed lifter
A feed device lifts rolls of papers to a machine. The lifting movement is done by a cylinder.
When the pump unit is turned on, the cylinder moves upward. The retraction can only happen
through opening a valve when the pump is already turned off. See figure 38
33
Hydraulics: Exercise no. 33
Problem : Embossing Machine
In an embossing machine, the pressing action has a controlled movement. A button can be
pressed for the forward movement. See figure 41.
34
Hydraulics: Exercise no. 36
Problem: Lifting device
When a button is pressed, a single-acting cylinder extends. The button is pressed again for the
retraction. See figure 44.
35
Electromechanical System
Electromechanical systems use both mechanical and electrical components to control mechanism
and perform specific functions.
Objectives:
1. To be familiar with the basic components of electromechanical systems
2. To construct electromechanical systems to perform specific functions related in
mechanical and manufacturing processes
3. To know the purpose of different components used in electromechanical system
General Procedures:
1. Open the Festo FluidSim Pneumatics
2. Add components by dragging the graphical icons under the library section.
3. Connect the components by dragging one port to another
4. Press the start button to simulate the movement of the pneumatic system.
36
Electromechanical: Exercise no. 40
Problem: Cutting Device
The cutting mechanism can be activated if two switches are pressed. If one of the buttons is
released, the cylinder retracts. See figure 47.
37
Electromechanical: Exercise no. 43
Problem : Diverting Device
If a switch is pressed once, the cylinder first moves forward. After reaching the maximum
position, it retracts. The process occurs continuously. Another switch is available for stopping
the cycle. See figure 50.
38
References
D. Waller & H. Werber. “Hydraulics Workbook Basic Level”. Festo Didactic GmbH &
Co.2001
D. Waller & H. Werber. “Pneumatics Workbook Basic Level”. Festo Didactic GmbH &
Co.2002
39