Mechatronics 2

Mechatronics 2 is an advanced-level course focusing on embedded control systems and industrial automation.

Course Description:

Mechatronics 2 is an advanced-level course focusing on embedded control systems and industrial automation. Students will gain hands-on experience in programming STM32 microcontrollers for real-time applications and working with Siemens PLC systems for automation tasks. The course bridges low-level hardware control and high-level industrial automation strategies, preparing students for real-world mechatronic system integration.

Key Topics:

Part 1: STM32 Microcontroller Programming

  • Overview of ARM Cortex-M architecture (focus on STM32F series)
  • Peripheral interfacing (GPIO, ADC, PWM, UART, I2C, SPI)
  • Interrupt handling and timer management
  • Real-time programming using FreeRTOS (optional)
  • Sensor and actuator interfacing (motors, encoders, temperature, etc.)
  • Communication protocols (serial, CAN, Modbus)
  • Embedded system design workflow using STM32CubeMX and Keil/uVision or STM32CubeIDE

Part 2: Siemens PLC and Industrial Automation

  • Basics of PLC architecture and programming logic
  • Siemens S7-1200/S7-1500 hardware structure and communication setup
  • Ladder logic programming and Function Block Diagrams (FBD)
  • HMI interface integration (WinCC, TIA Portal)
  • Industrial sensors and actuators integration
  • Analog/digital signal processing in PLCs
  • PID control implementation in Siemens PLCs
  • Industrial communication protocols (Profibus, Profinet)

Primary Reference Books:

For STM32:

  1. “Mastering STM32” by Carmine Noviello (Comprehensive, hands-on guide)
  2. STMicroelectronics Documentation (Datasheets, reference manuals for STM32F series)
  3. Online tools: STM32CubeIDE

For Siemens PLC:

  1. “Automating with SIMATIC S7-1200” by Hans Berger (Highly recommended for Siemens systems)
  2. “Programmable Logic Controllers” by Frank D. Petruzella (General PLC theory + ladder logic)
  3. Siemens TIA Portal Tutorials (Official and third-party resources for hands-on learning)