Skip to main content

Closed-Loop Temperature Control Using MATLAB@Simulink, Real-Time Toolbox and PIC18F452 Microcontroller

  • Conference paper
  • First Online:
Advanced Technologies, Systems, and Applications

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 3))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Matlab R (2009) Documentation. The Mathworks

    Google Scholar 

  2. Gilat A (2011) MATLAB an introduction with applications, 4th edn. Wiley, New York

    Google Scholar 

  3. Ban Ž, Matuško J, Petrović I (2010) Primjena programskog sustava Matlab za rješavanje tehničkih problema, Graphis, Zagreb

    Google Scholar 

  4. Lent CS (2013) Learning to program with MATLAB. Wiley, New York

    Google Scholar 

  5. Real-Time Windows Target User’s guide: for use with real-time workshop, The Mathworks, version 2, pp 3–33

    Google Scholar 

  6. Dogan I (2008) Advanced PIC microcontroller projects in C. Elsevier, Burlington

    Google Scholar 

  7. PIC18F42X, Data Sheet, FLASH-Based 8-Bit CMOS Microcontroller, 2003

    Google Scholar 

  8. Chartrand L, Huang HW (2005) PIC microconteroller: an introduction to software & hardware interfacing, Mankato

    Google Scholar 

  9. http://www.omega.com/temperature/Z/pdf/z110–114.pdf. 16 Mar 2016

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Edin Mujčić .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics