完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好。我玩eval board + steval来设置我的步进电机参数。它完美无瑕。现在我正在编写Arduino代码以获得相同的控件。寄存器映射已复制电机参数。 SPI例程正常并经过验证。
与Arduino一样奇怪:我可以将电机“移动”与steval,读/写寄存器(它们与使用Steval和相关软件相同)相同,但电机运行SLOWER。 始终比设定的速度值大约80%。 有了Steval,好的。使用Arduino,一点点啸叫声和80%的速度......速度寄存器(与所有其他寄存器一样)是相同的。 使用Steval,电机档位以2500step / s的速度运行,使用相同的控制,但使用Arduino时,它的档位为900step / s。 它设定为1/128微步,Ke已经确定了。令我更困惑的是寄存器的内容是相同的! 有任何想法吗? 寄存器写入顺序是否可能改变寄存器的行为? 有人引擎反转Steval打开时执行的设置吗? 先谢谢你 亚历山德罗 #arduino#l6470#steval-pcc009v2 以上来自于谷歌翻译 以下为原文 Hi. I played with the eval board+steval to set my step motor parameters. It works flawlessly. Now I'm writing Arduino code to get the same control. Motor parameters have been copied by the Register Map. SPI routines are ok and verified. Strange thing with Arduino: I can move the motor ''almost the same'' as with the steval, read/write registers (they are the same as using Steval and the associated software) but the motor runs SLOWER. Always around 80% than the set speed value. With Steval, OK. With Arduino, a little whistling noise and 80% the speed... The speed register (as all other registers) is the same. Using Steval the motor stalls running around 2500step/s, using the same controls but with Arduino it stalls at 900step/s. It is set for 1/128 microsteps, Ke has been determined sperimentally. What puzzles me more is the fact that the registers' content is the same! Any ideas? Is it possible that the register writing order changes the register's behaviour? Has somebody engine-reversed the settings performed by Steval when it is turned on? Thank you in advance Alessandro #arduino #l6470 #steval-pcc009v2 |
|
相关推荐
1个回答
|
|
|
找到了!
我关闭JP1以从主连接器获得VDD电源。 主SPI连接器的引脚4用于提供EXT_VDD。 Arduino提供+ 3.3V和+ 5V:+ 5V时电机运行缓慢而嘈杂,+ 3.3V其运动完美。 亚历克斯 以上来自于谷歌翻译 以下为原文 Found! I closed JP1 to get VDD supply from master connector. Pin 4 of master SPI connector is to supply EXT_VDD. Arduino provides both +3.3V and +5V: with +5V the motor is slow and noisy, with +3.3V its movement is PERFECT. Alex |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 08:59 , Processed in 0.627152 second(s), Total 42, Slave 35 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3536