Implementing an Arduino based Temperature Controller with PID algorithm
Author: Seyedreza Fattahzadeh
– copyright 2015
Format: PDF file
Number of pages: 87
The role of the temperature controller is to measure the value on the temperature, compare it to the set point and calculate the amount of time the hot water solenoid valve should remain switched on to maintain a conandstant temperature. How accurately we need to control the temperature will also determine the type of temperature controller we have to use. The manual is organized into four chapters, three of which explain how the code and hardware can be integrated so that a relay can be turned on and off to control the temperature of a small water filled container using a typical ATmega8 Microcontroller. The last chapter explains how, by applying two SSR’s (solid state relay), the temperature of the same container with a PID control can be managed using an Arduino ATmega2560 development board.
The main control program solutions are prepared in C language using CodevisionAVR and Arduino software. In addition, the schematic of all the hardware used in these projects are available in the text. You will find details on the creation of code for an ATmega8 Microcontroller and Arduino development board that controls a temperature process in the text. This book has been prepared for those who are already familiar with the basic instructions related to any brand of Microcontroller and may have already developed some Microcontroller-based programs for different purposes. Developing this will give you an idea of either how to implement a relatively complex end year college project or give you enough hands on experience to apply for an entry level job on applications of Microcontrollers with full confidence.
Table of content:
Chapter 1: Microcontroller systems Abstract, Resistance Temperature Detector (RTD) Temperature Sensors, Microcontroller based RTD temperature measurement, Microcontroller systems, ATmega8 microcontroller, Application of CodeVisionAVR C Compiler.
Chapter 2: Temperature and its Measurement, Abstract, The design of a temperature controller system with a single board microcontroller, Microcontroller’s controlling method, An On-Off controller, The microcontroller’s system specifications, Structure of the microcontroller program, Integrated Circuit Temperature Sensors, Replacing PT100 sensor, with LM35 temperature sensor.
Chapter 3:Explanation on how to design hardware and software, Abstract, Design and simulation of hardware using Proteus 7.8 software, Using CodeVisionAVR V 2.05 software to generate the control program, Brief explanation of the solution software, Using Proteus 7.8 software to simulate the control program, Uploading the control program into the ATmega8 Microcontroller (hex file),Using Altium Designer software to build the PCB of the controller.
Chapter 4: PID Controller with an Arduino board, Project specification of the system, Generating the main Control Code for the Arduino Microcontroller, Getting to manufacturing the PCBs of the project, Uploading the control program into the Arduino board, PID (Proportional Integral Circuit), Good informative links, Appendix A – Slope of a straight line, Appendix B – PID. The prototype version of the project is actually designed and implemented in my lab. The control software is presented to you after it is tested on the hardware, and I have made sure it is functioning 100% according to the designed specification.
Use the following URL address to watch the performance of the project hardware and software in action! http://youtu.be/i2nxqLs9wBg