完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
所以,驱动步进的微妙问题——同时用你的SOC做其他事情……如I2C、ADC+DAC、滤波等。 我想驱动一些步进电机使用此驱动程序:HTTP://www. SmithJauS.COM/EasyDeDrVIE/PSOC 5或教程: 我在网上发现的问题是,你需要为你的步骤发送脉冲,并将它们计时。当然最简单的方法是使用延迟FCT…但这会杀死一切,或者导致一个急促的动作。 你有没有想过如何利用这些微小的资源?我正在寻找运行电机,也测量负载传感器(总共8)和8个数字信号在同一时间:车轮脉冲反馈以及6个其他数字传感器。我没有这个项目。目前我使用的是普通的直流电动机,具有PWM功能,但要切换到步进电机。 Accel/DeCelp控件也会有类似于这种方法的惊人之处:HTTP://www. AfSPayCE.COM/MIKEM/ARDIONI/AccelPistPur/我认为这是周围最开放的图书馆中最优秀和最精致的。 我的想法是使用计时器或武器?不知道这有多好,但它必须是一种方法,同时保持代码的其余部分运行。 谢谢你的帮助! 以上来自于百度翻译 以下为原文 Hello, So, the delicate issue of driving steppers - whilst doing something else with your SoC ... like, I2C, ADC+ DAC, filtering etc. I am looking to drive some stepper motors using this driver: http://www.schmalzhaus.com/EasyDriver/ and a PSoC 5 or course :) The problem I find on the web is that you need to send the pulses for your steps and time them. Of course the easyest way is using the Delay fct ... but that will kill everythig else or result in a jerky motion. Do you have any idea on how this might be done with minmum resources? I am looking to run the motor and also measure loads of sensors ( 8 in total) and 8 digital signals in the same time: wheel pulse feedback as well as 6 other digital sensors. I don't have a project for this. At the moment I am using normal DC motors with a PWM function but would like to switch to steppers. Accel / decel control would also be amazing to have - something similar to this approach: http://www.airspayce.com/mikem/arduino/AccelStepper/ - I think this is the nicest and most refined of the open libraries around. My thoughts were of using a Timer or ARMs SysTick? not sure how well that would work but it must be a way to do it whilst keeping the rest of the code runnng. Thanks for the help! |
|
相关推荐
32个回答
|
|
通过改变PWM周期YALUE和调整比较值,最佳地改变脉冲频率。
鲍勃 以上来自于百度翻译 以下为原文 The pulse frequency is best modified by changing the PWM period yalue and adjusting the compare value. Bob |
|
|
|
在设计中没有使用PWM,尽管这是一种替代方案。
前面指出,允许直流改性。所以使用时钟分频器API 最有意义的张贴设计。 我还有一个设计要使用,在UDB中使用固定的7位计数器, 使用比以前发布的设计核心的计时器更少的资源。 问候,Dana。 以上来自于百度翻译 以下为原文 No PWM is used in design posted, although that is an alternative, which as pointed out earlier, permits DC modification. So using clock divider api's make most sense for the posted design. I have one more design to post, using fixed 7 bit counter in UDB, which uses less resources than the timer that was core of earlier posted design. Regards, Dana. |
|
|
|
这里是计数版本,范围从3个脉冲到131个脉冲,使用较少的资源。
问候,Dana。 脉冲突发版本CONT7.7.PNG 16.3 K 以上来自于百度翻译 以下为原文 Here is count version, ranges from 3 pulses to 131 pulses, uses less resources. Regards, Dana. |
|
|
|
珠海易胜 发表于 2019-1-15 18:50 嗨,我开始工作的PSoC 5LP,我试图驱动步进电机。我刚刚了解到,为了得到更精确的步骤,我需要使用微步。我仍然不完全明白我需要做什么。有人能帮助我,并解释我需要如何进行。我找不到任何使用微步的相关代码示例。 以上来自于百度翻译 以下为原文 Hi, I started working with the psoc 5lp and I trying to drive a step motor. I just learned that in order to get more precise steps I need to use micro-steps. I still dont fully understand what I need to do. can someone help me, and explain how I need to proceed. I cant find any relevant code example that uses micro-steps |
|
|
|
dsdaiztt 发表于 2019-1-15 23:44 你好, 我现在正在开发一些PSOC 5硬件用于单极和双极步进电机使用全步和半步和变速。如果你还没有完成你的设计,我很乐意分享我的发现。 以上来自于百度翻译 以下为原文 Hi, I am at the moment developing some PSoC 5 hardware for unipolar and bipolar stepper motors using full and half stepping and variable speed. If you have not already completed your design I am happy to share my findings. |
|
|
|
你好,如果你能分享你的研究结果,我会很感激的。我正在使用PSoC4先锋套件和 CY8CKIT-037—PSOC 4电机控制评估套件,只需在CW和CW方向旋转一个步进电机。可用的示例代码是微步。我希望能有任何帮助来修改这一点。柏树AN56551似乎表明这是可能的。谢谢。 以上来自于百度翻译 以下为原文 Hi, I would appreciate if you would share your findings as mentioned in your post. I am using the PSoC4 Pioneer kit and the [size=1.818em]CY8CKIT-037 -PSoC 4 Motor Control Evaluation Kit to just rotate a stepper motor in CW and CCW directions. The example code available is for microstepping. I would appreciate any help to modify this to do only FULL STEP. The Cypress AN56551 seems to indicate that this is possible. Thanks. |
|
|
|
dsdaiztt 发表于 2019-1-15 23:44 在PSoC创建者4.2上有一个微步的示例代码。用PSOC4先锋套件和CT8CKIT-037 PSOC4电机控制评估套件为我工作 以上来自于百度翻译 以下为原文 There is a Microstepping example code available on PSoC Creator 4.2. Works for me with the PSoC4 pioneer kit and the CT8CkIT-037 PSoC4 Motor Control Evaluation Kit |
|
|
|
uuwufydsw 发表于 2019-1-16 00:04 您好! 这个菜单zip是一个更大的工作的一部分,步进示意图和硬件应该是独立的,如果剥离出来,这是它是如何开发的。 希望对你有所帮助。 从Windows 10发送邮件 BD714C3CD64 B4F37 92D7814A43F8468 D.PNG 148字节 Mulas.CyWrk.CaseV01.Zip 699.4 K 以上来自于百度翻译 以下为原文 Hi This Menus Zip is part of a larger work, the stepper schematic and hardware should be stand alone if stripped out as that is how it was first developed. Hope this is of some help. Sent from Mail for Windows 10
|
|
|
|
你好, 我也有同样的问题,我使用了你在Meun.Zip中发送的代码。我把设备换成了PSOC4 CY8C4245AXI-83。当我构建时,我得到以下错误, 我不会有任何显示界面,所以我删除了该表,我只使用步进硬件。我也删除了软启动。这是我现在的示意图, 我感激任何帮助解决这个问题的人。谢谢。 以上来自于百度翻译 以下为原文 Hi, I also have the same problem and i used your code you had sent in the menus.zip. I changed the device to PSoC4 CY8C4245AXI-483. When i build I'm getting the following errors, I will not be having any display interface so i deleted that sheet and I'm using only the stepper hardware. I deleted the softstart also. Here's my current schematic , I appreciate any help to solve this problem. Thanks. |
|
|
|
Purchase88 发表于 2019-1-16 00:32 你好, 我怀疑这个问题与PSoC 4设备中可编程逻辑的数量有关。 我很早就发现PSoC 5更适合于更大的固件设计。 您可以查看在创建者中生成的“RPT”,看看您已经用完了什么可用的PSoC 4硬件。 在第一种情况下,您可以尝试通过移除计数器“步骤”来改变设计,或者仅仅使用固定频率和移除PWM。PWM可能使用大量的UDB。 你甚至可以尝试使用来自柏树的PSoC 5美元10板,这是设计中的。 希望以上内容有所帮助。 康拉德曼宁 MrCurthSalpMy@ Gmail网站 “GUURRS来自VooDokes” 布雷特诺,雷金纳德-(1950) 以上来自于百度翻译 以下为原文 Hi, I suspect the problem is associated with the amount of programmable logic available in a PSoC 4 device. I found early on that PSoC 5 was much better suited to larger firmware designs. You might look at the “rpt” that is generated in Creator and see what of the avaiable PSoC 4 hardware you have run out of. In the first instance you might try to alter the design by removing the counter “Steps to Do” or using just using a fixed frequency and removing the PWM . PWM is probably using a lot of UDB. You might even try using the PSoC 5 $10 board from Cypress that this was design in. Hope some ofthe above helps. Conrad Mannering mrcrustyathome@gmail.com “The Gnurrs Come from the Voodvork Out” Bretnor, Reginald –(1950) |
|
|
|
Purchase88 发表于 2019-1-16 00:32 你好, 我改为一个PSoC 4套件芯片与一个UDB的4,如果我删除PWM组件,只是连接时钟源在一个降低的速度说1 kh,然后该项目将编译。 计数器和PWM都使用UDB资源,这样就不会对PSoC 4芯片中的任何东西留下太多的影响。 在PWM模块中,您可能会丢失计数器并仅通过中断来计数脉冲来启动和停止PWM,以产生可变的CROCK率。 希望这些能有所帮助。 康拉德曼宁 MrCurthSalpMy@ Gmail网站 “GUURRS来自VooDokes” 布雷特诺,雷金纳德-(1950) 以上来自于百度翻译 以下为原文 Hi, I changed to a PSoC 4 kit chip with a UDB of 4 and if I remove the PWM component and just connect the clock source at a reduced rate say 1 kH then the project will compile. The counter and the PWM both use UDB resources so that does not leave much for anything else in PSoc 4 chip. You might be able to lose the counter and just count pulses by the interrupt to start and stop the PWM as to generate a varible colock rate is best in PWM module. Hope some of this has helped. Conrad Mannering mrcrustyathome@gmail.com “The Gnurrs Come from the Voodvork Out” Bretnor, Reginald –(1950) |
|
|
|
dfgsdf 发表于 2019-1-16 00:58 非常感谢你。我会按你的建议去做。多谢 你的时间。 在星期一,2018年7月23日11:30时,USERY39 8867 765 & LT; 以上来自于百度翻译 以下为原文 Thank you very much. I will try what you have suggested. Many thanks for your time. On Mon, Jul 23, 2018 at 11:30 PM, user_398677465 < |
|
|
|
欢迎光临。 康拉德曼宁 MrCurthSalpMy@ Gmail网站 “GUURRS来自VooDokes” 布雷特诺,雷金纳德-(1950) 以上来自于百度翻译 以下为原文 Your welcome. Conrad Mannering mrcrustyathome@gmail.com “The Gnurrs Come from the Voodvork Out” Bretnor, Reginald –(1950) |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1510 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 16:12 , Processed in 1.040616 second(s), Total 70, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号