Embedded Digital Control with Microcontrollers


Book Description

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.




Embedded Digital Control with Microcontrollers


Book Description

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.




Microcontroller Based Applied Digital Control


Book Description

Combines the theory and the practice of applied digital control This book presents the theory and application of microcontroller based automatic control systems. Microcontrollers are single-chip computers which can be used to control real-time systems. Low-cost, single chip and easy to program, they have traditionally been programmed using the assembly language of the target processor. Recent developments in this field mean that it is now possible to program these devices using high-level languages such as BASIC, PASCAL, or C. As a result, very complex control algorithms can be developed and implemented on the microcontrollers. Presenting a detailed treatment of how microcontrollers can be programmed and used in digital control applications, this book: * Introduces the basic principles of the theory of digital control systems. * Provides several working examples of real working mechanical, electrical and fluid systems. * Covers the implementation of control algorithms using microcontrollers. * Examines the advantages and disadvantages of various realization techniques. * Describes the use of MATLAB in the analysis and design of control systems. * Explains the sampling process, z-transforms, and the time response of discrete-time systems in detail. Practising engineers in industry involved with the design and implementation of computer control systems will find Microcontroller Based Applied Digital Control an invaluable resource. In addition, researchers and students in control engineering and electrical engineering will find this book an excellent research tool.




Embedded System Design with ARM Cortex-M Microcontrollers


Book Description

This textbook introduces basic and advanced embedded system topics through Arm Cortex M microcontrollers, covering programmable microcontroller usage starting from basic to advanced concepts using the STMicroelectronics Discovery development board. Designed for use in upper-level undergraduate and graduate courses on microcontrollers, microprocessor systems, and embedded systems, the book explores fundamental and advanced topics, real-time operating systems via FreeRTOS and Mbed OS, and then offers a solid grounding in digital signal processing, digital control, and digital image processing concepts — with emphasis placed on the usage of a microcontroller for these advanced topics. The book uses C language, “the” programming language for microcontrollers, C++ language, and MicroPython, which allows Python language usage on a microcontroller. Sample codes and course slides are available for readers and instructors, and a solutions manual is available to instructors. The book will also be an ideal reference for practicing engineers and electronics hobbyists who wish to become familiar with basic and advanced microcontroller concepts.




Embedded Microcontroller Interfacing


Book Description

Mixed-Signal Embedded Microcontrollers are commonly used in integrating analog components needed to control non-digital electronic systems. They are used in automatically controlled devices and products, such as automobile engine control systems, wireless remote controllers, office machines, home appliances, power tools, and toys. Microcontrollers make it economical to digitally control even more devices and processes by reducing the size and cost, compared to a design that uses a separate microprocessor, memory, and input/output devices. In many undergraduate and post-graduate courses, teaching of mixed-signal microcontrollers and their use for project work has become compulsory. Students face a lot of difficulties when they have to interface a microcontroller with the electronics they deal with. This book addresses some issues of interfacing the microcontrollers and describes some project implementations with the Silicon Lab C8051F020 mixed–signal microcontroller. The intended readers are college and university students specializing in electronics, computer systems engineering, electrical and electronics engineering; researchers involved with electronics based system, practitioners, technicians and in general anybody interested in microcontrollers based projects.




Digital System Design


Book Description

Today, embedded systems are widely deployed in just about every piece of machinery from toasters to spacecrafts, and embedded system designers face many challenges. They are asked to produce increasingly complex systems using the latest technologies, but these technologies are changing faster than ever. They are asked to produce better quality designs with a shorter time-to-market. They are asked to implement increasingly complex functionality but, more importantly, to satisfy numerous other constraints. To achieve these current goals, the designer must be aware of such design constraints and, more importantly, the factors that have a direct effect on them. One of the challenges facing embedded system designers is the selection of the optimum processor for the application in hand: single-purpose, general-purpose, or application specific. Microcontrollers are one member of the family of the application specific processors. Digital System Design concentrates on the use of a microcontroller as the embedded system's processor and how to use it in many embedded system applications. The book covers both the hardware and software aspects needed to design using microcontrollers and is ideal for undergraduate students and engineers that are working in the field of digital system design.




Embedded Computing and Mechatronics with the PIC32 Microcontroller


Book Description

For the first time in a single reference, this book provides the beginner with a coherent and logical introduction to the hardware and software of the PIC32, bringing together key material from the PIC32 Reference Manual, Data Sheets, XC32 C Compiler User's Guide, Assembler and Linker Guide, MIPS32 CPU manuals, and Harmony documentation. This book also trains you to use the Microchip documentation, allowing better life-long learning of the PIC32. The philosophy is to get you started quickly, but to emphasize fundamentals and to eliminate "magic steps" that prevent a deep understanding of how the software you write connects to the hardware. Applications focus on mechatronics: microcontroller-controlled electromechanical systems incorporating sensors and actuators. To support a learn-by-doing approach, you can follow the examples throughout the book using the sample code and your PIC32 development board. The exercises at the end of each chapter help you put your new skills to practice. Coverage includes: A practical introduction to the C programming language Getting up and running quickly with the PIC32 An exploration of the hardware architecture of the PIC32 and differences among PIC32 families Fundamentals of embedded computing with the PIC32, including the build process, time- and memory-efficient programming, and interrupts A peripheral reference, with extensive sample code covering digital input and output, counter/timers, PWM, analog input, input capture, watchdog timer, and communication by the parallel master port, SPI, I2C, CAN, USB, and UART An introduction to the Microchip Harmony programming framework Essential topics in mechatronics, including interfacing sensors to the PIC32, digital signal processing, theory of operation and control of brushed DC motors, motor sizing and gearing, and other actuators such as stepper motors, RC servos, and brushless DC motors For more information on the book, and to download free sample code, please visit http://www.nu32.org Extensive, freely downloadable sample code for the NU32 development board incorporating the PIC32MX795F512H microcontroller Free online instructional videos to support many of the chapters




