完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在设计一个JR 8717的驱动程序,让它控制一个手臂,但是它不会移动。我使用了一个PWM组件,其时钟为1.28千赫,8位分辨率,UDB,一个输出,周期为255,CMP值为22。IDO错了什么?周期是否为20,CMP值为2?
以上来自于百度翻译 以下为原文 I'm trying to design the drivers for a JR 8717 to make it control an ARM, but it doesn't move. I used a PWM component with a clock at 1.28 khz, 8-bit resolution, UDB, one ouput, with a period of 255 and a cmp value of 22. What did I do wrong? Should the period be 20 with a cmp value of 2? |
|
相关推荐
7个回答
|
|
|
嗨,Myuugen,
你能告诉我们JR817的脉宽和脉冲周期吗? 对于您指定的当前配置,PWM输出将为5.187MSs,频率为5.02Hz。 如果将周期设置为20,将值与2进行比较,则频率为64 Hz,脉冲宽度为1562.5微秒。 正确的值可以根据伺服的要求来选择。 以上来自于百度翻译 以下为原文 Hi Myuugen, Can you let us know about the pulse width and pulse cycle requirement of JR8717? For the present configuration you have specified, the PWM output will be a pulse of 17.187ms with a frequency of 5.02Hz. If you set the period to 20 and compare value to 2, then the frequency is 64Hz and pulse width is 1562.5 micro sec. The right values can be chosen depending upon the requirement of your servo. |
|
|
|
|
|
我试图联系JR,他们说没有任何信息在他们的网站上是专有的,而不是向公众公布。
也就是说,我去了一些论坛,我发现了这个信息。 脉冲宽度:33~1520μs 标准信号中心+/-0.4MS(1.1-1.9MS) 我打算明天得到一个范围并测量伺服系统。 还有,我用的方法是正确控制芯片的伺服系统吗? 以上来自于百度翻译 以下为原文 I tried to contact JR and they said that any information not published on their website is proprietary and not given out to the public. That being said, I went to some forums and I've found this information
Standard Signal centre +/- 0.4ms (1.1-1.9ms) I'm going to try to get a scope and measure the servo tomorrow. Also, is the method i'm using correct to control the servos with the chip? |
|
|
|
|
|
我注意到你可以从周期和COMP值计算脉冲宽度和循环速率。
对不起,如果我问了很多愚蠢的问题,但我从来没有工作过W/PSoC之前,没有在电气工程有很强的背景。 以上来自于百度翻译 以下为原文 I noticed that you were able calculate the pulse width and cycle rate from the period and comp value. What is the calculation for that? I'm sorry if I'm asking a lot of dumb questions, but I've never worked w/ PSOC before and I don't have a very strong background in electrical engineering. |
|
|
|
|
|
使用范围,我发现周期约为20毫秒,中心为1.5毫秒,低1毫秒,高2毫秒。
在PWM组件中,我不使用1 MHz时钟、20000周期和1000的CMP。 一切都建立正确,我有它附加到一个数字输出引脚,然而,针似乎没有得到更多。 我使用ACY8C55 PSoC 5,我将PIN连接到:P0〔2〕(73)、P0〔1〕72、P0〔0〕71、P4〔0〕69、P12〔3〕68、P12〔2〕2。 以上来自于百度翻译 以下为原文 Using a scope i found the period to be approximately 20 ms, with a center of 1.5 ms, a low of 1 ms, and a high of 2 ms. In the PWM component, I'm not using a 1 MHz clock, period of 20000, and a cmp of 1000. Everything builds correctly, and I have it attached to a digital out pin, however, the pin does not seem to be getting any more. I'm using a CY8C55 PSoC 5 and i'm connecting my pins to: P0[2] (73), P0[1] 72, P0[0] 71, P4[0] 69, P12[3] 68, and P12[2] 67. |
|
|
|
|
|
那第三行应该在最后读取:净任何电压。
以上来自于百度翻译 以下为原文 that third line should read at the end: does net any voltage |
|
|
|
|
|
嗨,Myuugen,
我已经创建了一个使用PWM组件的项目。 1)时钟频率为1MHz。因此,时钟周期为1微秒。 2)将周期设置为19999以获得20MS的时间周期(1个额外周期被卷起至零)。PWM信号产生的分辨率为1微秒。 3)现在比较值可以从333变化到1520,以获得一个33 3微秒到1520微秒的脉冲。API pWMWRead EngPoMPARE()用于改变比较值。 示波器检查波形。快照如下所示: 信号周期为20ms,脉冲为333微秒。 信号周期为20ms,脉冲为1520微秒。 332微秒的脉冲。 1500微秒的脉冲。 找到附加的项目。 邮编 330.2 K 以上来自于百度翻译 以下为原文 Hi Myuugen, I have created a project which uses a PWM component. 1) The clock frequency is 1MHz. Hence the clock period is 1 micro second. 2) The period is set to 19,999 to get a time period of 20ms (1 extra cycle is taken to roll over to zero). The resolution of PWM signal generated is 1 micro sec. 3) Now the Compare value can be varied from 333 to 1520 to get a pulse of 333micro sec to 1520 micro sec. The API PWM_WriteCompare ( ) is used to vary the compare value. The waveform was checked on oscilloscope. The snapshots are as shown below: Signal with a Period of 20ms and pulse of 333 micro sec. Signal with a Period of 20ms and Pulse of 1520 micro sec. The pulse of 332 micro sec. The pulse of 1500 micro sec. Find the project attached.
|
|
|
|
|
|
快照附在下面的文件夹中。
它显示持续时间为332微秒和1500微秒的脉冲。 拉链 9.8 K 以上来自于百度翻译 以下为原文 The snapshot is attached in the folder below. It shows pulses of duration 332 micro sec and 1500 micro sec.
|
|
|
|
|
只有小组成员才能发言,加入小组>>
788个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7404 浏览 0 评论
2491 浏览 1 评论
2183 浏览 1 评论
4046 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2093 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7884浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6454浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
760浏览 2评论
735浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8307浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-15 12:38 , Processed in 0.933705 second(s), Total 87, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
9492