How to setup a Brushless Motor Project in DAVE4 ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,
I try to get a brushless motor with hall sensors to work.
I use the EVAL-M1-05F804 Evaluation Board and the EVAL-M1-1302 Evaluation Board.
Connected to these is a 24V brushless motor with hall sensors.
The motor is not moving at all.

What apps do I need to get this to work?
Currently I have these:
2868.attach

The HW signal connections:
2869.attach

PWM output pins:
2870.attach

I tried to start it before entering the while(1) loop without success:
PWM_BC_SetDirection((PWM_BC_t*)&PWM_BC_0,PWM_BC_CLOCKWISE);
PWM_BC_SetPWMFrequency((PWM_BC_t*)&PWM_BC_0,10000);
PWM_BC_Start((PWM_BC_t*)&PWM_BC_0);

But I don't think this is neccessary because it is already set in the PWM_BC Configuration dialogs.
As far as I can see there is no "inverter enable" signal on the driver board, so this is probably not the problem.

What am I missing?
I can't find any example how to do this in DAVE4.
Is there any step-by-step guide howto setup such an application?
I tried the "BLDC_SCALAR_HALL_XMC13" example, but can't get it to work and it does not use the DAVE APPs so I don't know what the APPs do on their own and what code I have to write manually.

Any advice is welcome!

Best regards
Tom
0 Likes
1 Reply
Eric1
Employee
Employee
Hello Tom,

I recommend to use the example Code:
BLDC_SCALAR_HALL_XMC44

It has also a documentation:
BLDC_SCALAR_HALL_XMC44_UserGuide.chm

Unfortunately we don't support the BLDC_SCALAR APP anymore.

The BC APP was a lower APP for the BLDC_SCALAR APP.
It is only able to produce the PWM pattern. But the control is missing.

Best Regards
Eric
0 Likes