完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我正在尝试使用具有双转子角度反馈的FOC4.0库,即霍尔加编码器。我可以通过GUI设置此配置(由于工具中的错误,我必须手动编辑生成的头文件,创建一个错误的#define),但是在编译此设置时,我最终会遇到编译器错误。 深入研究代码,似乎库没有为此配置做好准备。对于双传感器模式,我知道我需要一个用于编码器的中断服务处理程序,以及一个用于霍尔传感器的中断服务处理程序。不幸的是,包含这些处理程序的模块只创建了一个可以为一个或另一个配置的处理程序,但是不处理它们。 所以我有一个问题,这个问题是否已知,也许已经解决了?如果没有,我需要一些帮助,建议必要的补充和修改。 亲切的问候 坦率 以上来自于谷歌翻译 以下为原文 Hi, I am trying to use the FOC4.0 library with dual rotor angle feedback, namely hall plus encoder. I can set this configuration via the GUI (I have to manually edit the generated header files because of a bug in the tool, creating a wrong #define), but when compiling this setting, I end up with compiler errors. Digging deeper into the code, it seems that the library is not prepared for this configuration. For dual sensor mode, I understand that I will need an interrupt service handler for the encoder, and a second one for the hall sensor. Unfortunately the module containing these handlers just creates one handler that can be configured for the one, or the other, but does not handle both of them. So I have the question, is this issue known, and perhaps already solved? If not, I would need some help suggesting the necessary additions and modifications. Kind Regards Frank |
|
相关推荐
2个回答
|
|
Ciao Frank
双感应配置不是我们通常测试的配置。 FW lib。它自己应该准备好支持它。但用户项目(中断等)可能不是,也是WB。在这一刻我无法深入研究,但我可以注意以后的分析。 作为一般建议,你是对的,有必要为每个传感器定义一个两个中断服务程序,以便与两个传感器一起工作,你可以手动覆盖生成的一个,作为WB生成的指导。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Frank The dual sensored configuration is not a configuration that we usually test. The FW lib. it self shall be ready to support it. But the user project (interrupt, etc..) maybe not and also the WB. I can't investigate deeper in this moment but I can take note for later analisys. As general suggestion, you are right, is necessary to define the two interrupt service routine one for each sensor in order to work with both sensor, you can do it manually overriding the generated one taking as guideline the one generated by the WB. Ciao Gigi |
|
|
|
嗨吉吉,
抱歉长时间的延迟,我正在忙着重新设计整个功率级,因为那些蹩脚的IRS2184驱动器会破坏功率晶体管。现在一切顺利,我可以再次专注于软件。 感谢您的反馈,我将复制您的想法,使用WB为两个传感器创建中断代码并手动合并结果。 我们的伺服应用有两个并联传感器的想法如下: - 大厅和编码器都是数字的,因此易于部署,界面简单,无需担心EMI问题 - 大厅有利于创业,但提供了不切实际的角度。我们在上电时需要瞬时(失速)扭矩,但可以(很快)接受增加的电流消耗。第二个缺点是在低转速或零转速下的低带宽速度反馈,导致强大的齿槽效应和/或需要降低速度控制环路增益。此外,许多电机霍尔系统具有高到非常高的机械公差。在额定负载下,在任一方向旋转标准伺服电机(H4型,1.5kW)时,我们观察到电流消耗差异高达20%。 - 需要首先参考编码器,但此后提供精确的角度和良好的速度反馈。因此,一旦看到索引通道脉冲,我们立即切换到此传感器。 - 所有提供绝对和精确转子角度信息的传感器集成起来都比较复杂:旋转变压器涉及低幅度模拟信号,集成数字解决方案成本较高。 问候 坦率 以上来自于谷歌翻译 以下为原文 Hi Gigi, sorry for the long delay, i was busy redesigning the entire power stage because of that crappy IRS2184 drivers destroying the power transistors. Now everything is smooth, and I can concentrate on software again. Thanks for your feedback, I will copy your idea to use WB to create the interrupt code for both sensors and manually merge the results. The idea behind having two sensors in parallel for our servo application is the following: - both hall and encoder are digital, so easy to deploy, simple interfaces, without having to fear EMI issues - hall is good for startup but gives unprecise angle. We need instantaneous (stall) torque at power-on, but can (shortly) accept increased current consumption. Second drawback is low bandwidth speed feedback at low or zero rpm, resulting in strong cogging and/or the need for reduced speed control loop gain. Furthermore, many motor hall systems have high to very high mechanical tolerances. We observed as much as 20% difference in current consumption when spinning a standard servo motor (H4 type, 1.5kW) in either direction under nominal load. - encoder needs to be referenced first but provides exact angle and good speed feedback thereafter. So we switch over to this sensor as soon as we see the index channel pulse. - all sensors that provide absolute and precise rotor angle information are more complex to integrate: Resolver involves low-amplitude analog signals, integrated digital solutions come at higher cost. Regards Frank |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2741 浏览 1 评论
3244 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1813 浏览 1 评论
3653 浏览 6 评论
6044 浏览 21 评论
1342浏览 4评论
203浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
356浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
446浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 03:05 , Processed in 1.390634 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号