完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在这个论坛中发现只有更多相同的请求,没有答案。今天最常用的霍尔传感器用于电机控制。 X-CUBE-SPN8中提供的6步BLDC代码示例仅为无传感器。 X-CUBE-SPN8包中的驱动程序文件专门用于霍尔传感控制(STM32f4xx_hal_tim_ex.c和stm32f4xx_hal_tim_ex.h),但未找到使用示例。请有人指出任何一个例子。我将继续发布这个,直到有人知道会回复。
提前致谢。 #sensor#motor-control #sensored#x-cube-spn8#x-nucleo-ihm08m1 #hall #bldc 以上来自于谷歌翻译 以下为原文 I found only more requests of the same in this forum and no answers. Using Hall sensors for motor control most typical today. 6-step BLDC code example provided in X-CUBE-SPN8 is sensorless only. There are driver files in X-CUBE-SPN8 package specifically made for Hall sensored control (stm32f4xx_hal_tim_ex.c and stm32f4xx_hal_tim_ex.h) but no examples of usage found. Please somebody point to any example. I will keep posting this until somebody who knows will reply. Thanks in advance. #sensor #motor-control #sensored #x-cube-spn8 #x-nucleo-ihm08m1 #hall #bldc |
|
相关推荐
19个回答
|
|
我不得不提到制造X-CUBE-SPN8的X-NUCLEO-IHM08M1扩展板确实有霍尔传感器的连接器。所以一切都是为霍尔感应控制设计的,但没有代码示例。
我知道购买此板的许多用户(如果不是绝大多数)将使用霍尔传感器,请帮助所有这些。 以上来自于谷歌翻译 以下为原文 I had to mention that the X-NUCLEO-IHM08M1 expansion board for which X-CUBE-SPN8 was made, does have connectors for Hall sensors. So everything was designed ready for Hall sensored control but no examples of code. I know that many users (if not vast majority) who buy this board will be using Hall sensors, please help all of those. |
|
|
|
有没有人使用STM32进行感应BLDC电机控制?世界上有人使用X-CUBE-SPN8进行霍尔感应电机控制吗?我是这个基本应用程序的第一个用户吗?
以上来自于谷歌翻译 以下为原文 Is there anybody who used STM32 for sensored BLDC motor control? Anybody in the world used X-CUBE-SPN8 for Hall sensored motor control? Am I the first user of it for such basic application ? |
|
|
|
好的,但是没有人点击过“我也有这个问题”。
建议您联系当地的ST办公室并与FAE联系 以上来自于谷歌翻译 以下为原文 Ok, but nobody has clicked 'I also have this question' on yours. Suggest you contact your local ST office and connect with an FAE |
|
|
|
我问过了
Poli.Enrico to来看看。 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 I have asked Poli.Enrico ‌ to have a look. Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
你好,
X-NUCLEO-IHM08M1嵌入了霍尔/编码器连接器,但6Step控制(SPN8)内部没有代码可用。 支持霍尔传感器代码用于FOC控制,如果改变控制策略,我们已经为BLDC / PMSM电机提供了解决方案。 最好的祝福, Giuseppe Scuderi 以上来自于谷歌翻译 以下为原文 Hello, the X-NUCLEO-IHM08M1 embeds the Hall/Encoder connector but no code is available inside 6Step control (SPN8). The hall sensor code is supported instead for FOC control, in case of change of control strategy we have the solution already available for BLDC/PMSM motor. Best regards, Giuseppe Scuderi |
|
|
|
嗨朱塞佩,
我也在为我的BLDC寻找一个灵敏的解决方案。我遇到过这个 http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32100.html ,似乎已迁移到http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-立方体mcsdk.html V5.0.2。是否有视频或文档显示如何设置?谢谢, 阿卜杜勒 以上来自于谷歌翻译 以下为原文 Hi Giuseppe, I am also looking for a sensored solution for my BLDC. I came across this http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32100.html , which seems to be migrated to the http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mcsdk.html V5.0.2. Is there a video or a document showing how to set it up?Thanks, Abdul |
|
|
|
朱塞佩,请澄清一下:你是什么意思
“ 支持霍尔传感器代码用于FOC控制 磁场定向控制是无传感器的......也是 '我们已经为BLDC / PMSM电机提供了解决方案' 你的意思是你有霍尔感应电机控制的解决方案/代码示例吗?我们在哪里可以找到它? 问候 弗拉德 以上来自于谷歌翻译 以下为原文 Giuseppe, please clarify: what do you mean by ' The hall sensor code is supported instead for FOC control field-oriented control is sensorless... also what is 'we have the solution already available for BLDC/PMSM motor' do you mean you have a solution/code example for Hall sensored motor control ? Where can we find it? Regards Vlad |
|
|
|
嗨阿卜杜勒,
如果你正在使用 /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fmcus-embedded-software%2Fstm32-embedded-software%2Fstm32-standard-peripheral -library膨胀%2Fstsw-stm32100.html 版本,UM1052文档包含有关它的正确信息,例如对于霍尔传感器,请查看“8.3.3使用霍尔效应传感器时设置系统”。考虑所计算的参数必须在“电机”部分的ST Workbench工具中填写(参见附图),并选择“驱动器管理 - >速度位置......”部分中的设置。最佳问候, Giuseppe Scuderi 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hi Abdul, in case you are using the /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fmcus-embedded-software%2Fstm32-embedded-software%2Fstm32-standard-peripheral-library-expansion%2Fstsw-stm32100.html version, the UM1052 document contains the right info about it, for instance for Hall sensor take a look at ''8.3.3 Setting up the system when using Hall-effect sensors''. Consider that the parameters calculated must be filled in the ST Workbench tool (see image attached) in the section ''motor'' and select the settings in ''drive management->speed position....'' section.Best regards, Giuseppe Scuderi Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
FOC库支持无传感器和传感器电机,您可以使用ST Workbench工具为霍尔或编码器模式配置IHM08M1。
请查看用户手册 UM1052了解更多信息。该 /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fmcus-embedded-software%2Fstm32-embedded-software%2Fstm32-standard-peripheral -library膨胀%2Fstsw-stm32100.html 版本或更高版本包含源代码。 最好的祝福, 朱塞佩 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 The FOC library supports both sensorless and sensored motor, you can use the ST Workbench tool to configure the IHM08M1 for Hall or Encoder mode. Please take a look at the user manual UM1052 for further info. The /external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fcontent%2Fst_com%2Fen%2Fproducts%2Fembedded-software%2Fmcus-embedded-software%2Fstm32-embedded-software%2Fstm32-standard-peripheral-library-expansion%2Fstsw-stm32100.html version or later contains the source code. Best regards, Giuseppe Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
感谢Giuseppe提供此信息。事实上,它具有霍尔传感器实现电机控制的一切。之前我看过这个软件但我没有检查出来,因为STM的这个笔记我搜索了这个新的库,我找到了
http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mcsdk.html 正如阿卜杜勒所发现的那样。看起来STM已经完成了向新库的迁移。这意味着应在STM32-CUBE-MCSDK中提供霍尔传感器示例和库。是这样吗?我们可以将这个库与我们的Nucleo-F401RE + X-NUCLEO-IHM08M1一起使用吗?为什么STM为那些没有Hall示例的电路板提供限制性封装X-CUBE-SPN8?真诚的 弗拉基米尔 以上来自于谷歌翻译 以下为原文 Thank you Giuseppe for this info. Indeed it has everything for the Hall sensored implementation of motor control. I saw this software before but I did not check it out because of this note from STM I searched for this new library and I found http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mcsdk.html just as Abdul found. Looks like this migration to a new library was already done by STM. This means that Hall sensor examples and library should be available in STM32-CUBE-MCSDK. Is it so? Can we use this library with our Nucleo-F401RE + X-NUCLEO-IHM08M1 ? Why does STM provide limiting package X-CUBE-SPN8 for those boards without Hall example?Sincerely Vladimir |
|
|
|
你好朱塞佩,
谢谢您的回复。我已查看过该文档,似乎是为此编写的 http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32100.html ,据我所知,这是不可用的。我只有免费版的http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-立方体mcsdk.html 。完整版似乎被锁定在NDA之后。如果我弄错了,请告诉我。 问候, 阿卜杜勒 以上来自于谷歌翻译 以下为原文 Hello Giuseppe, Thank you for your reply. I have looked into that document, it seems that it's written for the http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32100.html , which is not available as far as I am aware. I only have the free version of the http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mcsdk.html . The full version seems to be locked behind an NDA.Please let me know if I got this wrong. Regards, Abdul |
|
|
|
嘿Vlad,
这就是我认为的原因。似乎这些代码样本是为高速BLDC准备的,就像你在无人机中找到的那样(超过2000转) 。在那个速度范围内,BEMF足以根据我的理解感知转子位置。不过,我有F401RE和IHM08M1,我打算用MCSDK试一试。我不知道你的应用,但我的是用于移动机器人(250W,300rpm,40V)的高扭矩低速BLDC轮毂电机,这就是为什么我需要传感器解决方案。如果您愿意,我可以根据我的进度更新您。 Motor Profiler不支持F401RE,因此我订购了F302R8。我将使用电机配置文件来表征我的电机。直到我得到新的电路板,我才会使用任意值来试图让它工作。 问候, 阿卜杜勒 以上来自于谷歌翻译 以下为原文 Hey Vlad, This what I think the reason is. It seems like these code samples are prepared for high speed BLDC like the ones you find in UAVs (more than 2000 rpm) . In that speed range, the BEMF is enough to sense the rotor position from what I understand.Anyways, I have the F401RE and IHM08M1, and I plan to try it out with the MCSDK. I do not know about your application, but mine is for high-torque low-speed BLDC hub motor for a mobile robot (250W, 300rpm, 40V), which why I want the sensored solution. I can update you with my progress if you would like. The Motor Profiler doesn't support the F401RE, so I ordered the F302R8. I am going to use the Motor Profile to characterize my motor. until I get the new board, I will just use arbitrary values just to try to get it working. Regards, Abdul |
|
|
|
|
|
|
|
谢谢Edgar - 使用STM32CubeMX和从霍尔驱动中断产生相位切换的好例子。我认为可以通过使用STM的X-CUBE-SPN8软件来完成同样的工作,并且仅用霍尔传感器切换事件来驱动相切换中断来替换零交叉BEMF事件。这样做可以为我的研究提供更方便的代码,用于微调同步。我正在开发一种新型电机,我需要一个方便的库来微调开关和占空比。
对我来说更有希望的是X-CUBE-MCSDK如果代码是干净的并且像宣传的那样工作。我和Abdul Fourteia将走这条路。 再次感谢 - 你已经完成的工作和良好的演示! 弗拉德。 以上来自于谷歌翻译 以下为原文 Thank you Edgar - good example of using STM32CubeMX and generation of the phase switching from the Hall-driven interrupts. I think the same could be done by using X-CUBE-SPN8 software from STM and only replace zero crossing BEMF event with Hall sensor switching event driving the phase switching interrupts. Doing this way allows more convenient code for fine tuning of synchronization which I need for my research. I am developing a new kind of motor and I need a convenient library for the fine tuning of switching and also of duty cycles. Even more promising to me would be X-CUBE-MCSDK if the code is clean and works as advertised. I and Abdul Fourteia will go this path. Thanks again - neat work you've done and good presentation too! Vlad. |
|
|
|
嗨阿卜杜勒,我们走的是同一条道路。这个X-CUBE-MCSDK最近发布,这就是为什么我们之前没有看到它。对于新的MC开发来说,它看起来是一个完美的游乐场,在图书馆和示例中也可以使用霍尔传感器框架。我对霍尔传感器的需求来自另一端:我正在开发一种新型电机,它只能通过带有位置传感器(如霍尔或光学元件)的闭环控制,并为它开发一种全新的控制。我需要从X-CUBE库示例开始,才能熟悉它的构建块。我决定首先尝试使用带有X-NUCLEO-IHM8M1的Nucleo-F303RE的X-CUBE-MCSDK,然后迁移到Nucleo-F401RE(与您类似)并将其用作我的MC代码的起始基础。如果需要,我们可以开始一个新线程来交换有关此设置开发的信息。
诚挚 弗拉德 以上来自于谷歌翻译 以下为原文 Hi Abdul, we are on the same path. This X-CUBE-MCSDK was released recently that's why we did not see it before. It looks as a perfect playground for a new MC development with Hall sensor framework available in library and examples as well. My need of the Hall sensor comes from the other end: I am developing a new motor which can be controlled only through a closed loop with position sensor such as Hall or Optical and develop a completely new control for it. I need to start with X-CUBE library examples only to get a good familiarity with it's building blocks. I decided to try X-CUBE-MCSDK with Nucleo-F303RE with X-NUCLEO-IHM8M1 first and then migrate to Nucleo-F401RE (similar to you) and use it as starting base for my MC code. We can start a new thread to exchange info on this setup development if you want. Sincerely Vlad |
|
|
|
嘿Vlad,
我花了一些时间在MCSDK上,并设法让一台小型BLDC电机运行。我可能会在稍后提出我的进展视频。我目前遇到了电机探测器的问题。它似乎不适用于低速和高扭矩特性的电机。我认为我们应该创建另一个线程来讨论我们与MCSDK的进展。 问候, 阿卜杜勒 以上来自于谷歌翻译 以下为原文 Hey Vlad, I have spent some time on the MCSDK, and managed to get a small BLDC motor running. I might put up a video of my progress later. I am currently running into issues with the motor profiler. It doesn't seem to work with motors with low speed and high torque characteristics. I think we should create another thread to discuss our progress with the MCSDK. Regards, Abdul |
|
|
|
弗拉德,
你也可以在新版本的库中找到霍尔传感器的源代码。您可以将F401与IHM08M1配合使用,但只需使用支持的NUCLEO板识别电机参数(使用MP工具)。 如果更新X-CUBE-SPN8,将首先包含霍尔传感器部件! 最好的祝福, 朱塞佩 以上来自于谷歌翻译 以下为原文 Hi Vlad, you can find the source code for hall sensor also in the new version of the library for sure. You can use the F401 with IHM08M1 but you need to identify the motor params (with MP tool) only with supported NUCLEO boards. If the X-CUBE-SPN8 will be updated, the hall sensor part will be included for first ! Best Regards, Giuseppe |
|
|
|
感恩教堂
朱塞佩确认我已采取的路径。在使用带有IHM08M1板的Nucleo-F303RE识别电机参数后,我将使用我的Nucleo-F401RE。我更愿意购买更强大的NUCLEO-F446RE电路板,如X-CUBE-MCSDK v.5.03的发行说明所示,但电机分析仪不显示该电路板。 以上来自于谷歌翻译 以下为原文 Grazie Giuseppe for confirmation of the path I have taken. I'll use my Nucleo-F401RE after identifying motor parameters using Nucleo-F303RE with IHM08M1 board. I'd prefer to buy more powerful NUCLEO-F446RE board shown as supported in the release note of X-CUBE-MCSDK v.5.03 but motor profiler does not show this board. |
|
|
|
嗨Abdul,我终于有时间研究STM电机控制,我正在运行MCSDK Profiler和Workbench,Nucleo-F303RE和IHM08M1板运行我的慢速1 KW电机。即使电机允许3000最大转速,但我撒谎到Profiler并最终得到最大1300 RPM的轮廓。使用Workbench配置项目,编译,上传和运行'play'非常流畅。到目前为止只有无传感器模式才能使用Profiler。我将在另一个帖子中报告更多内容。
注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Hi Abdul, I finally got time to work on the STM motor control and I am running MCSDK Profiler and Workbench with Nucleo-F303RE and IHM08M1 board running my slow 1 KW motor. Even though the motor allows 3000 max RPM but I lied to Profiler and ended up with profile of 1300 RPM max. Configured project, compiled, uploaded and run 'play' with Workbench quite smooth. So far only sensorless mode to be able to use a Profiler. I will report more in another thread. Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2724 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1334浏览 4评论
209浏览 3评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 02:22 , Processed in 1.588913 second(s), Total 116, Slave 99 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号