Sunteți pe pagina 1din 6

Proceedings,

Proceedings, 15th
Programmable IFAC
Devices
15th Conference
IFAC and Embedded
Conference on
on Systems
Proceedings,
Programmable
Ostrava, 15th
Czech IFAC and
Devices Conference
Republic, Embedded
May 23-25,on Systems
2018
Programmable
Proceedings, Devices
15th and
IFAC and Embedded
Conference on Systems
Available
Programmable
Ostrava, Czech Devices
Republic, Embedded
May 23-25, Systemsonline at www.sciencedirect.com
2018
Proceedings,
Programmable 15th
Ostrava, Czech IFAC and
Conference
Republic,
Devices May 23-25,on
Embedded 2018
Systems
Ostrava, Czech Republic, May 23-25, 2018
Programmable
Ostrava, Czech Devices and
Republic, Embedded
May Systems
23-25, 2018
Ostrava, Czech Republic, May 23-25, 2018 ScienceDirect
IFAC PapersOnLine
Low cost laboratory plant51-6 for
(2018)control
289–294 system education
Low
Low cost
cost laboratory
laboratory plant
plant for
for control
control system
system education
education
Low
Low cost
cost laboratory
laboratory plant
plant for
for control
control system
system education
education
Tomas Docekal, Matej Golembiovsky
Low cost laboratory
Tomas plant
Docekal, for
 control
