自动控制书籍
自动控制书籍
自动控制书籍
Permissions may be sought directly from Elsevier’s Science & Technology Rights
Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333,
e-mail: permissions@elsevier.com.uk. You may also complete your request on-line via the
Elsevier homepage (http://elsevier.com), by selecting “Support & Contact,” then
“Copyright and Permission” and then “Obtaining Permissions.”
Recognizing the importance of preserving what has been written,
Elsevier prints its books on acid-free paper whenever possible.
Library of Congress Cataloging-in-Publication Data
Wescott, Tim.
Applied control theory for embedded systems / by Tim Wescott.
p. cm. -- (Embedded technology series)
ISBN-13: 978-0-7506-7839-1 (pbk. : alk. paper)
ISBN-10: 0-7506-7839-9 (pbk. : alk. paper) 1. Embedded computer
systems--Design and construction. 2. Digital control systems--Design and
construction. I. Title. II. Series.
TK7895.E42W47 2006
629.8’9--dc22
2006002692
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library.
ISBN-13: 978-0-7506-7839-1
ISBN-10: 0-7506-7839-9
06 07 08 09 10 10 9 8 7 6 5 4 3 2 1
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
What’s on the CD-ROM?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Chapter 2: Z Transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Signals and Systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Difference Equations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.3 The Z Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4 The Inverse Z Transform. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5 Some Z Transform Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.6 Transfer Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.7 Stability in the Z Domain. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.8 Frequency Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.9 Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 3: Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.1 Tracking. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.2 Frequency Response. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.3 Disturbance Rejection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.4 Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Chapter 5: Analysis. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.1 Root Locus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
5.2 Bode Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
5.3 Nyquist Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
5.4 Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Microprocessors are getting smaller, cheaper and faster. Every day, it is easier
to embed more functionality into a smaller space. Embedded processors have
become pervasive, and as time goes on, more and more functions that were once
implemented with analog circuitry or with electromechanical assemblies are being
realized with microcontrollers, ADCs and DACs. Many of these assemblies that
are being supplanted by the microprocessor are controlling dynamic processes,
which is a good thing, because the microprocessor coupled with the right software
is often the superior device.
The worm in the apple is that while many microprocessor based controllers
are replacing electromechanical or analog electronic controllers, or are being
built new for things that could never be practically controlled, most engineers
who are skilled at embedded system design are not acquainted with designing
control systems, or have fragmentary, ad-hoc knowledge that falls short of that
required to do the job at hand.
This is a book about analyzing and understanding embedded control systems.
It is written for the practicing embedded system engineer who is faced with a
need to design automatic control systems with embedded hardware, to do so
quickly and to produce robust, reliable products that perform well and generate
profit for the companies that build them.
What’s on the CD-ROM?
The CD-ROM for this book contains two sets of code, and some free analysis
software.
The analysis software is SciLab, from the Scilab Consortium (Scilab is a
trademark of INRIA). It was used to generate most of the graphs that you see
in this book.
The first set of code that you will find on the CD-ROM are the SciLab scripts
that were used to generate the graphs. These scripts will provide ready examples
should you choose to use SciLab for your analysis.
The second set of code that you will find on the CD-ROM is the C and
assembly code that is presented in Chapters 9 and 10. This code consists of
many building-blocks for embedded controllers, as well as a swept-sine frequency
response measurement package.