Infineon Designer powered by TinaCloud

Brushless DC (BLDC) Motor controlled by Sensorless Field-Oriented Control (FOC) using XMC1302 with MOSFET Inverter OptiMOS™ BSC0925ND and high-side and low-side Gate Driver IC IR2301

Open online SPICE simulator circuit link: motor_24V_BLDC_XMC1302_FOC_control_BSC0925ND_v1.tsc


Brushless DC (BLDC) Motor Maxon EC 32 controlled by Sensorless
Field-Oriented Control (FOC) using XMC1302 with MOSFET Inverter
OptiMOS™ BSC0925ND and high-side and low-side Gate Driver IC IR2301

This simulation example shows how to control the brushless DC motor (BLDC)
Maxon EC 32 by sensorless Field-oriented Control (FOC) algorithm using
XMC1302 32-bit ARM® Cortex®-M0 microcontroller with focus on low-cost
embedded control applications. Our XMC1300 family is best suited to integrate
all the control and analog interface functions required for sensorless Field-oriented
Control (FOC), brushless (BLDC), brushed DC and PMSM motors achieving highest
cost-performance ratios.

How to start
1) adapt the motor parameters to your needs
2) set your speed profile [rpm]
3) run the simulation and check the performance of the motor control algorithm
4) update the control algorithm source code using DAVE™ IDE
6) flash the updated code to the simulator

Inverter (B6 Bridge)

J=3.5u
B=1u
F=1u
D=1u
A=8
P=3
CL=3865u
CR=6.8
CC=0.001u
CM=0.5
Cb=49m
Ct=49m
r_snub=1k*2*pi*CL

How to program the microcontroller:
1. Build project in DAVE
2. Pack together the project folder into a .zip

5V: closed loop
0V: open loop

Closed-Loop/Open-Loop

Set speed profile [rpm]

.param J .... Moment of interia. Unit: kg*m^2
.param B ... Damping end eddy current losses. Unit: kg*m^2/(s*rad)
.param F ... Friction / drag losses. Unit: kg*m^2/s^2
.param D ... Magnetic cogging torque. Unit: kg m^2/s^2
.param A ... Number of north poles
.param P ... Number of phases
.param CL ... Winding inductance
.param CR ... Winding resistance
.param CC ... winding capacitance to ground
.param CM ... adjacent winding mutual coupling factor
.param Cb ...; BEMF constant. Unit: V*s/rad
.param Ct ... Torque constant. Unit: N*m/A
.param r_snub = 1k*2*pi*CL

Motor: Maxon EC 32 BLDC, 15 Watt

Debugging

Phase Current Sensing

Highside

Lowside

Code Examples DAVE™
Evaluation Board: KIT_XMC1X_AK_MOTOR_001
Product info: BSC0925ND
Product info: IR2301
3. Upload MCU code as .zip file
Product info: XMC1302-T038X0128 AB

Technical Assistance


Development IDE DAVE™

Other circuits