Is there an ideal voltage source block that can change the voltage based on the command voltage value without using PWM in simscape electrical?

3 views (last 30 days)
I am simulating the control of a BLDC motor (PMSM) with simscape, but when I try to reproduce PWM control at the microcontroller level and control the voltage, the sampling time needs to be very small to achieve sufficient voltage resolution, which increases the calculation time.
(The sampling time of the motor control is 4.8e-5[s], whereas the sampling time of the simulation is 1.0e-7[s].)
Therefore, we would like to replace the PWM generator, gate driver, inverter, and stabilizing power supply that apply the command voltage to the BLDC with an ideal voltage source block that can vary the voltage based on the input command voltage.
Is there such an ideal voltage source block at simscape electrical?
Also, if you know of a method to speed up the computation of BLDC control that does not involve such an approach, please let me know.
We are considering using an equivalent simplified model, but would like to find a better alternative.
Thank you in advance.

Answers (1)

Umar
Umar on 4 Jul 2024
Hi Kohei,
You asked the following questions.
We would like to replace the PWM generator, gate driver, inverter, and stabilizing power supply that apply the command voltage to the BLDC with an ideal voltage source block that can vary the voltage based on the input command voltage.Is there such an ideal voltage source block at simscape electrical?
The answer is that there isn't a predefined ideal voltage source block that directly varies the voltage based on an input command voltage for BLDC control in Simscape electrical. However, you can create a custom ideal voltage source block using Simscape language or Simscape Foundation libraries to achieve the desired functionality.
You can create a custom ideal voltage source block by defining the behavior of the block using equations that relate the input command voltage to the output voltage. This approach allows you to tailor the block to your specific requirements and integrate it seamlessly into your BLDC control system.
Question number 2: Also, if you know of a method to speed up the computation of BLDC control that does not involve such an approach, please let me know.
Regarding alternative methods to speed up BLDC control computation without using an ideal voltage source block, one approach is to optimize the control algorithm or use hardware-specific optimizations. You can consider techniques such as field-oriented control (FOC), sensorless control, or implementing control algorithms on dedicated hardware like FPGAs for faster computation.
Another option is to simplify the BLDC model by reducing the complexity while maintaining accuracy. This can involve using lumped parameter models or simplifying the control algorithm to reduce computational load without compromising performance.
Wish you good luck with your project.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!