BLDC MOTER CONTROL WITH HALL SENSOR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

BLDC MOTER CONTROL WITH HALL SENSOR

713 次查看
hitsun
Contributor II

WE ARE FACING PROBLEM WITH BLDC MOTER CONTROL WITH HALL SENSOR ,

WHEN WE ARE RUNNING BLDC MOTER WITH HALL SENSOR WITH MULTILINK UNIVERSAL FX SERIES

IN DEBUG MODE MOTER IS RUNNING FINE WITH ACCELATOR FROM 0 TO 3.2V, AS SOON AS WE

REMOVE THE TOOL AND WHEN ACCELATOR IS ZEOR MOTER START,

PLEASE SUGGEST WHAT TO 

 

 

 

标签 (1)
5 回复数

496 次查看
hitsun
Contributor II

We observe when we connected debugger PTB4 IS HIGH SIDE DRIVE (PWM_BH)FTM2_CH4 IS WORKING GOOD. 

After reset the debbuger and power supply, and switch ON SUPPLY ,we found that When we touch fingure to the pin of PTB4  this become ON . WHY AND HOW TO RESOLVE PLEASE SUGGEST

0 项奖励
回复

480 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

For KE02, the PTB4 is multiplexed with NMI, I suppose that after reset, the chip enters NMI ISR.

Pls connect a pull-up resistor to the PTB4 pin.

Secondly, I suggest you clear the NMIE bit with the line:

SIM->SOPT&=~(1<<1);

xiangjun_rong_0-1722390125981.png

Pls have a try

BR

XiangJun Rong

 

0 项奖励
回复

663 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you clarify your question?

Do you mean that after the probe is disconnected, the motor will not start?

what is the the part number you are using?

If you toggle a LED, are you okay? do you check if the the chip has entered ISP mode?

 

BR

XiangJun Rong

0 项奖励
回复

571 次查看
hitsun
Contributor II

The motor is working fine when debugging with Multilink FX Programmer but when debug session terminated and board is reset by powering off and on, the motor do not start with ADC input (Accelerator).

 

NXP part No Used: MKE02Z64VLD4

 

Yes, The LED toggle is happening on disconnecting debugger but Hall Sensor PWM Capture mode not working (motor not turning) but if we manually change the position by hand a little, it starts rotating.

0 项奖励
回复

554 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Based on your remark "Yes, The LED toggle is happening on disconnecting debugger but Hall Sensor PWM Capture mode not working (motor not turning) but if we manually change the position by hand a little, it starts rotating.", the LED toggling means that the application code is running. After you change the position manually, the motor spinning  means that your application code has issue.

The basic architecture of BLDC control with Hall sensor is that the hall sensor signals trigger interrupt, in the ISR of hall sensor, read the 3 hall signal state, then determine the PWM on/off with the motor specified direction. because the motor does spin after start-up, ISR is not fired, so motor does not spin.

After the speed/direction is set, the code should read the 3 hall state in main loop, then switch PWM without ISR.

Pls check your code

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复