如何用arduino控制电机? [英] How can I control a motor with arduino ?

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

问题描述

大家好,

我一直在考虑逻辑。请帮忙。我有两个Nanotec LS59线性执行器(电机),它有自己的电机控制器。我有Arduino UNO R3。起初我在visual studio的帮助下制作了一个GUI,用于为运行的电机行为创建一个xml文件。现在我需要帮助!!一方面我有一个Gui,通过xml文件给马达输入。如何通过arduino控制两台电机?我怎样才能编程链接我的GUI,电机控制器的arduino。如果我得到任何示例代码也会有帮助。



谢谢



我是什么尝试过:



i尝试使用arduino IDE进行串口连接。

解决方案

Quote:

如何通过arduino控制两台电机?

通过阅读和理解控制器的文档。


没人能回答这个问题。你还没有说过你正在使用的电机控制器,而且所有重要细节都来自于编写代码的地方。



此外,暂时忘记您的GUI。只需专注于使用Arduino代码即可完成电机转动。



从PC应用程序与Arduino交谈的问题已经反复记录在整个web,它不涉及和XML文件。它通常通过串行连接完成。



Google是你的朋友。如果您打算深入研究微控制器编程,那么您必须拥有出色的Google-Fu技能。如果你不能做研究,你最好快速学习。


Hallo everyone,
I am stucked with thinking about the logic.Please help. I have two Nanotec LS59 linear actuator (Motor) which is having its own motor controller. I have Arduino UNO R3. At first i made a GUI with the help of visual studio for creating a xml file for the motor behavior running. Now i need help !! On one hand i have a Gui which gives the input to motor through xml file. How can i control two motors through arduino ?? how can i program arduino which interlinks my GUI, motor controller. If i get any examples codes will be helpful too.

Thank you

What I have tried:

i have tried serial port connection with the arduino IDE.

解决方案

Quote:

How can i control two motors through arduino ??

By reading and understanding the controllers' documentation.


Nobody can answer this question. You haven't said anything about the motor controller you're using and that's where all of the important details are going to come from in order to write code against it.

Also, forget your GUI for now. Just focus on getting a motor turning using nothing but Arduino code.

The problem of talking to an Arduino from a PC application has been documented over and over again all over the web, and it doesn't involve and XML file. It's usually done over a serial connection.

Google is your friend. If you're going to dive into microcontroller programming, you really must have excellent Google-Fu skills. If you can't do research, you better learn real quick.


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

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