完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好。
我正在做一个项目。我必须在伺服电机上使用旋转变压器。但我找不到任何解析器的示例代码。 谁能帮我? 谢谢。 以上来自于谷歌翻译 以下为原文 Hello everyone. I'm working on a project. I must use a resolver for our servo motor. But I could not find any sample code for resolver. Can anyone help me? Thank you. |
|
相关推荐
7个回答
|
|
抱歉,您有关于“resolver”的其他语言
你想用50Hz(20ms)PWM驱动伺服? 或者你想读取脉冲宽度,PWM输入? 以上来自于谷歌翻译 以下为原文 Sorry do you have a different word for "resolver" You want to drive a servo with a 50Hz (20ms) PWM? OR you want to read a pulse width, PWM Input? |
|
|
|
你好克莱夫
谢谢你的回答。 首先,我解释一下解析器; A是一种用于测量旋转度的旋转电子变压器。 它就像一个编码器。 我想在STM32F4 Discovery中使用Resolver测量位置。但我找不到任何这方面的例子。 我想要的任何样本代码或其他代码。 谢谢。 以上来自于谷歌翻译 以下为原文 Hello Clive Thank your for your answer. First, I explain the resolver; A is a type of rotary electrical transformer used for measuring degrees of rotation. It's like an encoder. I want to measure the position with using a Resolver in STM32F4 Discovery. But I could not find any example for this. Any sample codes or another, I want. Thank you. |
|
|
|
我想你需要用正弦波驱动它(运算放大器通过DAC),然后用两个ADC拉出信号波形,然后确定相位或其他什么。
对不起,我可能会使用编码器。也许有简单的IC可用于与旋转变压器连接并提供读数。 ADI公司,TI和飞思卡尔似乎都有芯片级解决方案,可能会查看数据表和方框图,看看您是否可以使用STM32资源实现等效功能。 以上来自于谷歌翻译 以下为原文 I'd imagine you'd need to drive it with a sine-wave (opamp via DAC), and then use two ADC to pull the signal wave forms, and then make a determination about the phase or whatever. Sorry, I'd probably use an encoder. Perhaps there are simple IC available for interfacing with a resolver and providing an reading. Analog Devices, TI and Freescale seem to have chip level solutions, perhaps review datasheets and block diagrams to see if you could implement equivalent functionality using STM32 resources. |
|
|
|
您不太可能找到现成的代码示例。但其原理很简单。 90度旋转变压器表示幅度为旋转角度的sin和cos。您可以在维基百科中阅读更多细节:
https://en.wikipedia.org/wiki/Resolver_(electrical) 以上来自于谷歌翻译 以下为原文 You are unlikely to find a ready-made code sample. But its principle very simple. 90 degree resolver represent amplitudes as sin and cos of the rotation angle. You can read more detail in Wikipedia: https://en.wikipedia.org/wiki/Resolver_(electrical) |
|
|
|
|
|
|
|
“但它的原理非常简单。”
是的,但仅限于原则上。 如果两个信号是正交的,则数学很简单。 否则(由于寄生电容或电阻),它变得棘手,特别是如果你想计算到迭代,以最小化内存占用。 以上来自于谷歌翻译 以下为原文 "But its principle very simple. " yes, but only in principle. if the two signals are orthogonal, the math is simple. otherwise (due to parasitic capacitance or resistance for example), it becomes tricky, particularly if you want to calculation to iterative, to minimize memory footprint. |
|
|
|
是的,在线圈谐振频率附近的频率处,必须考虑它们的寄生电容和电阻,以获得最佳结果。然而,在我看来,电机轴不会旋转得那么快。
以上来自于谷歌翻译 以下为原文 Yes, at frequencies near the resonance frequencies of coils, their parasitic capacitances and resistances must be taken into account, in order to obtain the best results. However, it seems to me that the shafts of motors do not rotate so fast. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1445 浏览 1 评论
2113 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1510 浏览 1 评论
2822 浏览 6 评论
5238 浏览 21 评论
362浏览 4评论
538浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
278浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
606浏览 3评论
511浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 10:37 , Processed in 0.751000 second(s), Total 50, Slave 44 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号