完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在尝试基于STM32-MCKIT硬件启动定制逆变器硬件。使用的FOC库在正交编码器模式下配置为2.0。在我的定制硬件中,我使用的是STM32F103的64引脚版本,而在STM32-MCKIT中则使用100引脚版本。我相应地调整了外设初始化。 我已经运行了连接到STM32-MCKIT的应用电机,以便在以后获得在自定义硬件上使用的正确调节参数。 我遇到的问题是,无论我如何连接电机相位或编码器,电机都会停转。我已经验证了PWM脉冲序列,IGBT等的数百次。它达到了一个状态,其中有两个相的正弦电流,但第三个保持关闭,或者施加了很短的PWM脉冲。 我怀疑电流感应电路,但我不确定。 您是否有任何提示可以帮助我确定问题所在? 谢谢。 以上来自于谷歌翻译 以下为原文 Hello all, I'm trying to start a custom inverter hardware, based on the STM32-MCKIT hardware. The FOC library used is 2.0 configured in quadrature encoder mode. In my custom hardware I'm using the 64 pin version of the STM32F103, whereas in the STM32-MCKIT the 100 pin version is used. I've adjusted the peripherals initialization accordingly. I already ran the application motor connected to the STM32-MCKIT, in order to get the right regulation parameters to be used on custom hardware later. The problem I have is that the motor is stalled, no matter how I connect motor phases or the encoder. I've verified hundred of times the PWM pulses sequence, IGBTs, etc. It reaches a condition where there is sinusoidal current fed to two of the phases, but the third one remains off, or with wery short PWM pulses applied to it. I suspect of the current sensing circuitry, but I'm unsure about it. Do you have any hints which could help me in determining where the problem lies? Thank you. |
|
相关推荐
1个回答
|
|
Ciao Antonio,
很多时候,开环模式可以帮助我们在进行全电流调节之前调试新硬件。 我怀疑在v2.0中没有实现,但从v3.0及更高版本开始你可以手动修改Drive parameters.h如下 #define OPEN_LOOP_FOC #define OPEN_LOOP_VOLTAGE_d / *&LT!;三相电压幅度 采用s16格式* / #define OPEN_LOOP_SPEED_RPM 100 / *!&lt;以rpm为单位的最终强制速度* / #define OPEN_LOOP_SPEED_RAMP_DURATION_MS 1000 / *!&lt; 0到最终速度斜坡持续时间* / 上面的xxxx值是在开环模式下对电机施加的总线电压(32768 = 100%)的百分比,因此我建议从较低的值开始并逐步增加它直到电机开始运行。 在这种模式下,电流不受调节,但无论如何都要进行测量,并且可以使用DAC跟踪它是否正常。此外,您可以验证逆变器是否正常工作。 始终鼓励使用最新发布的STM32 FOC SDK版本。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Antonio, many times the open loop mode give us an help to debug a new hardware before to go in full current regulation. I suspect that in the v2.0 is not implemented, but starting from the v3.0 and above you can enable it manually modifing the Drive parameters.h as follow #define OPEN_LOOP_FOC #define OPEN_LOOP_VOLTAGE_d /*!< Three Phase voltage amplitude in s16 format */ #define OPEN_LOOP_SPEED_RPM 100 /*!< Final forced speed in rpm */ #define OPEN_LOOP_SPEED_RAMP_DURATION_MS 1000 /*!< 0-to-Final speed ramp duration */ The xxxx value above is the percentage of bus voltage applied (32768 = 100%) to the motor in open-loop mode so I suggest to start with lower value and increase it step by step until motor start to run. In this modality the current is not regulated but is anyhow measured and can be tracked using DAC to see if it is ok. Moreover you can verify that the inverter is working. Usage of the last released version of the STM32 FOC SDK, is always encouraged. Ciao Gigi |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2634 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3609 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1357浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 10:37 , Processed in 1.137608 second(s), Total 77, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号