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

Compartir libro
  1. English
  2. ePUB (apto para móviles)
  3. Disponible en iOS y Android
eBook - ePub

Embedded Digital Control with Microcontrollers

Implementation with C and Python

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

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Embedded Digital Control with Microcontrollers un PDF/ePUB en línea?
Sí, puedes acceder a Embedded Digital Control with Microcontrollers de Cem Unsalan, Duygun E. Barkana, H. Deniz Gurhan en formato PDF o ePUB, así como a otros libros populares de Ciencias biológicas y Teoría de sistemas. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2021
ISBN
9781119576556
Edición
1

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...

Índice