Abstract
Today’s way of life is closely linked with technology and it would be impossible without a microcontrollers. They are represented in all spheres of life: in the automotive industry, robotics, computer systems, home appliances, etc. Also, today’s life is unthinkable without computers. The combination of computer and microcontroller provides a very great possibilities, which uses the good features of both. This chapter describes the use of a computer in combination with MATLAB@Simulink, Real-time Toolbox and PIC18F452 microcontroller for closed-loop temperature control. Control and settings for temperature are in MATLAB@Simulink and they can be very easily adjusted. Also, all the information: the refrence temperature, information from controller and the measured temperature are available at any time in MATLAB@Simulink and can be processed and stored. For real-time operation is used Real-time Toolbox. The information is sent from computer over serial port to PIC18F452 microcontroller. The PIC18F452 microcontroller receives information and processes them. Information from PIC18F452 microcontroller is amplified using a transistor that works as the switch and the thyristor which is used to turn on the heater. Turning off thyristor is automatically passing supply voltage through zero. Temperature measurement is performed using the temperature sensor LM335. Output signal from the sensor is amplified by using operational amplifier LM324 and after that sent in PIC18F452 microcontroller. The microcontroller processes information and after that send it over serial port to computer. In this way the loop of temperature control is closed using a computer and PIC18F452 microcontroller.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Matlab R (2009) Documentation. The Mathworks
Gilat A (2011) MATLAB an introduction with applications, 4th edn. Wiley, New York
Ban Ž, Matuško J, Petrović I (2010) Primjena programskog sustava Matlab za rješavanje tehničkih problema, Graphis, Zagreb
Lent CS (2013) Learning to program with MATLAB. Wiley, New York
Real-Time Windows Target User’s guide: for use with real-time workshop, The Mathworks, version 2, pp 3–33
Dogan I (2008) Advanced PIC microcontroller projects in C. Elsevier, Burlington
PIC18F42X, Data Sheet, FLASH-Based 8-Bit CMOS Microcontroller, 2003
Chartrand L, Huang HW (2005) PIC microconteroller: an introduction to software & hardware interfacing, Mankato
http://www.omega.com/temperature/Z/pdf/z110–114.pdf. 16 Mar 2016
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this paper
Cite this paper
Mujčić, E., Drakulić, U., Škrgić, M. (2017). Closed-Loop Temperature Control Using MATLAB@Simulink, Real-Time Toolbox and PIC18F452 Microcontroller. In: Hadžikadić, M., Avdaković, S. (eds) Advanced Technologies, Systems, and Applications. Lecture Notes in Networks and Systems, vol 3. Springer, Cham. https://doi.org/10.1007/978-3-319-47295-9_24
Download citation
DOI: https://doi.org/10.1007/978-3-319-47295-9_24
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-47294-2
Online ISBN: 978-3-319-47295-9
eBook Packages: EngineeringEngineering (R0)