步进电机控制 [英] Stepper motor control

查看:76
本文介绍了步进电机控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是嵌入式领域的新手,并且是第一次使用步进电机。我正在将Nucleo F767ZI板用于我的项目,并面临与步进和伺服电机连接的问题。我正在使用ARM mbed编译器。

任何人都可以分享步进和伺服电机的简单代码。



我是什么尝试过:



我尝试使用ARM mbed网站上厨师提供的代码。

I am new to the embedded field and using stepper motor for first time. I am using Nucleo F767ZI board for my project and facing issues with interfacing it stepper and servos motors. I am using the ARM mbed compiler.
Can anyone please share the simple code for stepper and servo motor.

What I have tried:

I tried using the codes given in the cook on ARM mbed website.

推荐答案

我们无法为您提供具体的代码:您的电路板与步进电机之间的硬件接口完全不为我们所知。您需要首先查看它与处理器的物理连接方式,以及软件如何处理连接。然后查看步进器,看看你要对该连接做些什么,使它在一个方向或另一个方向上步进。这应该告诉你要开始寻找什么 - 但目前你要问的是我怎么去上班?没有我们知道你住在哪里,你的工作地点,你是否可以开车,你能负担得起火车,你需要多长时间去那里,或者即使你有工作!



首先获取信息 - 连接它的硬件人员可以在这里帮助你 - 然后开始寻找相关信息。我还建议您从 STMicroelectronics 开始[ ^ ]网站,看看你能找到或到达那里的支持(他们可能是PITA一家公司,但是当我多年前使用它时,他们的支持并不差)因为我认为他们是你正在尝试的评估板。
We can't give you specific code: the hardware interface between your board and the stepper motor is completely unknown to us. You need to start by looking at how it is physically connected to the processor, and how that connection is handled by software. Then look at the stepper, and see what you have to do to that connection to make it "step" in one direction or the other. That should tell you what to start looking for - but at the moment all you are asking is "How do I get to work?" without us knowing where you live, where your work is, if you can drive, if you can afford a train, how long you have to get there, or even if you have a job!

Start by getting information together - it's possible the hardware person who interfaced it can help you here - and then start looking for info on that. I'd also recommend that you start with the STMicroelectronics[^] website and see what support you can find or get there (they may have been a PITA as a company, but their support wasn't bad when I used it many years ago) since I think they make the evaluation board you are trying.


这篇关于步进电机控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