Matej system
Golembiovsky
Tomas Docekal, Matej Golembiovsky
education
Tomas Docekal, Matej Golembiovsky
Tomas Docekal, Matej Golembiovsky
Department ofTomas Docekal,
Cybernetics andMatej Golembiovsky
Biomedical Engineering, Faculty of
Department
Department of
of Cybernetics
Electrical Engineering
Cybernetics and
and  Biomedical
and Computer
Biomedical Engineering,
Science, Faculty
Engineering, Faculty of
DepartmentElectrical of CyberneticsEngineeringand Biomedical
and Computer Engineering,
Science, Faculty of of
DepartmentElectrical of VSB-Technical
Cybernetics
EngineeringandUniversity
Biomedical
and of
Computer Engineering,
Ostrava,
Science, Faculty of
DepartmentElectrical of
Electrical
17.listopadu
Engineering
Cybernetics
VSB-Technical
Engineering
VSB-Technical and
15, Ostrava,
and Computer
Biomedical
University of
and Computer
University Czechof
Science, Faculty of
Engineering,
Ostrava,
Science,
Republic
VSB-Technical University of Ostrava,
Ostrava,
(e-mails:Electrical17.listopadu Engineering
VSB-Technical
tomas.docekal@vsb.cz,
17.listopadu
17.listopadu
15,
15, and
Ostrava,
University
Ostrava,
15, Ostrava,
Computer
Czech
Czech
Czech
Science,
Republic
of Ostrava,
matej.golembiovsky@vsb.cz)
Republic
Republic
(e-mails:
(e-mails: VSB-Technical
tomas.docekal@vsb.cz,
17.listopadu 15, Ostrava, University of Ostrava,
matej.golembiovsky@vsb.cz)
Czech Republic
(e-mails: tomas.docekal@vsb.cz,
tomas.docekal@vsb.cz,
17.listopadu 15, Ostrava,
matej.golembiovsky@vsb.cz)
matej.golembiovsky@vsb.cz)
Czech Republic
(e-mails: tomas.docekal@vsb.cz, matej.golembiovsky@vsb.cz)
Abstract: This article(e-mails: deals with tomas.docekal@vsb.cz,
design and development matej.golembiovsky@vsb.cz)
of low cost laboratory plant for control system
Abstract:
education. This
The article
apparatus deals with
includes design
DC and
motor development
with of
incremental low cost
quadratic laboratory
encoder.plant The for control
Arduino system
Abstract:
Abstract: This
education.
This
The
article
apparatus
deals
article deals with design
with design
includes DC
and development
and development
motor with
of
of low
incremental low cost
cost laboratory
quadratic laboratory
encoder.
plant
plant
The
for
for controlplatform
control
Arduino
system
system
platform
Abstract:
is used
education. to This
realize
The article
digital
apparatus deals withsystem.
control
includes design
DC and
It
motor is development
also
with possible of
to
incremental low
use cost laboratory
Raspberry
quadratic Pi
encoder. to plant
interact
The for control
with
Arduino system
laboratory
platform
education. The
This apparatus
article deals includes
with DC
design motor
and with
development incremental
of lowquadratic encoder.
cost laboratory The
plant Arduino platform
Abstract:
is
plant
is used
education.
used and to
to realize
The Control
REX
realize digital
apparatus
digital control
includes
System
control tosystem.
DC motor
design
system. It is also
control
It is with
also possible
algorithm.
possible to
incremental
to use
use Raspberry
quadratic
Raspberry Pi
encoder.
Pi to
to The for
interact
interact control
with
Arduino
with system
laboratory
platform
laboratory
is used
education.
plant and to REX
realize
The digitalSystem
apparatus
Control control
includes tosystem.
DC
design Itcontrol
motor is also
with possible to usequadratic
incremental
algorithm. Raspberry Pi to interact
encoder. The with laboratory
Arduino platform
is
plantused and to realize
REX digital
Control control
System to system.
design It is also possible
control algorithm. to use Raspberry Pi to interact with laboratory
© used
plant
is 2018,
Keywords:
plant
and
and IFAC
to REX (International
realize
REX
Control
Embedded digitalSystem
Control Federation
control
Systems,
System
tosystem.
design of Itcontrol
Automatic
Microprocessors
to design control Control)
is alsoalgorithm.
possible toHosting by Elsevier
use Raspberry
and Microcontrollers;
algorithm. Pi Ltd.
to
Control AllSystem
interact rights
withreserved.
laboratory
Education;
Keywords:
plant
Arduino;
Keywords: and DC REXEmbedded
Control
Motor,
Embedded REX Systems,
System
Control
Systems, Microprocessors
to design
System control algorithm.
Microprocessors and
and Microcontrollers;
Microcontrollers; Control
Control System
System Education;
Education;
Keywords:
Arduino; DC Embedded
Motor, REX Systems,
Control Microprocessors
System and Microcontrollers; Control System Education;
Keywords:
Arduino; DCEmbedded
Motor, REX REX Systems,
Control Microprocessors
System and Microcontrollers; Control System Education;
Arduino;
Keywords: DC Motor,
Embedded Control
Systems, System
Microprocessors  and Microcontrollers; Control System Education;
Arduino; DC Motor, REX Control System 
Arduino; DC Motor, REX Control System device to measure the voltage in order to make it visible.
1. INTRODUCTION  device to measure the voltage in order tobymake it visible.
1. INTRODUCTION  Dynamics
device
device to of the system
to measure
measure the
the voltagemay be
voltage in chosen
in order
order to combining
tobymake
make it the
it visible.
visible.
1.
1. INTRODUCTION
INTRODUCTION  Dynamics
device to of the
measure system
the may
voltage be
in chosen
order to combining
make it the
visible.
The issue of control is constantly being developed and value
Dynamics
Dynamics of resistance
of the
of the system and
system capacity
may
may be be in
chosen
chosena wide
by interval.
combining
bymake
combining Time
the
the
1. INTRODUCTION device
value ofto measure
resistance the
and voltage
capacity in order
in a to
wide it
interval. visible.
Time
The
elaborated
The issue
issue of
on.
of control
In
control is constantly
1. INTRODUCTION
order is for this
constantly being
trend
being to developed
continue,
developed and
it
and is Dynamics
constants
value of of
may the
vary
resistance system
from
and may
capacity be chosen
milliseconds
in a to by
wide combining
seconds
interval. or the
even
Time
The issue of control is constantly being developed and value
Dynamics
constantsof resistance
of
may the
vary and
system
from capacity
may be in
chosen
milliseconds a wide
to by interval.
combining
seconds or Time
the
even
elaborated
The
necessary
elaboratedissue toon. on. In
ofeducate
control
In order for
is for
more
order this
constantly
people
this trend
on being
trend to
the to continue,
developed
subject.
continue, it
Teachingand
it is
is value
minutes.
constantsof resistance
may vary and
from capacity in
milliseconds a wide
to interval.
seconds or Time
even
elaborated on. In order for this trend to continue, it is constants
value
minutes. of may vary and
resistance fromcapacity
milliseconds
in a to seconds
wide interval. or Time
even
The
necessary
elaborated
and issue to
conveying
necessary to ofeducate
on. control
In order
information
educate is for
more
more constantly
people
and on
thisfindings
people being
trend
on the
the to
is developed
subject.
continue,
needed
subject. Teachingand
so itthat
Teaching is constants
minutes. may vary from milliseconds to seconds or even
necessary toon. educate morefor people on the to subject. Teaching minutes.
constants
The secondmay vary focuses
example from milliseconds
more on thetopractice seconds or even
commonly
elaborated
and
various
and conveying
necessary
conveying to educate
approaches In order
information
canmore
information andthis
people
be applied,
and trend
findings
on the is
otherwise
findings is continue,
needed
subject. so it
Teaching
their discovery
needed so that
thatis minutes.
and conveying
necessary to educate information
more and
people findings
on the isis needed
subject. so
Teachingthat The
The second
minutes.
found in
second example
households
example focuses
or
focuses in more
the
more on the
industry.
on the practice
However,
practice commonly
commonlyit is
various
and
would
various beapproaches
conveying useless.
approaches Acan
information
good
can be
be applied,
and findings
approach,
applied, otherwise
which
otherwise can their
needed discovery
so that
be utilized
their discovery in The second example focuses more on the practice commonly
various approaches can be applied, otherwise their discovery found
The
complicated
found in
second
in households
example
to build
households or
focuses
or in
in the
more
appropriate
the industry.
on the
industry. However,
practice
laboratory commonly
plant.
However, it
While
it is
and
would
various
class,
would conveying
be
is
be useless.
approaches
the use
useless. information
A
of
A good
can
practical
good and
be approach,
applied, findings
examples
approach, which
otherwise
which and iscan needed
be
their
tasks.
can be so
utilized
discovery
Generally
utilized that
in
in found
The in households
second
complicated example
to build or
focuses in more
the industry.
appropriate on the However,
practice
laboratory commonly
plant. it is
While is
would isbe
various
class, useless.
approaches
the use of ofA good
can be approach,
practical applied,
examples which andcan
otherwise be utilized
their
tasks. discovery
Generally in found temperature
complicatedin households
measuring
to build or
is in the
easily
appropriate doneindustry.
with simple
laboratory However,
sensors
plant. it(for
While is
would isbe
speaking,
class, useless.
students
the use Awho good
practicalapproach,
familiarize
examples which
themselves
and can be utilized
with
tasks. the topic
Generally in complicated
found
temperatureinusing to build
households
measuring appropriate
or
is in the
easily done laboratory
industry.
with plant.
However,
simple sensors While
it(for
is
class,
would
speaking, isbethe use ofAwho
useless.
students practical
good examples
approach,
familiarize which andcan
themselves tasks.
be
with Generally
utilized
the topicin complicated
example
temperature toDallas
build DS18B20),
measuring appropriate
is easily done laboratory
realization
with of
simple plant.
sensors While
manipulated (for
class,
in
speaking,
is the
a practical
speaking, use
students
studentsmannerofwhopractical
who and tryexamples
familiarize
familiarize solving andproblem
the
themselves
themselves
tasks.
with
with
Generally
in atopic
the
the lab temperature
topic complicated
example measuring
using to build
Dallas is easily done
appropriate
DS18B20), with simple
laboratory
realization of sensors
plant. (for
While
manipulated
temperature
value
example is using measuring
more Dallas
complicated. is easily
DS18B20), done
The case with simple
of positive
realization of sensors (for
values is
class,
in
speaking,
have is
a the
aa practical use
students
tendency mannerofwhopractical
to and try examples
familiarize
memorize, solving andproblem
andthe
themselves tasks.
with Generally
in
the atopic
lab example using Dallas DS18B20), realization of manipulated
manipulated
in
in a practical
practical manner
manner and
and try
try solving
solving the most
the problem
problem importantly
in
in aatopic
lab
lab value temperature
example
called is moremeasuring
using
heating complicated.
Dallas
and this iscan
easily
DS18B20), beThe done
donecase withof
realization
using simple
positive sensors
values
of manipulated
resistance wire,(for
is
speaking,
have
in
understand,
have a
a practical
a students
tendency
the
tendency manner
issue. who
to
to familiarize
memorize,
and
They try
can
memorize, solving
then themselves
and
and most
the most
easily with
problem
apprehend the
importantly
a lab value
infurther
importantly
value
example
called
is
is more
more
using
heating
complicated.
complicated.
Dallas
and this DS18B20),
can be
The
Thedone
case
case of
of
realization
using
positive
positive
of
values
values
manipulated
resistance wire, isaa
is
have
in a
a practical tendency manner to memorize,
and try solving and most
the most
problem importantly value
light
called is
bulb more
etc.
heating complicated.
Negative
and this The
manipulated
can be donecase of
variable
using positive
values
resistance values
are
wire, isa
not
understand,
have
relations
understand,
understand, or the
a tendency the
the
issue.
problems
issue.
issue.
toThey
They
They
can
memorize,
whichcan
can
then
they
then
then
easily
and
would
easily
easily
apprehend
apprehend
apprehend be in
not importantly a lab
further
able
further
further to value called
light heating
is
bulb more
etc. and this can
complicated.
Negative beThedone
manipulated case using
of
variable resistance
positive
values wire,not
values
are isaa
have a and tendency called
so easily
light heating
bulb done.
etc. and
Usingthis
Negative a can be
ventilatordone
manipulated is using
a resistance
possibility;
variable values wire,
however,
are not
relations
understand,
imagine
relations or
or the issue.toThey
problems
connect
problems memorize,
which
with
whichcan they
practice
they and
then easilywould
in
would mostnot
apprehend
purely
not importantly
be
be able
further
theoretical
able to
to light
called
so bulb
easily etc. and
heating
done. Negative
Usingthis a manipulated
can be
ventilatordone is variable
using
a valueshowever,
resistance
possibility; are
wire, nota
relations
understand,
imagine or the
and problems
issue.
connect Theywhich
with can they
then would
easily not be
apprehend able
further to light the
so bulbsystem
final
easily etc. Negative
done. wouldaa have
Using manipulated
various
ventilator is variable
aaattributes values
possibility; are not
in regard
however, to
relations
lesson.
imagine
imagine Foror these
and
and
problems
connect
connect reasons which
with
with it practice
isthey
practice
practice
in
would
advisablein
in
purely
notuse
to
purely
purely
betheoretical
able
practical
theoretical
theoretical
to light so
the easily done.
bulbpolarity
final Using
etc. Negative
system would ventilator
manipulated
have various is variable
possibility;
attributes values
in however,
are not
regard to
relations
lesson. Foror problems
these reasons which it isthey would
advisable not
to be
use able
practical to so
the easily
varying
final done.
system Using
of
would thea ventilator
manipulated
have various is a possibility;
value
attributes and in however,
would
regard be
to
imagine
examples
lesson. Forand
and connect
laboratory
these reasonswith
plants
it practice
is (in
advisablein purely
lessons tothatuse theoretical
allow that)
practical the
so final polarity
easily
varying system
done. would
Using
of thea have various
ventilator
manipulated is aattributes
possibility;
value and in would
regard
however, to
be
lesson.
imagine
examples Forand these
connect reasonswith it is advisable
practice in to
purely use practical
theoretical the final
heavily
varying system
influenced
polarity would
of by thethe have various
environment.
manipulated attributes
Dynamics
value and in regard
would
would to
be
lesson.
with
examples whichForand
and the laboratory
these reasons
students
laboratory plants
can
plants is (in
itwork (in on lessons
advisable
their
lessons tothat
own
thatuseallow
and
allow put that)
practical the
that) varying
the polarity
finalinfluenced
system of
would the manipulated
have various value
attributes and would be
examples
lesson.
with whichFor and laboratory
these
the reasons
students plants
can it is
work (in lessons
advisable
on their tothatuse
own allow
and that)
practical
put the
heavily
varying
dependent
heavily polarity
on the
influenced of by
by the
general the
the environment.
manipulated
system design,
environment. Dynamics
value
but andin would
changes
Dynamics regard
would
wouldwould to
be
be
examples
lesson’s
with
with which
which findings
and the
the into practice.
laboratory
students
students
plants
can
can The
work
work
(inonfact
on thatown
lessons
their
their one
own of
that and
and the
allow put
put most
that)
the
the
heavily
varying
dependent influenced
polarity
on the of bythe
general the manipulated
environment.
system design, Dynamics
value
but and
changes would
wouldwould be
be
heavily
be influenced
relatively by the environment. Dynamics would be
examples
lesson’s
with
frequentlywhich findings
and
findings
used into
thelaboratory
into
students
models practice.
plants
practice.
can a The
is work The (inon
simplefact
fact that
lessons
that
their one
one
own
inverted of
that and
of the
allow putmost
the that)
most
dependent
dependent
the heavily onslow
on the (tens
the general
general of seconds
system
system or morebut
design,
design, likely
but minutes).
changes
changes would
would
lesson’s
lesson’s
with
frequentlywhich findings
the
used into
students
models practice.
can
is The
work
a facttheir
on
simple that own
inverted ofpendulum,
one and the
put
pendulum,mostthe be
dependent
be influenced
relatively
relatively onslow
slow by the
the (tens
general
(tens of
of environment.
seconds
system
seconds or more
design,
or more Dynamics
likely
but changes
likely would
minutes).
would
minutes). be
lesson’s
described
frequently findings
in Ozana
used into
models practice.
et al.
is a The
(2012),simplefact that
speaks
invertedone
for of the most
itself.
pendulum, This be relatively
dependent
The last on slow
examplethe (tens
general
is of seconds
also system
oriented oronmore
design, likely
but
practical minutes).
changes
task. would
Motor
frequently used models is (2012),
a Thesimple inverted pendulum, be relatively slow (tens of seconds or more likely minutes).
lesson’s
described
frequently
system
described isfindings
in Ozana
used
relatively
in Ozana into
models practice.
et
et al.
is (2012),
complicated
al. a andsimplefact
allowsthat
speaks
inverted
speaks forone
for
for of the tasks
itself.
pendulum,
multiple
itself. most
This
This The
be last
relatively
rotation example
slow is
(tens also oriented
of seconds on
inorsome
morepractical
likelyof task. Motor
minutes).
described
frequently
system
described
to be is
carried
in
inused
Ozana
relatively
Ozana
out. models et al. (2012),
et al.is (2012),
complicated a andsimple speaks
allows inverted
speaks forfor itself.
pendulum,
formultiple
itself.
This
This The
tasks
The last speed
last
rotation
example
example
speed
control
is
is also
control
is
also
is
found
oriented
oriented
found in
on
some
types
on practical
practical
types of
tools
task.
task.
tools
and
Motor
Motor
and
system
system is relatively
is relatively complicated
complicated and allows
and allows for multiple
forformultiple tasks
tasks The
other last
rotation example
appliances
speed or is
control inalso oriented
industry
is found which
in on
some practical
utilizes
types task. Motor
manipulators
of tools and
described
to be
system carried
is in Ozana
out.
relatively et al.
complicated (2012),
and speaks
allows for itself.
multiple This
tasks rotation
The
other last speed
example
appliances control
or is in is
also found
oriented
industry in some
whichon types manipulators
practical
utilizes of tools
task. and
Motor
to
to be
be carried
carried out.
out. rotation
etc.
other The speed
task
appliances control
itself
or isin is found
interesting
industry in
due
whichsome
to thetypes
fact
utilizes of
that tools and
changes
manipulators
system
In be
to is
thecarried relatively
basicout. complicated and allows for
lessons of cybernetics and control systems, rotation multiple tasks other
etc. Theappliances
speed
task or
control
itself isin industry
is which
found which
interesting in
due some
to utilizes
thetypes
fact manipulators
of
that tools and
changes
In the basic lessons of cybernetics and control systems, other
in
etc. Theappliances
rotation taskspeed or
itself are
isin industry
observable
interesting visually
due to utilizes
the and
fact manipulators
it
thatis easy
changes to
to
In be
however,
the carried it
basic out.
is necessary
lessons ofto start with
cybernetics something
and simpler.
control The
systems, etc.
other
in The taskspeed
appliances
rotation itselforare
isininteresting
industry
observable due
which to utilizes
visually the and
fact manipulators
that
it is changes
easy to
In the
however, basic
itisis lessons
isannecessary
necessary of cybernetics
tocybernetics
startthe with and
something control
simpler.systems,
The in etc.
apply
in The
rotation task
disturbanceitself
speed is
in
are interesting
the form
observable of due
shaftto
visually the
brake.fact
and that
Measuring
it is changes
easy of
to
In the
very
however, basicbasic
it lessons ofto
understanding start with and and
principle
something control
simpler.systems,
functionality The etc.rotation
apply The taskspeed
disturbanceitself are
is
in observable
interesting
the form of visually
due
shaftto the and
brake.fact itthat
is changes
Measuring easy ofto
however,
In
very the basic it
basicis isannecessary
lessons of
understanding to start with
cybernetics
the something
and
principle simpler.
control
and The
systems,
functionality in
the rotation
applyoutput speedcan
value
disturbance are
in be observable
the done
form using
of visually
various
shaft and Measuring
it iswhich
sensors
brake. easyareto
of
however,
of
very a simple
basic itisisan necessary
control
understanding to start
loop which
thewith something
uses
principle negative
and simpler.
feedback.
functionality The apply in
the disturbance
rotation
output speedcan
value in
are the form
observable of shaft
visually brake.
and Measuring
itbeiswhich
easyareof
to
very
however,
of a basic
simple itisisan understanding
necessary
control to
loop start the
which withprinciple
something
uses and simpler.
negative functionality
feedback.The apply
not
the disturbance
complicated
output value can in be
and bethe done
formusing
manipulated
done using various
of shaftvalue
various sensors
brake.
can Measuring
sensors done
which of
by
are
verya basic
Various
of
of a simple
is an
simple
simple understanding
systems
control
control might
loop
loop
theused
be
which
which
principle
uses
uses
andpurpose
fornegative
this
negative – RC apply
functionality
feedback.
feedback.
the
not output value can
disturbance
complicated in
and bethe done
form using
manipulated of various
shaft
value sensors
brake.
can which
Measuring
be done are
of
by
verya basic
Various isitsan
simple understanding
systems might theused
be principle andpurpose –
functionality RC not the output
generating value
complicatedPWM can
and be
signal done
from using
digital
manipulated value various
control sensors
can system
be which
and
done are
by
of
circuit simple
and control
charging, loop
controlwhich usesfor this
negative –
feedback. not complicated and bemanipulated value cansystem
be which
done by
Various
Various simple
simple systems
systemsloop might
might beof
be temperature,
used
used for this
fornegative or
this purpose DC
purpose motor
– RCRC the not
usingoutput
generating value
complicatedPWM
H-bridge.
generating PWM cansignal
and
Dynamics
signal done
from using
manipulated
fromis digitalvarious
influenced
digital control
value by
control sensors
can
load and
beattached
system done
and are
by
to
of a
circuit
Various
rotation
circuit simple
and its
simple
speed
and its control
charging,
systems might
control.
charging, control
controlwhich of
beofused uses
temperature, or
for this purpose
temperature, or feedback.
DC
DC motor
– RC using
motor generating
not complicatedPWMDynamics
signalmanipulated
and from digitalvaluecontrol can system
be and by
done by
by
circuit
Various
rotation
circuit and
rotation
and its
simple
speed
speed
charging,
systems might
control.
its charging,
control.
control of
controlbeofused
temperature, or
for this purpose
temperature,
DC
or DC motor – RC using H-bridge. Dynamics is influenced by load attached to
motor using H-bridge.
generating
the shaft of PWM
the
H-bridge. signal
motor
Dynamics and from
byis
is influenced
digital
motor by
control load
characteristics.
influenced by system
load attached
and
However,
attached by
to
to
rotation speed control. generating
the
using
the shaft
time
shaft of
of PWM
the
H-bridge.
constant
the signal
motor
Dynamics
motor of and from
byis
transition
and by digital
motor
influenced
motor is in control
characteristics.
by
tens system
load
or
characteristics. and by
However,
attached
hundreds
However, to
of
circuit
The first
rotation andcase
speed its ischarging,
a systemcontrol
control. which of temperature,
becomes of a higheror DCorder motor if the shaft of the motor and by motor characteristics. However,
The first case is a system which becomes of a higher order if using
the
the H-bridge.
time
shaft
milliseconds.
time ofconstant
the
constant Dynamics
motor of
of and byis motor
transition
transition influenced
is
is in by load
tens or
characteristics.
in tens or attached
hundreds
However,
hundreds to
of
of
rotation
more
The first speed
parts case control.
areis connected.
aa system Its description
which becomes of isaaeasy
higher to order
derive, if the time ofconstant of andtransition is characteristics.
in tens or hundreds of
The
more first
parts case areis system which becomes of higher order if the shaft
milliseconds. the motor by motor However,
The
and itfirst case
is also is connected.
a system Its
which description
becomes ofis aeasy
higher to derive,
order if the time constant of transition is in tens or hundreds of
milliseconds.
more
more
The
parts
parts
itfirst
anddetachment case
is also
also areeasy
are
isfrom
easy
to control.
connected.
connected.
a system
toreality, Its The
Its
which
control. The
disadvantage,
description
description
becomes of
disadvantage,
is
isaeasy
easy however,
higher
to
however,
derive,
to order
derive, is
if the
is
milliseconds.
The time constant variant
last presented
milliseconds. of transition
of systems is inwas tens or hundreds
chosen as suitable. of
more
its
and it parts
is areeasyconnected.
to control. Its
first description
The of all due to
disadvantage, is the
easyfacttothat
however,derive,
it is The last presented variant of systems was chosen as suitable.
anddetachment
more
its it parts
is alsoareeasy toreality,
connected.
from control. Its The
first disadvantage,
description
of all due tois easy
the however,
factto derive,
that it is System
is milliseconds.
The last implementing
presented DC
variant motor
of offers
systems was the most
chosen advantages.
as suitable.
anddetachment
not ita isrealalso world
easy toexample,
control. The disadvantage,
secondly however, The lastimplementing
presented variant of systems was chosen as suitable.
its
its
anddetachment
not itaa isreal
also
from
fromtoreality,
easy
world reality,
control.
example,
first
first
The
of all
secondly due due
all due
of disadvantage, to theto
to the fact
facta that
however,
certain
aa that
it
it is
is System
is The last
System presented
Arduino
implementing DC
variant
platform DC motor
of
(version offers
systems
motor Uno)
offers was the
was
the most
chosen
selected
most advantages.
as tosuitable.
create
advantages.
its
not detachment
invisibility real of from
the
world reality,
control
example, first
value. secondly due due
ofisallnecessary
It to theto
due to
tofact
use certain
that it is
another
certain System
The last implementing
presented
Arduino DC
variant
platform motor
of
(version offers
systems
Uno) was the
was most
chosen
selected advantages.
asandsuitable.
to create
not a realofworld example, secondly due tofact a that
certain System
the
The controlimplementing
Arduino system.
platform It DC
is onemotor
(version of offers
the
Uno) most thefrequent
was most advantages.
selected to well-
its detachment
invisibility
not a realofworld
invisibility from
the
the reality,
control
example,
control first
value.
value. of
It all
is
secondly
It is due
necessary
necessaryto the
due to to use
to use a anotherit
another is
certain System The Arduino platform
implementing DC(version
motor Uno)
offers was selected
thefrequent to create
most advantages. create
invisibility
not a realofworld
invisibility
of the control
the control
value.
example, It
value. secondly
is necessary
It is necessary due to to use
to use certain the control system. It is one of the most frequent and well-
another
a another the
The
the control
Arduino
control system.
platform
system. It
It is
is one
(version
one of
of the
Uno)
the most
mostwas selected
frequent and
to
and create
well-
well-
The
the Arduinosystem.
control platform It is(version
one of Uno)
the mostwasfrequent
selected and to create
well-
Copyright
invisibility © 2018
of theIFAC control value. It is necessary to use another 289
2405-8963 ©
Copyright © 2018 IFAC2018, IFAC (International Federation of Automatic Control) 289 Hosting
the by
control Elsevier
system. Ltd. It All
is rights
one ofreserved.
the most frequent and well-
Copyright
Peer review© 2018 responsibility
IFAC 289Control.
Copyright ©under
2018 IFAC of International Federation of Automatic
289
Copyright © 2018 IFAC
10.1016/j.ifacol.2018.07.168 289
Copyright © 2018 IFAC 289
2018 IFAC PDES
Ostrava, Czech Republic, May 23-25, 2018Tomas Docekal et al. / IFAC PapersOnLine 51-6 (2018) 289–294
290

