/motor_sim_algo

BLDC and PMSM Motor Simulation

Primary LanguageC++MIT LicenseMIT

BLDC and PMSM simulator

This interactive simulator is designed to visualize the inner workings of BLDC and PMSM control algorithms and provide a test bed for prototyping of more advanced control algorithms. Parameters like rotor inertia, bus voltage, PWM timer frequency, and many more can be adjusted in real time to see their effects on the control policy.

image

Starting Up

Precompiled binaries: On 64 bit Windows, download the precompiled binaries zip. After extracting, run simulator.exe.

Compiling from source: Install the bazel build system and clone this project. Run bazel run -c opt simulator:simulator

Quick Start to FOC Simulation

Step 1. In the Commutation Control Mode tab, enable FOC. step1

Step 2. Then set a desired torque. step2

Step 3. Adjust the step multiplier to change the speed of simulation. step3

Now the rotor should start spinning up. rotor_viz