Implementing of an Arduino based Temperature controller with PID algorithm - Seyedreza Fattahzadeh.pdf

(3684 KB) Pobierz
Implementing an Arduino based Temperature Controller
with PID algorithm
Seyedreza Fattahzadeh
© 2015 Seyedreza Fattahzadeh
srfattah@yahoo.com
helpme@plc-doc.com
No part of this book maybe reproduced, in any form or by any means, without
permission in writing from the author / publisher.
NOTICE TO THE READER
All rights reserved. No part of this book may be reproduced, in any form or by any
means, without permission in writing from the publisher.
Every effort has been made to ensure our books are as accurate as possible. However,
there may be mistakes, both typo and in content. This content should be used as a general
guide and not as the solution. The author does not warrant or guarantee any of the
products described herein. Also, the author does not warrant or guarantee any of the
equipment or programs described herein or accept liability for any damages resulting from
their use. The reader is warned that both electricity and the construction of electrical
equipment can be dangerous. It is the responsibility of the reader to use common sense
and safe electrical and mechanical practices.
ATmega8, AVR
®
8- and 32-bit microcontrollers are trademarks of Atmel Corporation.
CodeVisionAVR compiler software is trademark of DELCOMp Company.
Arduino software and Arduino board are trademarks of Arduino Company.
Altium Designer
®
is a registered trademark of Altiume Company.
Proteus is software for microprocessor simulation, schematic capture, and printed circuit
board (PCB) design. It is developed by Lab center Electronics Ltd.
Please be informed that:
This book contains many images. Since eReaders don’t always display images well,
upon request, I will provide you with the PDF file which contains the complete e-Book,
including the images, if you need an easier-to-read format. To receive a PDF version of
this e-book or any other software which is mentioned in the content of this text, you can
email me the proof of your purchase of the kindle version of the book from Amazon.com
to srfattah@yahoo.com. Upon receipt of that proof, a PDF version will be sent to your
email address.
Table of Contents
Preface
About the Author
How to use this book
Read me first
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 the 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
Zgłoś jeśli naruszono regulamin