known platform based on 8bit microcontroller. There are resistor. Outputs of both systems with RC circuits are
numerous examples of working with this platform, making it therefore very similar, if we disregard the malfunction signal.
easy for students to study it on their own. In addition to vast By comparing outputs of the same control circuit, we can see
support, the simplicity of the control algorithm design and the influence of the disturbance signal on the output value.
open-source development environment with many functions
was the key. Students are therefore not required to be familiar One of the basic functions of automatization is controlling the
with complex programming language or some platform, rotations of the motor. This task is also useful in teaching, as
leaving the main focus to be the issue of designing the control the students can see output value of the system, in this case
system, with implementation on a specific platform being motor shaft rotation. It is therefore immediately evident
very simple. which purpose this task serves and how it can be used in
practice. Even though the basic version of the board is not
2. HARDWARE DESCRIPTION equipped with an electric motor or a rotation speed sensor,
this task was taken into account during the design. The board
The laboratory plant should be used in several different was equipped with interface which allows us to connect it
subjects. Because of it we decided to divide it to two parts. with the motor, encoder and sensor for measuring the current
First one is the shield board compatible with Arduino Uno going through the motor. Separation of this part is expedient
and Mega platform and including basic user interface, simple because of the lower price of the board, but also because it
systems based on RC circuits and connectors for motor board allows using various types and sizes of motors. Since the
connection. This second board is the basis of the control board does not contain any power electronics but only control
system described later and used to do controller design signals come out of it and it accepts standard inputs for
example. measuring of rotations using quadrature encoder or analogue
input for measuring current, it is possible (with little
2.1 Shield board adjustments of input and output signals) to connect almost
any electro motor with power ranging from mW up to kW.
Nevertheless, it is necessary to use external power supply for
The main aspect of the design was the simplicity of the basic
more powerful motors.
part. At the same time, however, the emphasis was on the
possibility of extensions; shield can therefore be used as an
interface for controlling other more complex systems.
Separating these more complex parts from the basic model
has the advantage in lowering its price while keeping the
possibility for additional extension. As was mentioned
before, the whole board, shown in Fig. 2, is drawn as a shield
for development platform Arduino.
The parts of the board are adjusted in such a way so that the
students can familiarize themselves with basics of controlling
simple systems and measuring output values. As an example
of a simple dynamic system we implemented two serially
connected RC circuits. The input of this system is realized by
PWM signal whose period is smaller than time constants of
the system. From the output signal perspective, the system Fig. 1. Connection of RC circuit with optical transfer of
then acts as if there was a continuous analogue signal on its manipulated value
input which corresponds with the duty of the excitation PWM
signal. Another advantage of the design is the ability to In order to familiarize with the possibilities for interaction
measure the output value from the first and second RC with the user-controlled systems and measuring of process
circuit. Students can therefore gradually familiarize with the quantities, other components are added to the board. To
issue of controlling systems of the first and second order. indicate the state there are two LEDs, one connected only to
Monitoring signal located “inside” the system can be used the digital output, the other allows for brightness control
also for teaching cascade control systems. through PWM signal. As a demonstration of the open-loop
controls, there is connector on the board, which emits
To supplement the issue of controlling a second, identical
standardized servo signal. There is no feedback for the
system with RC circuits is used. Excitation of this system,
periphery connected to this connector, which demonstrates
however, is connected using LED and photosensitive resistor,
the need for implementation of external control circuit, which
shown in Fig. 1. Thanks to this connection, a disturbance
is an inseparable part of the radio control servomechanism.
signal is led into the system in the form of a local
Measuring rotation of the shaft and evaluation of the
illumination or partial blocking of the light beam between
manipulated value takes place inside the servomechanism
LED and photosensitive resistor. This way, students can
itself and cannot be interfered with. For user entry there is
check what impact this disturbance signal has on the quality
micro-switch on the board connected to digital input. The last
of control in the closed loop control system. Extra attention
part is a temperature sensor. This sensor is connected through
was given to implementation of this part, especially in terms
1-wire bus and demonstrates the possibilities of more
of adjusting the signal coming out of a photosensitive

