Experiments On Temperature Control Using ON-OFF Al
Experiments On Temperature Control Using ON-OFF Al
Experiments On Temperature Control Using ON-OFF Al
Seria Technologica
Vol. 16 (XXXIII) no. 1, 2019
ISSN 2668-4217, ISSN-L 2668-4217
10.2478/amset-2019-0001
Abstract
The paper presents an automated system for the temperature control using a PIC
microcontroller, a digital temperature sensor with I2C and a MOSFET as actuator. The
control strategy is a proportional-integrative one, preceded by an on-off algorithm. The most
important data is presented on a graphical interface. In order to send the parameters of the
process and the command states to the computer, the serial communication is used.
Key words: temperature control; PIC microcontroller, PID controllers, adaptive control
6
PIC16F876, 8 bits microcontroller [16];
MAX232 driver driver/receiver for RS232 serial
interface [18];
MOSFET transistor as actuator for high power
and low voltage;
Optocoupler that provide electrical isolation
between the supply voltage and the lower
voltage;
Quartz oscillator, signaling LEDs, connectors.
The microcontroller communicates with the
temperature sensor through I2C bus and receives 12
bit, binary data (temperature), then waits data from
RS232.
This data is sent to the PC. If there are no data, after
a specified time, the supply voltage of the heating
element is stopped, and the receiving subroutine is Fig. 3: The dependence of the average power by the PWM
reactivated.
After the data receiving, a test decides if data are in
the (0 - 100)% admissible domain, which is exactly the
amount of power to be supplied to the heating element
(expressed as a percentage). The control of the power
is based on the Pulse Width Modulation (PWM), with
a rectangular fixed-frequency signal and a variable
duty cycle.
7
Fig. 5: The graphical interface
8
task that needs to be solved in order to achieve the set- International Conference on Computer as a Tool
up performances imposed in the closed-loop system. (EUROCON), vols. I, II, pp. 266-269.
The tuning parameters of the PI controller are [7] Landau, I.D. (2011), Adaptive Control,
calculated using the Ziegler-Nichols criteria, available Communications and Control Engineering,
for the slow processes with one time constant and Springer-Verlag London Limited.
delay time [4]. In turn, these parameters are obtained [8] Levărdă, B. and Budaciu, C. (2010), The Design
by offline identification, using the Cohen-Coon of Temperature Control System Using
graphical method [4]. PIC18F46201, „Gheorghe Asachi” Technical
Starting with an on-off controller and a reduced set University of Iaşi, Politehnica Bulletin, Tome
point value (90%) the output temperature has a LVI (LX), Fasc. 4, pp. 203-214.
hysteresis of about 2oC, but the process components [9] Rob, R., Tirian, G.O and Panoiu, C. (2016),
are protected. By switching to the PI algorithm and to Temperature Controlling System using
the “total” set point (100%), the steady state error is Embedded Equipment, International Conference
zero. on Applied Sciences (ICAS), vol. 163.
From practical point of view, using a serial bus [10] Sharma, S.R., and Dahikar, P.B. (2013),
reduces the cabling costs and prototyping time, making Embedded Design of Temperature Controller
it the ideal solution based on microcontrollers. Using PIC16F876A for Industries and
The major disadvantage is given by the significant Laboratories, International Journal of Innovative
reduction of the communication speed, between the Research in Computer and Communication
components of the system. This disadvantage is Engineering, vol. I, Issue 10, pp. 2414-2422.
diminished in the case of the microcontrollers where [11] Mikrajuddin, A. and Aprianti, N.A. (2007),
the most of the components are integrated in the same Learning Control at Undergraduate Level Using
circuit. The PWM has a major advantage, because the PIC16F877 Microcontroller-based Temperature
actuator loses less power, compared to the analog Controller, ASME/IASME Conference on
system. Mathematical Methods and Computational
Techniques in Research and Education.
Acknowledgement [12] Ratnakumari, U.V. and Triven, M.B. (2016),
This paper is based upon work supported by the Implementation of Adaptive Model Predictive
Energy and Electrotechnologies Management Controller and Model predictive control for
Research Centre. temperature Regulation and concentration
tracking of CSTR, IEEE International Conference
References on Communication and Electronics Systems
(ICCES), pp. 698-703.
[1] Katzen, S. (2010), The Essential PIC18
[13] Aftab, B.S. and Shafiq, M. (2015), Adaptive PID
Microcontroller, Springer Verlag London.
Controller based on Lyapunov Function Neural
[2] Duka, A. V. (2013), Sisteme cu microprocesoare
Network for Time Delay Temperature Control,
(Systems with Microprocessors), „Petru Maior”
IEEE 8th GCC Conference and Exhibition
University of Tîrgu Mureş Publishing House.
(GCCCE).
[3] Genge, B. and Haller, P. (2008), Proiectarea
[14] Singh, A.J., Raviram, P. and Shanthosh, K.
sistemelor dedicate şi încorporate cu
(2014), Embedded based Green House
microcontrolerul PIC (Design of the Dedicated
Monitoring System using PIC Microcontroller,
and Embedded Systems with PIC
IEEE International Conference on Green
Microcontroller), „Petru Maior” University
Computing Communication and Electrical
Publishing House, Tîrgu Mureş.
Engineering (ICGCCEE).
[4] Dulău, M. and Gligor, A. (2015), Introducere în
[15] Minkai, L., Sang J. and Yiming, Y. (2017),
Ingineria sistemelor automate (Introduction to
Design of temperature control system of adaptive
the Control Systems Engineering), „Petru Maior”
control algorithm based on characteristic model,
University Press, Tîrgu Mureş.
IEEE 32nd Youth Academic Annual Conference
[5] Dulău, M., Karoly, M. and Dulău, T. M. (2018)
of Chinese Association of Automation (YAC).
Fluid temperature control using heat exchanger,
[16] PIC16F87X Data Sheet, Microchip Technology
11th International Conference on
Inc., 2013.
Interdisciplinarity in Engineering (Inter-Eng
[17] MCP9800/1/2/3 Data Sheet, 2-Wire High-
2017), Procedia Manufacturing, vol. 22, pp. 498-
Accuracy Temperature Sensor, Microchip
505.
Technology Inc., 2004.
[6] Bolat, E.D., Erkan, K. and Postalcioglu, S.
[18] MAX232 Data Sheet, Texas Instruments Inc.,
(2005), Experimental Autotuning PID Control of
2014.
Temperature Using Microcontroller, IEEE