Main Content

BLDC HDL

Three-phase brushless DC motor with trapezoidal flux distribution

Since R2023b

Libraries:
Motor Control Blockset HDL Support / Electrical Systems / Motors

Description

The BLDC block implements a three-phase brushless DC (BLDC) motor with a trapezoidal back electromotive force that remains constant for a position range of 120 electrical degrees. The block uses the three-phase input voltages to regulate the individual phase currents, allowing control of the motor torque or speed.

Motor Construction

This figure shows a motor with a single pole pair.

The rotor magnetic field due to the permanent magnets creates a trapezoidal rate of change of flux with the motor angle.

For the axes convention, the phase-a aligns with d-axis when the motor angle θr is zero.

Three-Phase Sinusoidal Model Electrical System

Instead of the standard dq reference frame, the block uses d’q’ reference frame, which is defined by these transformation equations.

vd'=23((vaRiaEa)cosθe+(vbRibEb)cos(θe2π3)+(vcRicEc)cos(θe+2π3))

vq'=2π3((vaRiaEa)sinθe+(vbRibEb)sin(θe2π3)+(vcRicEc)sin(θe+2π3))

Ea=PωmψaθeEb=PωmψbθeEc=Pωmψcθe

ia=id'cosθeiq'sinθeib=id'cos(θe2π3)iq'sin(θe2π3)ic=id'cos(θe+2π3)iq'sin(θe+2π3)

The block implements these equations expressed in the dq and d’q’ reference frame of the BLDC motor. All quantities in the motor reference frame are with respect to the stator phase A.

ωe=Pωmddtid'=1Ldvd'+LqLdPωmiq'

ddtiq'=1Lqvq'LdLqPωmid'

Te=1.5P((LdLq)id'iq')+P(ψaθeia+ψbθeib+ψcθeic)

This table describes the variables used in these equations.

Lq , Ld

q- and d-axis inductances (H)

R

Resistance of the stator windings (ohm)

iq' , id'

q'- and d'-axis currents (A)

vq' , vd'

q'- and d'-axis voltages (V)

ωm

Angular mechanical velocity of the motor (rad/s)

ωe

Angular electrical velocity of the motor (rad/s)

P

Number of pole pairs

Te

Electromagnetic torque (Nm)

θe

Electrical angle (rad)

va , vb , vc

Stator phase A, B, and C voltages (V)

ia , ib , ic

Stator phase A, B, and C currents (A)

Ea , Eb , Ec

Back EMF of stator phases A, B, and C (V/m/s)

ψa , ψb , ψc

Total fluxes linking each stator winding (Wb)

Mechanical System

The motor angular velocity is given by:

ddtωm=1J(TeTfFωmTm)dθmdt=ωm

The equations use these variables.

J

Combined inertia of motor and load (kgm^2)

F

Combined viscous friction of motor and load (N·m/(rad/s))

θm

Motor mechanical angular position (rad)

Tm

Motor shaft torque (Nm)

Te

Electromagnetic torque (Nm)

Tf

Motor shaft static friction torque (Nm)

ωm

Angular mechanical velocity of the motor (rad/s)

Trapezoidal Rate of Change of Flux

The rotor magnetic field due to the permanent magnets create a trapezoidal rate of change of flux with the rotor angle. This figure shows the rate of change of flux for the three phases of a three-phase BLDC motor.

Ports

Input

expand all

Configuration signal for the BLDC HDL block containing the block configuration parameters. For more information about the constituent parameters, see the Config output port description in the BLDC Configuration block.

Data Types: single

Stator terminal voltages Va, Vb, and Vc, in V.

Data Types: single

Based on the mode of operation defined by the Port Configuration parameter available in the multiplexed Config input, the port supports one of these inputs:

  • Tm — Load torque on the motor shaft in N·m.

  • ωm — Angular velocity of the motor in rad/s.

Data Types: single

Bus signal that the block uses to reset the internal integrators.

Data Types: Boolean

Output

expand all

The bus signal contains these block calculations.

Signal DescriptionVariableUnits

IaStator

Stator phase current A

ia

A

IbStator

Stator phase current B

ib

A

IcStator

Stator phase current C

ic

A

IdSync

d' axis current

id'

A

IqSync

q' axis current

iq'

A

VdSync

d' axis voltage

vd'

V

VqSync

q' axis voltage

vq'

V

MtrSpd

Angular mechanical velocity of the motor

ωm

rad/s

MtrPos

Motor mechanical angular position

θm

rad

MtrTrq

Electromagnetic torque

Te

N·m

MtrHall

Hall sensor output

--

BackEMF

Back EMF generated in motor Ea , Eb , Ec

V/m/s

Phase currents ia , ib , and ic , in A of phases a, b, and c, respectively.

Motor torque, Tmtr, in N·m.

Angular speed of the motor, ωmtr, in rad/s.

Electrical position of the motor, θe, in rad.

Data Types: single

Parameters

expand all

The fixed time interval (in seconds) between consecutive instances of block execution. Alternatively, you can use -1 to inherit the sample time from the input signals.

Extended Capabilities

Version History

Introduced in R2023b