290
2018 IFAC PDES
Ostrava, Czech Republic, May 23-25, 2018Tomas Docekal et al. / IFAC PapersOnLine 51-6 (2018) 289–294 291

complex two-way communication with some sensors or development platform Arduino from USB port of a computer
actuators. is sufficient. The carbon brushes ensure motor longevity.
The whole board was designed as an additional shield for From the electronics point of view, the platform implements
Arduino while keeping in mind not to unnecessarily increase H-bridge which converts digital signal about the direction of
the size of the whole platform. From electrical point of view, the rotation and PWM signal with information about motor
individual parts of this board are connected so that we may power to power signals suitable for motor excitation. To
fully utilize hardware peripheries of Arduino platform measure the rotation speed and shaft position we choose
microcontroller. To generate all PWM signals we may magnetic incremental quadrature encoder which uses
therefore use timers. Measuring analogue values is possible diametrically magnetized cylinder-shaped magnet attached to
thanks to embedded A/D convertor and in order to read user the motor shaft. Position of this magnet is evaluated inside
input and to count pulses from encoder the external interrupts the magnetic encoder, based on a signal from the hall sensors
can be utilized. All these steps lower the computation array. If the magnet position changes, the sensor generates
requirements which would be needed in software pulses corresponding to this change. In order to attach the
implementation of these functions. The platform therefore magnet to the motor shaft, a special part was designed and
allows even for relatively complex tasks using simple 8bit printed on the 3D printer precisely for that purpose. The part
microcontroller. is also used for attaching the load in the form of an M8 nut,
which increases the time constant of the system. The last part
of the platform is the circuit for measuring current through
motor. This current corresponds with motor torque and the
ability to measure it opens up possibilities for implementing
more complex and precise control algorithms.
From the mechanical point of view, the whole motor board
forms a compact unit. Its base consists of printed circuit
board with electronic parts. This board also serves as a
mechanical carrier for motor and additional board with
magnetic encoder, which could not be placed on the base
board because of the shaft position. This unit is then
connected to shield board for Arduino through a simple flat
cable.

