完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
case 3:
if (MotorA.FlagBEMF == 0) //未检测到过零事件 MotorA.FlagBEMF 过零事件标志 { if (MotorA.PWMticks >= 4)//消磁 { if ( BEMF()) //判断是否过零点 { MotorA.FlagSwitchStep = MotorA.PWMTicksPre >> 4; //延迟30电角度 PWMTicksPre记录的是上一步的时间 MotorA.FlagBEMF = 1; //检测到过零事件,不再检测 } } } else { if (MotorA.FlagSwitchStep == 0) //延迟时刻到 { BLDC_SwitchStep(); //换向 BEMF_Cnt++; //换向计数加1 } else { MotorA.FlagSwitchStep--; //延时时刻未到,自减 } } if (BEMF_Cnt >= 800000) //800000次换向之后,停止 { MotorA.State++; //状态加1 BEMF_Cnt = 0; //换向计数清零 } break; case 4: BLDC_Stop(); break; |
|
相关推荐
1个回答
|
|
The reason why the commutation happens more than 80000 times in three-step commutation of brushless DC motor for back electromotive force detection may depend on several factors, including:
1. The speed and load of the motor: Higher speeds and heavier loads may require more frequent commutation to maintain smooth operation and avoid torque ripple. 2. The accuracy of the back EMF detection circuit: The reliability and precision of the sensor or algorithm used to detect the zero-crossing of back EMF signals can affect the timing and frequency of commutation. 3. The design of the motor and driver: The number of motor poles and the driving algorithm (e.g. sinusoidal vs trapezoidal) can impact the commutation frequency, as well as the choice of PWM frequency and duty cycle. In the given code snippet, it seems that the commutation occurs when the back EMF zero-crossing is not detected for a certain period of time, and the motor is demagnetized if the PWM ticks exceed a threshold. However, without more context or information about the specific motor and circuit used, it is difficult to determine the exact reason for the high commutation frequency. |
|
|
|
只有小组成员才能发言,加入小组>>
3318 浏览 9 评论
2995 浏览 16 评论
3494 浏览 1 评论
9063 浏览 16 评论
4088 浏览 18 评论
1183浏览 3评论
609浏览 2评论
const uint16_t Tab[10]={0}; const uint16_t *p; p = Tab;//报错是怎么回事?
601浏览 2评论
用NUC131单片机UART3作为打印口,但printf没有输出东西是什么原因?
2336浏览 2评论
NUC980DK61YC启动随机性出现Err-DDR是为什么?
1897浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 01:20 , Processed in 1.237846 second(s), Total 81, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号