Course detail
Microcomputer Control of Electrical Drives
FEKT-MPC-MRPAcad. year: 2024/2025
The course discusses modern microprocessor circuits and their use in electric drives with feedback control. The STM32 microcontroller with ARM core is used in the laboratory exercises to demonstrate the subject. In the laboratory exercises, the students are introduced to the Nucleo development platform, on which they implement simple tasks to learn about the architecture and peripherals of microcontrollers for electric drives (DSP instructions, A/D converter, pulse-width modulation generator, timers, etc.) and also control loop algorithms are implemented on a real laboratory drive.
Language of instruction
Number of ECTS credits
Mode of study
Guarantor
Entry knowledge
Rules for evaluation and completion of the course
A condition for the award of credit is participation in at least 80% of the exercises and obtaining a non-zero number of points for each project. Laboratory exercise: 40b (activity, preparation of independent tasks). 60b Laboratory exercises are required. The possibility of making up missed exercises depends on individual arrangement.
Aims
- describe and explain the block diagram of an HW electric drive with a transistor converter,
- describe the forward and feedback loops in an electric drive for its control,
- explain the physical implementation requirements and describe the common types of electrical and mechanical transducers and their connection to a digital control system and the processing of their signals.
- Explain the basic differences between fixed and floating point microprocessor control.
- Explain strategies for representing quantities and parameters in fixed point.
- Describe the requirements of microprocessors for controlling electric drives in terms of peripherals.
- Describe the principles and functions of key microprocessor peripherals (PWM, ADC, Counters).
- Explain the mathematical descriptions of the functional blocks of control schemes (filters, controllers, approximation of functional dependencies, complex space vector transformation, DC and AC 3-phase PWM algorithms).
- implement the programming functions of the individual function blocks of control schemes for electric drives.
- make settings of peripherals, make measurements of analogue signals implement and set up DC drive control loops
Study aids
Prerequisites and corequisites
Basic literature
Klíma B., Stupka R.;Mikroprocesorová technika v elektrických pohonech; Elektronický text FEKT VUT v Brně (CS)
Knobloch J.; Mikropočítačové řízení elektrických pohonů - Návody pro laboratorní cvičení; Elektronická skripta (CS)
Knobloch J.; Mikroprocesorová technika - učební text (pracovní verze); Elektronická skripta (CS)
Recommended reading
STMicroelectronics; STM32F334xx advanced Arm®-based 32-bit MCUs; Reference manual (EN)
STMicroelectronics; STM32F334x8 Datasheet (EN)
Elearning
Classification of course in study plans
Type of course unit
Lecture
Teacher / Lecturer
Syllabus
Organizational information. Representation of numbers, number systems and conversions between them, logical functions, Boolean algebra. Demonstration of the software used. Repetition - C language. ARM processor architecture: memory organisation, buses, registers, program execution and data processing, subroutines, exceptions. STM32 microcontrollers, basic modules, principle of operation. Microcontroller peripherals: ports, timers, analogue converters, direct memory access. Incremental sensor, speed and position measurement, resolver. Pulse width modulation for transistor inverter control. Introduction to signal processing, MAC instruction, digital integrator and 1st order filter, derivation of differential equation. Approximation of functional dependencies: LUT, polynomial. BLDC motor control. AC drive control algorithms: three phase sinusoidal pulse width modulation.
Laboratory exercise
Teacher / Lecturer
Syllabus
Introduction, safety regulations, familiarization with the workplace. Configuring GPIO inputs/outputs using, debugger demonstration, reading and overwriting registers. Timers I: generating peridic interrupt - reload and output compare, treating button jams. Timers II: pulse width modulation (PWM), PWM center vs. edge align - two channels, complementary output, deadtime. Assignment and work on an independent project. A/D converter: reading data from AD converter, synchronization with TIM1 (PWM), using DMA. Digital integrator, 1st order low pass, triangle signal generator. PSD controller: component and closed form, floating and fixed point implementation, anti-windup. Assignment and work on an independent project. BLDC motor control, creation of commutation table, speed control. Three phase pulse width modulation, space vector modulation.
Elearning