Fig. 2. Shield board for Arduino

2.2 Motor board

It is an extension of the shield board which enables the task


of motor rotation control. Even though it is one of the basic
tasks in automatization, the need for an exact positioning of
the motor shaft and an exact motor rotation speed profile may
increase the complexity of this task.
The shield board, shown in Fig. 3, allows connection with
almost any electro motor, however the simplest type of them Fig. 3. Motor board with H-bridge and current sensor
was chosen for this extension design – brushed DC motor
with permanent magnets. The choice of motor power was 3. CHARACTERISTICS OF SYSTEM
also rather conservative, as the product is meant for
demonstration and designing of control algorithms and it will At the beginning of the work with the system there are two
not actually actuate anything, therefore there is no need for basic tasks – the ability to apply manipulated value and to
using high power one. The final choice was a small motor measure output signal. The first one is generating PWM
with carbon brushes. The laboratory plant will not therefore signal from the microcontroller to change voltage applied to
require external power supply as the power provided through the motor and to change the direction of rotation by digital

291
2018 IFAC PDES
Ostrava, Czech Republic, May 23-25, 2018Tomas Docekal et al. / IFAC PapersOnLine 51-6 (2018) 289–294
292

output pin. The H-bridge internal structure creates the need to characteristic also shows significant non-linearity – a
change polarity of PWM signal depending on the direction of deadband and friction depending on whether the
rotation, since the final voltage applied to the motor is related measurement was done during acceleration or slowing down.
with pulses with opposite values than the value of a signal Furthermore, characteristic in the first quadrant is generally
determining the direction of rotation. This can be easily non-linear as opposed to the third quadrant. This is caused by
solved in the program function into which the sign value used the H-bridge and control method. If the PWM signal is
determining duty of the PWM signal and the direction of being generated only in one output while the second one is
rotation is entering. The second task is reading the value of used to control the rotation direction, we use fast decay mode
incremental quadrature encoder and calculating rotation (first quadrant) in one direction and slow decay (third
speed. The used platform Arduino utilizes microcontroller quadrant) in the other. This issue is illustrated in Fig. 5.
ATmega which contains pins connected to external
interrupts. This can be triggered by changing the logical level
of the connected signal. One of the encoder channels is
connected to pin with described feature. In the interrupt
handler it is checked whether it was a rising or falling edge
and what is the current logical level on the second signal
from encoder. From this data we determine whether the
counted number of edges increments (rotation in one way) or
decrements (rotation in the other way). Let us note that the
total number of impulses on one channel, which is equal to
one rotation of the shaft, is 64, meaning there is total of 128
counted edges per revolution. Counting only the amount of
edges determines shaft angular position. If we want to obtain
information about speed, it is necessary to determine edge
count per a unit of time (to count derivation, differentiation
respectively). For this purpose, we use timer with set period
of 5 ms. In the interrupt handler of the timer we then
determine how has the number of detected edges changed in
the last time period. This value is then the speed of shaft Fig. 4. Static characteristic of used DC motor, blue line is
rotation in “number of edges per 5 ms” unit. The information increasing of PWM duty, red line decreasing
can be converted to usual units via encoder resolution with
the (1). Because it will be necessary to work with floating In the fast decay mode, the static characteristic is not linear.
point numbers instead of integers when using unit rpm, it is If needed, it is possible to implement control on the
not used normally in the algorithms running on used microcontroller in a more complex manner, thus managing to
microcontroller. use slow decay mode in both directions of the rotation.
count per 5 ms
n  200  60 ( rpm) (1)
128
The constant 128 is number of edges per revolution, constant
200 is used to transfer value from 5 ms to seconds and
constant 60 is used to transfer value to minutes.

