Академический Документы
Профессиональный Документы
Культура Документы
Engineering
Alan Kardek Rgo Segundo, Jos Alberto Naves Cocota Junior, Digenes Viegas Mendes Ferreira
Departamento de Engenharia de Controle e Automao e de Tcnicas Fundamentais - DECAT
Escola de Minas, Universidade Federal de Ouro Preto - UFOP
Ouro Preto, Brasil
alankardek@em.ufop.br, cocota@em.ufop.br, diogenes_viegas@ymail.com
Abstract On this work, a device was made in order to help
the visualization by the student of a PID temperature control
and thus fix the concepts learned in the classroom. This device
was built primarily with a PIC18F4550 microcontroller, a mini
cooler from a PC, a heat resistor, LM35 temperature sensors,
liquid crystal display, USB connector, transistors, LEDs,
potentiometers, resistors and capacitors. The USB connection is
responsible for recording the microcontroller firmware
(bootloader mode), for interfacing with a supervisory software,
and to supply the system. The heat resistor provides heat to the
system. On the other hand, the cooler has the function of
removing heat from the system. The liquid crystal display helps
the student to check the temperature, the constants of the
controller (Kp, Ki and Kd) and the set point temperature or the
cooler voltage. The potentiometers provide the option to run the
system in open loop, that is, they serve to make the control of the
heat supplied by the heat resistor and the cooler voltage
manually. Both the heat resistor and the cooler are controlled
via transistors switched by PWMs (Pulse Wide Modulation). A
computer program was developed in C Sharp language to
display the temperature over time measured by the sensors. The
program also is used to adjust the constants Kp, Ki and Kd of the
controller and the temperature set point. The microcontroller
firmware allows the system to operate in both open and closed
loop modes. This work allows the student to learn in practice the
control actions when the controller parameters are changed,
contributing to improve the acknowledgment of Control
Engineering.
KeywordsProject
Based
Learning;
Microcontroller;
Supervisory System; PID; Temperature Control.
I.
INTRODUCTION
PROTOTYPE DEVELOPMENT
(1)
Controller
Kp
Ti
Td
PI
PID
(2)
(3)
(4)
(5)
Start
No
USB
connected?
Bouncing treatment.
Yes
Yes
Any button
pushed?
No
Yes
Timer A ended?
No
No
Timer B ended?
No
Yes
AD conversion.
Controller
algorithm.
Writing on LCD.
USB data arrived?
Sending USB data.
Yes
Data processing.
Start
Start
V1 = Kp*((2*Ti+T)/(2*Ti))*Error
V2 = Kp*((-2*Ti+T)/(2*Ti))* Previous_Error
PID = PID + V1 + V2
Previous_Error = Error
Yes
No
Yes
PID = 255
Yes
Insert a new point in graph and refresh the data
acquisition list.
No
PID < 0?
No
Yes
PID = 0
No
USB data
arrived?
No
Yes
Cooler_PWM = PID
Data processing.
Refresh the gauge, graph and digital inputs
state.
End
Button pushed or
scroll bar modified?
No
Yes
Sending USB data.
Fig. 4. Simplified flowchart of the SCADA system.
IV.
RESULTS
TABLE I.
Answers
A(%)
The project has
motivated me to
100.0
conclude the
engineering course.
The project has
motivated me to learn
100.0
more about the subject.
I would recommend
other students to attend
93.75
this subject with this
methodology adopted.
I could see in practice
how to develop
projects that involve
other subjects,
contributing
55.56
significantly to the
establishment of the
theoretical concepts
learned throughout the
course.
This educational tool
contributed to fix the
theoretical concepts
seen in Control
33.33
Engineering
disciplines, because
these concepts were
visualized in practice.
A= Strongly agree, B=Agree,
E=Strongly disagree
B(%)
C(%)
D(%)
E(%)
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
6.25
0.00
0.00
0.00
[4]
[5]
[6]
[7]
44.44
0.00
0.00
0.00
33.33
33.33
0.00
0.00
CONCLUSION
[2]
[3]