完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
社区成员,
最近,我得到了一个机会,我的手在一个简单的伺服电机(TS- 53型),它必须与PSoC 3接口。在论坛上分享的想法。 该接口要求PSoC给出PWM信号,其中高脉冲在1ms和2ms之间变化。1毫秒对应于0度和2ms,对应于最大旋转可能(在我的情况下接近150度)。 两个脉冲之间的死时间为40ms。 CY8CKIT-1001上的机载电位计用于改变轴的位置。 这个项目和这篇文章连在一起。如果有人在使用类似的伺服系统,可能会很方便。 伺服电机 678.7 K 以上来自于百度翻译 以下为原文 Hi Fellow Community Members, Recently I got a chance to lay my hands on a simple servo motor (of type TS-53), which had to be interfaced with PSoC 3. Thought of sharing it on the forum. This interface required the PSoC to give a PWM signal with the high pulse varying between 1ms and 2ms. 1 ms corresponding to 0 degrees and 2ms corresponding to max rotation possible (close to 150 degrees in my case). The dead time between the two pulses was 40ms. The on-board potentiometer available on CY8CKIT-001 was used to vary the position of the shaft. The project is attached along with this post. It may come handy if someone is working on similar servos.
|
|
相关推荐
1 条评论
7个回答
|
|
这是一个很好的短项目!
我趁机换了一些东西,看看它。 如果任何人有改进的想法,发表你的建议或者展示你的代码! 鲍勃 伺服电机1.CyWrk.CaseV01.Zip 674 K 以上来自于百度翻译 以下为原文 That is a pretty nice and short project! I took the opportunity to change some things, have a look into it. And if anybody has an idea for improvements post your suggestions or show up your code! Bob
|
|
|
|
我还没有查看你提供的数据表,但是GRAUPNER的伺服系统建议运行。
1(不是0)!)到2毫秒,建议的恢复速率为20ms。一些伺服系统假定在50ms时连接AD失去进入保持或编程位置。 鲍勃 以上来自于百度翻译 以下为原文 I din't yet look into your supplied datasheets but GRAUPNER's servos are suggested to run with 1 (not 0!!) to 2 ms and a suggested repitition rate of 20ms. Some servos assume at 50ms a loss of connection ad go into a hold or a programmed position. Bob |
|
|
|
在我看来,键入1到2毫秒。
问候,Dana。 以上来自于百度翻译 以下为原文 Typo on my part, concur its 1 - 2 mS. Regards, Dana. |
|
|
|
谢谢你,鲍伯,为重构和使代码可读。
我最初假设“死区时间”必须在40ms内保持恒定,因此也用于更新周期。 显然,死亡时间必须是最优的。如果控制信号馈电太快,伺服将嗡嗡声和抖动。当死区时间设置在10ms以下时,会出现这种情况。另一方面,如果重复信号太慢(超过70ms),伺服将在信号之间关闭,其位置将不保持恒定。 以上来自于百度翻译 以下为原文 Thank you Bob, for restructuring and making the code readable. I had initially assumed that the "dead time" had to be held constant at 40ms, hence used to update the period too. Apparently the dead time has to be optimal. If the control signal is fed too quickly, the servo will buzz and jitter. I found it happen when the dead time was set to less than 10ms. On the other hand, if the repeat signal is too slow (more than 70ms), the servo will shut off between signals and its position will not remain constant. |
|
|
|
谢谢分享资源Dana!
这是一个非常有用的信息。 当做, 高塔姆 以上来自于百度翻译 以下为原文 Thanks for sharing the resource Dana! That's a very useful piece of info. Regards, Gautam |
|
|
|
你好,
我是一名学生,是PSoC的新生。我现在的项目要求我用C++编写一个代码,用PWM(PSOC5)驱动伺服电机。 我不仅对PSoC是新的,而且对C++也是新的。 任何帮助都会得到认可。 非常感谢,希望能听到你们中的一些人的回音。 Nabil Ahmed。 以上来自于百度翻译 以下为原文 Hello, I am a student and new to PSoC. My current project requires me to write a code in C++ to drive a servo motor using PWM (PSoC5). I am not only new to PSoC but also new to C++. Any help would be appriciated. Thanks alot and hope to hear back from some of you. Nabil Ahmed. |
|
|
|
用C++编写的PSoC代码有点复杂,使用简单的C更容易。从CyPress网站创建者3下载,并从ADC开始,寻找PWM示例,并把它们与一个自写闭环一起,你就完成了!
鲍勃 以上来自于百度翻译 以下为原文 Writing code in C++ for PSoCs is a bit complicated, using simple C is much more easier. Download from the Cypress website Creator 3.0 and start with ADC-example, look for PWM-example and put them both together with a self-written closed-loop and you are done! Bob |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2075 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1766 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
517浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
371浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
413浏览 2评论
360浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
868浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 17:03 , Processed in 1.471553 second(s), Total 103, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号