3.1 Static characteristic

While working with this laboratory plant, it is important to


learn some information about the controlled system. For this,
the system has certain measurable characteristics, one of
which is static characteristic. From that, we may determine
linearity of the system, its gain and limit values. During the
measurement we must take care that there is a long enough
delay after setting the manipulated value, meaning the system
is in steady state. The whole process can be automatized
through cycles and send measured values from Fig. 5. PWM current control in fast and slow decay modes
microcontroller into terminal on the computer through virtual (from Allegro MicroSystems, LLC (2013))
serial interface.
The characteristic is displayed in Fig. 4 and captures areas for 3.2 Dynamic characteristic
rotation in both directions and simultaneously the increase
and decrease of the system input signal. The maximum value Dynamics of the system is captured in the step response
of rotations of the motor is approximately 5000 rpm. The displayed in Fig. 6. During its measurement the system is

292
2018 IFAC PDES
Ostrava, Czech Republic, May 23-25, 2018Tomas Docekal et al. / IFAC PapersOnLine 51-6 (2018) 289–294 293

firstly in a stable condition with zero input and output. After The following step of the entire process is discretization and
that there is a step change of manipulated value. The output, implementation. Firstly, we transform the controller transfer
that is the rotations of the motor, is measured in regular function from the regulator from Laplace transform into
intervals (in our case 5 ms) as the difference of counted discrete Z-transform via backward difference method using
edges. substitution (4).
It is possible to identify the system and determine its transfer 1
z 1 1 z
function by the measured characteristics. Identification s  (4)
Toolbox system, part of the Matlab, can be used for this. Tz T
where T is the sampling period used by the control system.
Thus, we obtain discretized transfer function (5).
0.4525 U ( z)
G R ( z )  12.7  1
 (5)
