有没有办法用python编程机器人(例如,电动机,控制它的速度等) [英] Is there a way to program a robot with python (ex, an electric motor, control it's speed, etc)

查看:701
本文介绍了有没有办法用python编程机器人(例如,电动机,控制它的速度等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以帮助我。


基本上,我和我的朋友有一个暑期项目。


在这个项目中,我们需要一些基本上可以用作

搅拌机的东西。我们知道我们需要购买一台可以旋转的电机,但我们遇到麻烦的是找出如何编程的电机。我们想要

能够控制电机的速度。我们怎么做到这一点呢?


我是这一切的新手,所以我很难缠绕我的心思

围绕如何它可以编程其中一个:\


ex:如果我想让电机转动10秒钟怎么办?停止5.然后

转向另一个方向。


你会按照你在个人电脑上的方式编程吗

(通过c,python等)?

i hope someone here can help me.

basically, me and my friend have a summer project.

in this project, we need something that would basically function as a
blender. we know we''ll need to buy a motor that spins, but what we''re
having trouble with is figuring out how to program it. we want to be
able to control the speed of the motor. how would we accomplish this?

i''m new to all of this, so i''m having a hard time wrapping my mind
around how it''d be possible to program one of those things :\

ex: what if i want the motor to turn for 10 seconds. stop for 5. then
turn the other direction.

would you program it the same way you would on a personal computer
(via c, python, etc)?

推荐答案

所以*********** @ gmail.com 写道:

i希望有人在这里可以帮助我。


基本上,我和我的朋友有一个暑期项目。


在这个项目中,我们需要的东西基本上都是作为一个

搅拌机。我们知道我们需要购买一台可以旋转的电机,但我们遇到麻烦的是找出如何编程的电机。我们想要

能够控制电机的速度。我们怎么做到这一点呢?


我是这一切的新手,所以我很难缠绕我的心思

围绕如何它可以编程其中一个:\


ex:如果我想让电机转动10秒钟怎么办?停止5.然后

转向另一个方向。


你会按照你在个人电脑上的方式编程吗

(通过c,python等)?
i hope someone here can help me.

basically, me and my friend have a summer project.

in this project, we need something that would basically function as a
blender. we know we''ll need to buy a motor that spins, but what we''re
having trouble with is figuring out how to program it. we want to be
able to control the speed of the motor. how would we accomplish this?

i''m new to all of this, so i''m having a hard time wrapping my mind
around how it''d be possible to program one of those things :\

ex: what if i want the motor to turn for 10 seconds. stop for 5. then
turn the other direction.

would you program it the same way you would on a personal computer
(via c, python, etc)?



试试comp.robotics.misc关于机器人电机控制的基础知识。


John Nagle

Try "comp.robotics.misc" for the basics of robot motor control.

John Nagle


7月8日下午5:14,John Nagle< n ... @ animats.comwrote:
On Jul 8, 5:14 pm, John Nagle <n...@animats.comwrote:

socialanxi ... @ gmail.com写道:
socialanxi...@gmail.com wrote:
$ b $希望有人在这里可以帮助我。
i hope someone here can help me.


基本上,我和我的朋友有一个夏季项目。
basically, me and my friend have a summer project.


在这个项目中,我们需要的东西基本上可以作为一个

搅拌机。我们知道我们需要购买一台可以旋转的电机,但我们遇到麻烦的是找出如何编程的电机。我们想要

能够控制电机的速度。我们怎么做到这一点?
in this project, we need something that would basically function as a
blender. we know we''ll need to buy a motor that spins, but what we''re
having trouble with is figuring out how to program it. we want to be
able to control the speed of the motor. how would we accomplish this?


我是所有这一切的新手,所以我很难缠绕我的心灵

围绕如何编程这些东西:
i''m new to all of this, so i''m having a hard time wrapping my mind
around how it''d be possible to program one of those things :


ex:如果我想让电机转动10秒钟怎么办?停止为5.然后

转向另一个方向。
ex: what if i want the motor to turn for 10 seconds. stop for 5. then
turn the other direction.


你会像在个人电脑上一样编程吗?
(通过c,python等)?
would you program it the same way you would on a personal computer
(via c, python, etc)?



试试comp.robotics.misc用于机器人电机控制的基础知识。


John Nagle


Try "comp.robotics.misc" for the basics of robot motor control.

John Nagle



谢谢。

thank you.


在Sun,2007-07-08 17:06 -0700, so*********** @ gmail.com 写道:
On Sun, 2007-07-08 at 17:06 -0700, so***********@gmail.com wrote:

i希望有人在这里可以帮助我。


基本上,我和我的朋友都有一个暑期项目。


在这个项目中,我们需要的东西基本上可以作为一个

搅拌机。我们知道我们需要购买一台可以旋转的电机,但我们遇到麻烦的是找出如何编程的电机。我们想要

能够控制电机的速度。我们怎么做到这一点呢?


我是这一切的新手,所以我很难缠绕我的心思

围绕如何它可以编程其中一个:\


ex:如果我想让电机转动10秒钟怎么办?停止5.然后

转向另一个方向。


你会按照你在个人电脑上的方式编程吗

(通过c,python等)?
i hope someone here can help me.

basically, me and my friend have a summer project.

in this project, we need something that would basically function as a
blender. we know we''ll need to buy a motor that spins, but what we''re
having trouble with is figuring out how to program it. we want to be
able to control the speed of the motor. how would we accomplish this?

i''m new to all of this, so i''m having a hard time wrapping my mind
around how it''d be possible to program one of those things :\

ex: what if i want the motor to turn for 10 seconds. stop for 5. then
turn the other direction.

would you program it the same way you would on a personal computer
(via c, python, etc)?



你问题的答案在很大程度上取决于你的工作情况

以及如何控制电机。这应该是一台

自包含机器,还是应该连接到个人

计算机作为外围设备?

更简单的方法是外围设备。在这种情况下,您需要某种方式发送信号,例如
从您的计算机的并行或串行端口到

继电器开关或控制电机的电压控制器。在那个

的情况下,除了实现物理连接的实用硬件之外,还有控制并口或串口的问题

表示机器人是附加的,绝对可以用Python来完成。


我不会详细说明因为你没有详细说明你的

项目限制,并且像你的问题一样引人入胜,这个列表上有点偏离主题(好像这对于讨论

这个清单上的东西有什么威慑作用) ;-)。正如约翰所说,你更有可能收到关于comp.robotics.misc的有用建议。


祝你好运,


-

Carsten Haese
http: //informixdb.sourceforge.net


这篇关于有没有办法用python编程机器人(例如,电动机,控制它的速度等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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