This PWs introduces students to the fundamental applications of the C++ programming language in the field of embedded systems. During these practical sessions, students will use the C++ programming language to develop and simulate different embedded-system applications. The activities focus on essential programming concepts, including variables, data types, conditional statements, loops, functions, arrays, classes, and object-oriented programming principles.

The programs will initially be developed and tested using CodeBlocks as a C++ programming environment. This approach allows students to understand and validate the programming logic before applying similar concepts to real embedded hardware and microcontrollers.

A typical laboratory session (TP) in Digital Control Systems bridges theoretical concepts with practical deployment through computer simulation—using MATLAB/Simulink or Scilab/Xcos—or via microcontrollers like STM32 or Arduino. The lab experiment generally follows a structured progression: first, students model and identify a continuous plant (such as a DC motor) in open loop; second, they discretize the plant using a Zero-Order Hold (ZOH) models in the z-domain to observe how varying the sampling period (\(T_{e}\)) degrades stability; and finally, they synthesize a discrete controller, such as a digital PID or RST controller. To implement the controller, students convert continuous transfer functions into discrete difference equations using discretization techniques like Tustin's (bilinear) method or Euler approximations, turning the control algorithm into executable code (e.g., u(k) = u(k-1) + q₀ e(k) + q₁ e(k-1) + q₂ e(k-2)). Key practical insights from these labs include managing real-world constraints such as actuator saturation, implementing anti-windup algorithms to prevent integrator windup, and properly applying rules of thumb to choose a sampling rate that is 6 to 10 times faster than the desired closed-loop bandwidth.
 

Digital Control Systems utilize digital computers, microcontrollers, or DSPs to process data and execute control laws in real time, replacing traditional analog circuitry. In these systems, a continuous-time sensor signal is captured at fixed intervals and transformed via an Analog-to-Digital Converter (ADC). The processor compares this data against a reference value to compute a discrete control action, which a Digital-to-Analog Converter (DAC) paired with a Zero-Order Hold (ZOH) reconstructs into a steady physical signal to drive an actuator. Mathematically analyzed using difference equations and the Z-transform instead of standard differential equations, digital systems offer unmatched flexibility because tuning or changing parameters requires simple software updates rather than physical hardware redesigns. However, designers must carefully select the sampling period according to the Nyquist-Shannon theorem to prevent aliasing, and ensure that all closed-loop system poles remain strictly within the unit circle of the complex z-plane to guarantee stability.

This course provides a comprehensive introduction to C++ programming for embedded systems.
It focuses on applying modern C++ concepts to resource-constrained environments such as microcontrollers and real-time systems.

Students will learn how to design, implement, and maintain efficient, safe, and scalable embedded software using object-oriented programming, memory management techniques, and system modeling.

The course emphasizes the transition from procedural C programming to Embedded C++, including compilation, debugging, UML-based design, and best practices for embedded applications.

This module aims to provide students with the fundamental theoretical knowledge and practical skills required to understand, analyze, and apply advanced signal processing techniques, with a particular focus on random signals and digital filters.

Students will explore the statistical properties of random signals, including their mean, variance, autocorrelation, and power spectral density. They will also study the principles of digital filtering, with particular emphasis on Finite Impulse Response (FIR) and Infinite Impulse Response (IIR) filters, including their design, frequency response, stability, and practical implementation.