1 z E( z)
By some adjustments, we get an equation (6) that is then
easily convertible into time domain (7).
1 1
U ( z )  (1  z )  E ( z )  (13.1525  12.7  z ) (6)
u[k ]  u[k  1]  13.1525  e[k ]  12.7  e[k  1] (7)
Equation (7) is entered directly into the control algorithm. It
is necessary to add calculation of error value, that is the
difference between setpoint and controlled value, and also
add saving of the calculated values for further calculations in
the following algorithm cycle execution.
After implementation it is necessary to check the
Fig. 6. Step response of used system functionality of the control system. We therefore create the
same situation as during simulations – step change of
setpoint. The final response is then compared with simulated
While it may not be evident from the characteristics at first
process in Fig. 7.
sight, for identification we will use formula for a second
order system. Due to this, it is possible to use more methods
for controller design. The used laboratory plant has transfer
function described in (2).
0.16914
G( s)  (2)
2.739  10 4

 s  1  0.1409  s  1

4. EXAMPLE OF CONTROL DESIGN PROCESS


The basic aim in using the mentioned tools is to allow the
students to try out the process of design and implementation
of the controller in its entirety. The first phase is
identification of the system transfer function, second is the
design of the controller, third is its discretization and
implementation on a specific platform, and fourth is the
functionality check.
Process of acquiring the transfer function of the system has
been described in the previous chapter. In the following part a
method of modulus optimum with the ability to restrict
Fig. 7. Comparison of closed loop control system responses,
manipulated value to an available scale described in Docekal
blue line is simulated one, red line is real one
and Ozana (2017) was chosen. Transfer function of the final
PI controller is described in (3).
While comparing controlled values from simulation and from
90.5 reality, we can see that they are strongly matched. With data
G R ( s )  12.7  (3) from laboratory plant we also see that there is some noise.
s This is something that must be accounted for and with which
The response from the simulation of the closed loop control the students will get familiar. It is partly caused by a
system to step change in the setpoint from 0 to 20 (in the relatively small resolution of the used encoder.
amount of edges in 5 ms) is captured in the Fig. 7.

