Not applicable
Jul 03, 2018
05:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2018
05:53 AM
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:
The HW signal connections:
PWM output pins:
I tried to start it before entering the while(1) loop without success:
Code:
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!
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:
The HW signal connections:
PWM output pins:
I tried to start it before entering the while(1) loop without success:
Code:
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!
- Tags:
- IFX
1 Reply
Jul 03, 2018
07:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2018
07:47 AM
Hi Adam,
The easiest way to start is to use the BLDC_SCALAR_HALL_XMC13_uCProbe example project and then configure MOTOR0_BLDC_SCALAR_BOARD to KIT_CUSTOM and the MOTOR0_BLDC_SCALAR_MOTOR to MOTOR_CUSTOM and then adjust the board and motor settings to match your kit and motor. The PWM_BC APP just does PWM and it will require a lot of user code to handle the Hall sensors and motor control.
The easiest way to start is to use the BLDC_SCALAR_HALL_XMC13_uCProbe example project and then configure MOTOR0_BLDC_SCALAR_BOARD to KIT_CUSTOM and the MOTOR0_BLDC_SCALAR_MOTOR to MOTOR_CUSTOM and then adjust the board and motor settings to match your kit and motor. The PWM_BC APP just does PWM and it will require a lot of user code to handle the Hall sensors and motor control.