# EmbedSim

A Python-based simulation and control-development environment for PMSM motor "Fachschale" projects, supporting pure-Python and FMU/Modelica motor models with Differential Flatness Control, plus a C implementation for real-time execution on Infineon AURIX/TriCore hardware.

EmbedSim provides a shared environment for developing and validating models and control algorithms for permanent magnet synchronous motors (PMSM), supporting both pure Python models and FMU-based models, including models built in Modelica and exported as FMUs.

Its control implementation is based on Differential Flatness Control, with the architecture designed so additional control algorithms can be added later. A C implementation targets Infineon AURIX/TriCore microcontrollers, giving a path from simulation in Python to real-time embedded execution on that hardware.

The project is under active development; implemented pieces currently include the PMSM motor development flow, Python-based simulation with both pure-Python and Modelica/FMU models, the flatness-based controller, and the AURIX/TriCore embedded implementation.

Website: https://github.com/vectorsim/embed_sim_project