Programming 32-bit Microcontrollers in C


Book Description

*Just months after the introduction of the new generation of 32-bit PIC microcontrollers, a Microchip insider and acclaimed author takes you by hand at the exploration of the PIC32*Includes handy checklists to help readers perform the most common programming and debugging tasksThe new 32-bit microcontrollers bring the promise of more speed and more performance while offering an unprecedented level of compatibility with existing 8 and 16-bit PIC microcontrollers. In sixteen engaging chapters, using a parallel track to his previous title dedicated to 16-bit programming, the author puts all these claims to test while offering a gradual introduction to the development and debugging of embedded control applications in C. Author Lucio Di Jasio, a PIC and embedded control expert, offers unique insight into the new 32-bit architecture while developing a number of projects of growing complexity. Experienced PIC users and newcomers to the field alike will benefit from the text's many thorough examples which demonstrate how to nimbly side-step common obstacles, solve real-world design problems efficiently and optimize code using the new PIC32 features and peripheral set. You will learn about:*basic timing and I/O operation*debugging methods with the MPLAB SIM *simulator and ICD tools*multitasking using the PIC32 interrupts*all the new hardware peripherals*how to control LCD displays*experimenting with the Explorer16 board and *the PIC32 Starter Kit*accessing mass-storage media*generating audio and video signals *and more!TABLE OF CONTENTSDay 1 And the adventure beginsDay 2 Walking in circlesDay 3 Message in a BottleDay 4 NUMB3RSDay 5 InterruptsDay 6 Memory Part 2 ExperimentingDay 7 RunningDay 8 Communication Day 9 LinksDay 10 Glass = BlissDay 11 It's an analog worldPart 3 ExpansionDay 12 Capturing User InputsDay 13 UTubeDay 14 Mass StorageDay 15 File I/ODay 16 Musica Maestro! - 32-bit microcontrollers are becoming the technology of choice for high performance embedded control applications including portable media players, cell phones, and GPS receivers. - Learn to use the C programming language for advanced embedded control designs and/or learn to migrate your applications from previous 8 and 16-bit architectures.




Introduction to Microcontroller Programming for Power Electronics Control Applications


Book Description

Microcontroller programming is not a trivial task. Indeed, it is necessary to set correctly the required peripherals by using programming languages like C/C++ or directly machine code. Nevertheless, MathWorks® developed a model-based workflow linked with an automatic code generation tool able to translate Simulink® schemes into executable files. This represents a rapid prototyping procedure, and it can be applied to many microcontroller boards available on the market. Among them, this introductory book focuses on the C2000 LaunchPadTM family from Texas InstrumentsTM to provide the reader basic programming strategies, implementation guidelines and hardware considerations for some power electronics-based control applications. Starting from simple examples such as turning on/off on-board LEDs, Analog-to-Digital conversion, waveform generation, or how a Pulse-Width-Modulation peripheral should be managed, the reader is guided through the settings of the specific MCU-related Simulink® blocks enabled for code translation. Then, the book proposes several control problems in terms of power management of RL and RLC loads (e.g., involving DC-DC converters) and closed-loop control of DC motors. The control schemes are investigated as well as the working principles of power converter topologies needed to drive the systems under investigation. Finally, a couple of exercises are proposed to check the reader’s understanding while presenting a processor-in-the loop (PIL) technique to either emulate the dynamics of complex systems or testing computational performance. Thus, this book is oriented to graduate students of electrical and automation and control engineering pursuing a curriculum in power electronics and drives, as well as to engineers and researchers who want to deepen their knowledge and acquire new competences in the design and implementations of control schemes aimed to the aforementioned application fields. Indeed, it is assumed that the reader is well acquainted with fundamentals of electrical machines and power electronics, as well as with continuous-time modeling strategies and linear control techniques. In addition, familiarity with sampled-data, discrete-time system analysis and embedded design topics is a plus. However, even if these competences are helpful, they are not essential, since this book provides some basic knowledge even to whom is approaching these topics for the first time. Key concepts are developed from scratch, including a brief review of control theory and modeling strategies for power electronic-based systems.




Designing Embedded Systems with 32-Bit PIC Microcontrollers and MikroC


Book Description

The new generation of 32-bit PIC microcontrollers can be used to solve the increasingly complex embedded system design challenges faced by engineers today. This book teaches the basics of 32-bit C programming, including an introduction to the PIC 32-bit C compiler. It includes a full description of the architecture of 32-bit PICs and their applications, along with coverage of the relevant development and debugging tools. Through a series of fully realized example projects, Dogan Ibrahim demonstrates how engineers can harness the power of this new technology to optimize their embedded designs. With this book you will learn: - The advantages of 32-bit PICs - The basics of 32-bit PIC programming - The detail of the architecture of 32-bit PICs - How to interpret the Microchip data sheets and draw out their key points - How to use the built-in peripheral interface devices, including SD cards, CAN and USB interfacing - How to use 32-bit debugging tools such as the ICD3 in-circuit debugger, mikroCD in-circuit debugger, and Real Ice emulator - Helps engineers to get up and running quickly with full coverage of architecture, programming and development tools - Logical, application-oriented structure, progressing through a project development cycle from basic operation to real-world applications - Includes practical working examples with block diagrams, circuit diagrams, flowcharts, full software listings an in-depth description of each operation