完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!事实上,我正在控制一个伺服电机,我读到的是20赫兹的频率,占空比是1,1.5和2毫微米,使用PWM16:
参数PWM16时钟=1000000周期=999占空比=999毫秒-gt;0°1499 ->1.5毫秒-gt;90°1999 ->2ms>180°,但伺服不能正常工作,不能进入正确位置并保持振动,我不明白为什么,所以如果有人帮助的话。我真的很可鄙,如果有人检查我的代码,我就把它放在上面。 以上来自于百度翻译 以下为原文 Hi everybody!! actually i´m working to control a servo motor i read that the frecuency is 20 hz and the duty cycle is 1,1.5 and 2 ms i´m using pwm16: parameter pwm16 clock = 1,000,000 period= 49,999 duty cycle = 999-> 1ms->0° 1499-> 1.5ms -> 90° 1999 -> 2ms -> 180° but the servo doesn´t work correctly don´t go to the correctly position and keeps vibrating and i don´t understand why,so if someone help me i´m really be glateful i put my code if someone can check it |
|
相关推荐
7个回答
|
|
我有一些材料可以寄给你,但是它的尺寸是13m,所以我需要。
你的电子邮件地址。我的名字是DaaaNoKeWalthGmail 问候,Dana。 以上来自于百度翻译 以下为原文 I have some ref material I can send you, but it is 13M in size, so I need your email address. Mine is danaaknight@gmail.com Regards, Dana. |
|
|
|
|
|
|
|
你的计算似乎是正确的,所以让我们多看一点,然后在这里发布你的项目,让我们都可以看一看。
要做到这一点,在设计师5.3(我希望你已经更新到,如果不是,现在就做) 清洁工程 文件& gt;归档项目(最小) 然后在这里上传归档文件。 快乐拉链 鲍勃 以上来自于百度翻译 以下为原文 Your calculations seem to be correct, so let us see a bit more and post your project here, so that we all can have a look at. To do so, in designer 5.3 ( I hope you already updated to, if not, do it right now) do Build -> Clean Current Project File -> Archieve Project (minimal) and then upload the resulting archive here. Happy Zipping Bob |
|
|
|
今天上午转交材料。
问候,Dana。 以上来自于百度翻译 以下为原文 Ref material forwarded this morning. Regards, Dana. |
|
|
|
似乎很多伺服系统在20Ms周期工作。不确定如果是这样的话,看看。
以上来自于百度翻译 以下为原文 It seems that a lot of servos works at 20mS period. Not sure if the is the case, have a look. |
|
|
|
你好鲍勃
这里是我的代码,它是简单的,首先我想直接控制伺服,然后做一个应用,我的伺服是一个MG95,一个朋友用一个ARDUNO证明,并直接工作,所以我决定控制PSoC。 伺服电机 18.4 K 以上来自于百度翻译 以下为原文 Hi bob here is my code it is simple beacause first i want control corectly the servo and then do an aplication my servo is a mg995, a friend prove with an arduino and worked corectly so i decided control in psoc.
|
|
|
|
你能试着把时间缩短到19999,给伺服系统提供20Ms。
另一个问题可能是电源:PSOC电源和伺服应该是不同的来源,只有通过GND连接。 鲍勃 以上来自于百度翻译 以下为原文 Can you try to reduce the period to 19999 giving the required 20ms for the servo. Another issue might be the power supply: the PSoC supply and the servo should be different sources only connected by GND. Bob |
|
|
|
只有小组成员才能发言,加入小组>>
715个成员聚集在这个小组
加入小组1896 浏览 1 评论
1651 浏览 1 评论
3401 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1567 浏览 6 评论
1379 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
180浏览 2评论
179浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
318浏览 2评论
344浏览 1评论
58浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-20 05:03 , Processed in 0.639387 second(s), Total 71, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号