完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我是新的PIC的世界(我已经知道PIC几十年以来,我的计算机科学学位,但从来没有使用过)。我目前参与了一个项目,我们希望使用一个步进电机与自己定制步进驱动单元,都是从同一制造商获得。我一直在使用一个ARDUIO MEGA向步进电机驱动器发送步进和方向指令,使用一个名为AccelStestPop.h的头文件,它被设计成允许将这样的指令发送给一个驱动程序,而不是必须考虑建立自己的H桥电机驱动器。要知道的是,是否有可能使用PIC发送相同的指令?我基本上增加了步进器,以一个特定的速度(它不改变)运行一段时间(例如,5分钟),当按下一个瞬时按钮或者从一个RF接收器/解码器输出接收到一个数字高指令,或者直到按钮被按下或者RF数字低再次被接收。我需要使用外观来使用,是否有任何特定的指令集你可以指点我?我很欣赏在C中编程是可能的,但它通常更喜欢在汇编代码中编程。上一次我在汇编中编码(8086)是大约18年前,我被鼓励去看PIC,而不是在我们计划制造的每台机器上放置一个ARDUINO,因为PIC的坚固性、可靠性以及它们的廉价性。
以上来自于百度翻译 以下为原文 Hi all, I am new to the world of PIC (I've been aware of PIC for decades since my Computer Science degree, but have never used one). I am currently involved in a project where we wish to use a Stepper Motor with its own bespoke stepper drive unit which are both obtained from the same manufacturer. I have been using an Arduino Mega to send step and direction instructions to the stepper motor drive, utilising a header file called AccelStepper.h, which is designed to allow sending such instructions to a driver rather than having to think about building your own H-bridge motor drives. What I need to know is, is it possible to use a PIC to send the same instructions? I basically ramp up the stepper, run it at a specific speed (which does not change) for a period of time (say, 5 minutes) when a momentary button is pressed or a digital High command is received from an RF receiver/decoder output, or until the button is pressed or RF digital low is received again. Which PIC would I need to use look in to using and are there any particular instruction sets you could point me out to? I appreciate it is possible to program in C, but it's often preferred to program in assembly code. Last time I coded in assembly (8086) it was about 18 years ago. I was encouraged to look in to PIC rather than putting an arduino in each machine we are planning to manufacturer due to the ruggedness of the PIC, the reliability of them, and the inexpensiveness of them. |
|
相关推荐
4个回答
|
|
平均来说,我会使用PIC24,基本上任何人-除非你是短的价格和/或大小。大多数图片将处理步进电机,只有当你还想微步,你可以寻找那些“增强PWM”的。
以上来自于百度翻译 以下为原文 On average, I'd use a PIC24, basically anyone - unless you're short on price and/or size. Most PICs will handle stepper motors, and only if you also want microstepping you may look for those "enhanced-PWM" ones |
|
|
|
你可以在Microchip网站上查看这个步进电机设计中心页面。对PIC的使用、一些应用注意事项、开发工具等提出了一些建议,可以作为研究的出发点。
以上来自于百度翻译 以下为原文 You can look at this Stepper motor design center page at microchip website. There are some advises on which PIC to use, some application notes, development tools etc. It can be a starting point. |
|
|
|
由于您没有添加任何限制性的特性,许多PIC16F1XXX和PIC18芯片将是很好的。以及PIC24S。
以上来自于百度翻译 以下为原文 Since you did not add any limiting features, Many PIC16F1xxx and PIC18 chips would be fine. As well as PIC24s. |
|
|
|
谢谢大家。很可能,如果我去PIC路线,我会找一个有经验的程序员为我编写代码,并且设计一个特定的电路,就像我在一个电子公司工作过的那样,在PIC中使用大量的东西。我只是想试着去了解它,去了解正在发生的事情。
以上来自于百度翻译 以下为原文 Thank you all so far. In all likelihood, if I do go PIC route, I'd get an experienced programmer to code it for me and design any particular circuitry as I work above an electronics firm who use PIC in loads of stuff. I was just considering trying to learn it enough to understand what's going on. |
|
|
|
只有小组成员才能发言,加入小组>>
5209 浏览 9 评论
2017 浏览 8 评论
1943 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3189 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2244 浏览 5 评论
759浏览 1评论
647浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
565浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
658浏览 0评论
557浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-10 12:00 , Processed in 1.184858 second(s), Total 53, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号