293
2018 IFAC PDES
Ostrava, Czech Republic, May 23-25, 2018Tomas Docekal et al. / IFAC PapersOnLine 51-6 (2018) 289–294
294

5. CONCLUSION without need for special lab. The Ethernet connection of


Raspberry Pi is modifiable; the IP addresses can be static or
This article deals with low cost laboratory plant design. It is dynamic etc., easily connectable to single computer, local
suitable for teaching cybernetics and control systems. With network or existing university network. The use of wireless
its use it is possible to further develop knowledge and USB adapter is also possible.
abilities of the students, especially allowing them to take part
in practical demonstrations, thus increasing their ability to The cost of the shield board and motor board is
memorize gained knowledge. After the introduction of these approximately 30 €, however it can be reduced by using some
laboratory plants into seminars, there was an increase in China printed circuit boards manufacturer. After adding the
students’ interest in this subject and their positive response. Arduino UNO and Raspberry Pi the price rises to
approximately 80 € for the whole stand. With this price it is
The first part suggested examples of simple systems that possible to equip the lab with stand for each student, so they
could be used during seminars. The finalized tool implements can work independently. It is also possible for students with
two of them (system with DC motor and RC circuits) plus interest in control theory to buy their own stand, which can
contains a temperature sensor. After further extension it include only shield board, motor board and Arduino UNO.
would be possible to use it for a third task of temperature The microcontroller platform is then usable for other tasks
control too. and the other boards can be made by students, so the price is
In the next part of the article we presented an example work reduced only to basic electronic parts.
with the described laboratory plant. It was a complete process
of designing the controller using one of the methods for PID ACKNOWLEDGEMENTS
controller design. Trying out each part helps students to This work was supported by the project SP2018/160,
understand individual problems that may arise during the „Development of algorithms and systems for control,
process. It is also possible to try and solve other tasks from measurement and safety applications IV'' of Student Grant
the theory of control using this laboratory plant. This could System, VSB-TU Ostrava.
be other methods of designing PID controller, for example
experimental method Ziegler-Nichols. It is also possible to This work was also supported by the European Regional
demonstrate wind-up effect and methods of its suppression or Development Fund in the Research Centre of Advanced
bumpless operation in case of switching between manual and Mechatronic Systems project, project number
automate mode. An interesting set of tasks is implementation CZ.02.1.01/0.0/0.0/16_019/0000867 within the Operational
of discrete controllers using algebraic methods, where the Programme Research, Development and Education.
sampling period and therefore the repetition of control
algorithm is substantially longer than with methods based on REFERENCES
continuous controller design. From modern control theory
state space control would be used, as the laboratory plant also Allegro MicroSystems, LLC (2013). A3901 Dual Full Bridge
allows measuring the current going through the motor and Low Voltage Motor Driver [online] Available from:
thus determining state variables. https://www.allegromicro.com/~/media/Files/Datasheets/
A3901-
Compatibility with REX Control System described in Balda Datasheet.ashx?la=en&hash=6119157AB3FE799FAEA
et al. (2005) is also worth mentioning. The given shield board 4470EE686CF6A62B6DBBA
for Arduino Uno (or also Mega version) was implemented in Balda, P., Schlegel, M. and Štětina, M. (2005). Advanced
such a way, so that it would be compatible with Rexduino control algorithms + Simulink compatibility + Real-time
library, which is based on connection of platform Raspberry OS = REX. In: IFAC Proceedings Volumes (IFAC-
Pi with Arduino in a form of a periphery. It is possible to use PapersOnline), pp. 121.
all attributes of the laboratory plant and create control Docekal, T. and Ozana, S. (2017). Advanced PID tuning
systems in a graphically oriented development environment based on the modulus optimum method for real systems.
REX Draw. Main advantage of this software tool is the In: AIP Conference Proceedings, 1836
ability to easily create visualization for the system, monitor Golembiovsky, M., Dedek, J. and Ozana, S. (2017).
and save available signals. It is possible to use REX Control Multicopter control with Navio using REX control
System in many applications, examples can be found in system. In: AIP Conference Proceedings, 1836
Ozana et al. (2012) or Golembiovsky et al. (2017). It can be Ozana, S., Pies, M., Slanina, Z. and Hajovsky, R. (2012).
used to realize real time simulations SIL or PIL too, see Design and implementation of LQR controller for
Ozana and Docekal (2017). The virtual laboratory is not the inverted pendulum by use of REX control system.
only concept using remote access to plant; the stand can be In: International Conference on Control, Automation
used to NCS (Network Control System) described in Slanina and Systems, pp. 343.
et al. (2013) with Raspberry Pi as Ethernet transceiver. Ozana, S. and Docekal, T. (2017). The concept of virtual
laboratory and PIL modeling with REX control system.
The described laboratory plant, meaning Arduino platform In: Proceedings of the 2017 21st International
with shield board, motor board and also Raspberry Pi, is Conference on Process Control, PC 2017, pp. 98.
mounted on the plastic stand. It is possible to easily move it Slanina, Z., Otevrel, V., Kazarik, J., and Dojcsan, M. (2013).
from one workplace to another or between laboratories. NCS based regulation for ball on an inclined plane.
Thanks to that it can be used at any university for education In: IFAC Proceedings Volumes, 46(28), pp. 74-77.

294

S-ar putea să vă placă și