Professional Documents
Culture Documents
First Seminar
First Seminar
Supervisor Presented by
Dr. Kyaw Thiha Date: 9.4.2018 Aye Su Thwe
Professor VI.BE.McE(2)
9-Apr-18 1
Outlines
• Introduction
• Aim and Objectives
• Future Plan
• Conclusion
9-Apr-18 2
Introduction
• Balancing a ball at a desired reference point on a beam using a
controller
• Basic to study the implementation of classical or modern control
theories, such as horizontal and vertical stabilization of aerospace
and airplanes during turbulent flow and landing
• Two degree of freedom system
Ball rolling along the beam
9-Apr-18 4
Set Point Ball Position
PID Ball & Beam
+_ Controller System
PSD Sensor
Reference Motor
angle angle
Inner Motor Ball and Beam
+_ Model
Controller Model
Potentiometer
Aim
• To model the ball and beam system with a suitable controller (PID
or LQR) to control the ball position
Objectives
• To develop the program with Matlab/Simulink and Arduino for the
control system design
• To understand how the combination of hardware and software
works
9-Apr-18 6
Objectives (Continue…)
9-Apr-18 7
Components and Software
• Components
Arduino controller
• Software
Matlab/Simulink
9-Apr-18 8
PSD sensor – to detect DC motor – to move the beam
the position of the ball for balancing the ball position
Motor
Calculation of Parameter Communication
transfer
parameters identification with USB port
function
PID tuning
Real time plot
methods
Progress Chart
9-Apr-18 11
Transfer Function Calculation
– Lagrange method
• Newtonian method
– Use force and torque equations
Force equation: F = ma
Torque equation: = FR = J ä
X ( s) mgd
=
( )
θ( s) Jb 2
L m+ 2 s
R
Newtonian Model
9-Apr-18 13
• Lagrange method
– Use kinetic energy and potential energy equation
Kinetic energy: K= +
Potential energy: U = mgh
Lagrange equation: L = K – U
X (s) mgd 1
=−
( ) s2
θ(s) Jb
Lagrange Model L 2 +m
R
di(t)
V a ( t )=i ( t ) R a+ La +V b ( t )
dt
θ (s ) Km
=
V a ( s) s ( Js+ b ) ( R a + L a s ) + K m K b s
9-Apr-18 15
Sensor Calibration
9-Apr-18 16
Sensor Calibration
y = distance (cm)
x = output voltage (volt)
9-Apr-18
Voltage-distance relationship is derived from that nature 18
Sensor Calibration
The data values have only a little deviation from the fitting curve
• DC motors x 2
• Potentiometer
• FET 2SK2231
• 4.5V supply
• Arduino board
• 1N4001 x 2
• 0.1µF x 2
• 100kΩ & 1.5k Ω
9-Apr-18 20
Input/Output Test
• Identification steps
Gain K and offset
Verification process V t ( s) y (s ) K
= =
V a ( s) u (s ) Ts+1
• By step response method
( )
t
• Matlab/Simulink and .m file y ( t )= K 1 −e
−
T
At
At
9-Apr-18 22
Identification for Gain K
K = 0.583650
u_offset = 1.254492
Fitting Line for the Result
9-Apr-18 23
Identification for Gain K and Time Constant T
K = 0.566671
T = 0.8
u_offset = 1.362502
Motor parameters:
K = 0.566671
T = 0.8
u_offset = 1.362502
9-Apr-18 Simulink Block Diagram 25
PID Tuning Methods
Manual tuning
Limit sensitivity method
Pole assignment method
Manual Tuning
𝑡
𝑢 ( 𝑡 )= 𝐾 𝑃 𝑒 ( 𝑡 ) + 𝐾 𝐼∫ 𝑒 ( 𝜏 ) 𝑑 𝜏
0
Proportional gain:
Integral gain:
( 𝑝 1+ 𝑝2 ) 𝑇 +1
𝐾 𝑃 =−
𝐾
𝑝1 𝑝2 𝑇
𝐾 𝐼=
𝐾
Simple Tutorials
9-Apr-18 29
Graphic User Interface (GUI)
USB Communication and Real Time Plot from Potentiometer and PSD Sensor
9-Apr-18 30
Future Plan
• Motor position control
Parameter identification for motor used
Control methods
Link with ball and beam system
• GUI animation
Ball and beam graphic
More options
9-Apr-18 31
Conclusion
• Transfer functions and sensor parameters, needed to use in ball and
beam system, has been calculated
• Speed control system, basic to learn about position control, has been
studied
• Among three PID tuning methods, manual tuning method yields the
best results but it needs more steps and adjustment
• Gains directly obtained by pole assignment method (no adjustment
needed)
• More control methods are to be studied
9-Apr-18 32
THANK YOU!
9-Apr-18 33