Embedded Digital Control with Microcontrollers
eBook - ePub

Embedded Digital Control with Microcontrollers

Implementation with C and Python

Cem Unsalan, Duygun E. Barkana, H. Deniz Gurhan

Partager le livre
  1. English
  2. ePUB (adapté aux mobiles)
  3. Disponible sur iOS et Android
eBook - ePub

Embedded Digital Control with Microcontrollers

Implementation with C and Python

Cem Unsalan, Duygun E. Barkana, H. Deniz Gurhan

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

EMBEDDED DIGITAL CONTROL WITH MICROCONTROLLERS

Explore a concise and practical introduction to implementation methods and the theory of digital control systems on microcontrollers

Embedded Digital Control with Microcontrollers delivers expert instruction in digital control system implementation techniques on the widely used ARM Cortex-M microcontroller. The accomplished authors present the included information in three phases. First, they describe how to implement prototype digital control systems via the Python programming language in order to help the reader better understand theoretical digital control concepts.

Second, the book offers readers direction on using the C programming language to implement digital control systems on actual microcontrollers. This will allow readers to solve real-life problems involving digital control, robotics, and mechatronics.

Finally, readers will learn how to merge the theoretical and practical issues discussed in the book by implementing digital control systems in real-life applications. Throughout the book, the application of digital control systems using the Python programming language ensures the reader can apply the theory contained within. Readers will also benefit from the inclusion of:

  • A thorough introduction to the hardware used in the book, including STM32 Nucleo Development Boards and motor drive expansion boards
  • An exploration of the software used in the book, including Python, MicroPython, and Mbed
  • Practical discussions of digital control basics, including discrete-time signals, discrete-time systems, linear and time-invariant systems, and constant coefficient difference equations
  • An examination of how to represent a continuous-time system in digital form, including analog-to-digital conversion and digital-to-analog conversion

Perfect for undergraduate students in electrical engineering, Embedded Digital Control with Microcontrollers will also earn a place in the libraries of professional engineers and hobbyists working on digital control and robotics systems seeking a one-stop reference for digital control systems on microcontrollers.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Embedded Digital Control with Microcontrollers est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Embedded Digital Control with Microcontrollers par Cem Unsalan, Duygun E. Barkana, H. Deniz Gurhan en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Ciencias biolĂłgicas et TeorĂ­a de sistemas. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2021
ISBN
9781119576556

1
Introduction

This book aims to introduce digital control systems via practical applications. Therefore, we will briefly introduce the system and control theory concepts in this chapter. Then, we will emphasize how this book differs from the ones in literature. Besides, we will summarize the concepts to be explored in the book. Hence, the reader will have necessary background for the following chapters.

1.1 What is a System?

A system can be defined as the combination of parts to carry out a specific task. Let us pick the Pololu Zumo robot (https://www.pololu.com/product/2510/) in Figure 1.1. This is a system composed of four main parts as chassis, motors, tracks with sprockets, and battery. When energy is fed to the motors, they move the chassis via rotating sprockets.
We can add two more modules to the Zumo robot as a control unit (such as microcontroller) and reflectance sensor. These modules can be used to add autonomy to the robot such that it can follow a line drawn on ground. To do so, we will need a “control” action. Let us introduce it next.

1.2 What is a Control System?

Control is the act of producing a desired output for a given input. The control system is used for this purpose. For our Zumo robot, our aim is following the line. Hence, the robot system should be guided by a control system to follow the line. To be more specific, the control system should get the reference input signal (as position of the line) and current position of the robot from the reflectance sensor; form an error signal by their difference; generate necessary control signals to the motors (on the chassis); and guide the robot (system) accordingly. Yet another example is controlling temperature inside the refrigerator. Here, refrigerator is the system. The desired temperature value is set by the user as the reference signal. The actual temperature value inside the refrigerator is measured by a sensor. The control system sets the internal temperature to the desired value by using a cooler. As can be seen in both examples, the control system is used to generate a desired output for a given input.
Photo depicts the PololuZumo robot.
Figure 1.1 PololuZumo robot.
(Source: Pololu Robotics & Electronics, pololu.com.)
The control system may be classified either as analog or digital depending on its construction. If the system is only formed by analog components, then it is analog. Early control systems were of this type. As the microcontroller and embedded systems are introduced, digital controllers became dominant. The main reason for this shift is that the control system developed in digital systems is a code snippet which can be modified easily. Therefore, this book aims to introduce digital control methods implemented on microcontrollers. We will form a general setup for this purpose as in Figure 1.2.
Schematic illustration of the general setup for a digital control system.
Figure 1.2 General setup for a digital control system.
There is a system to be controlled in Figure 1.2. The microcontroller is the medium digital control algorithms are implemented on. The generated control signal,
x left-bracket n right-bracket
, is fed to the system as input by an amplifier. Likewise, system output signal,
y left-bracket n right-bracket
, is fed to the microcontroller for further processing. We can also connect the microcontroller to PC to send or receive data. We will use the setup in Figure 1.2 for almost all control operations throughout the book.

1.3 About the Book

There are several good books on digital control. We can group them into two categories. The first category consists of books on theoretical concepts in discrete-time control systems (Xue et al. 2007; Dorf and Bishop 2010; Burns 2001; Chen 2006; Corke 2017; Franklin et al. 2006; Ghosh 2004; Gopal 2003; Golnaraghi and Kuo 2010; Mandal 2010; Moudgalya 2008; Goodwin et al. 2000; Tewari 2002; Ogata 1995; Phillips et al. 2015; Starr 2006; Wescott 2006). These are useful in understanding theoretical foundations of digital control. Some books in this category also provide MATLAB-based implementation (Xue et al. 2007; Dorf and Bishop 2010; Chen 2006; Corke 2017; Mandal 2010; Tewari 2002). The reader can consult these in case theory is not sufficient.
The second category consists of books on practical aspects and implementation details of digital control systems on microcontrollers. Unfortunately, there are few books in this category (Braunl 2006; Forrai 2013; Ibrahim 2006; Ledin 2004; Hristu-Varsakelis and Levine 2005). Besides, there is no book on digital control applications with the Python programming language. This book aims to fill these gaps. Hence, it handles theoretical digital control concepts by Python. Besides, we benefit from MATLAB in controller design and system identification steps. Then, digital control concepts are implemented and realized on a low-level microcontroller using MicroPython and C languages. Via this approach, we aim to bridge the gap between theory and practice.
The book is composed of 12 chapters. We devote Chapter 2 to introduce hardware to be used in the book. Details of software platforms to be use...

Table des matiĂšres