机器人和并行端口 [英] Robotics and parallel ports

查看:64
本文介绍了机器人和并行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我正在考虑建造一个可以通过我写的

程序控制的机器人,我将通过
$ b与机器人接口$ b并行端口(如本教程中所示:

linuxfocus.org/English/May2001/article205.shtml)。但是,我知道这个

可能需要在低级别C中完成。现在,虽然我可以编码

C,但我并不是特别想要:-),而不是我想使用Python。我是b / b
想知道,有什么方法可以使用Python访问并行端口和内核

模块parport吗?


非常感谢。


问候,


-

sleepingeliminator

解决方案

Isaac T Alston写道:

我在想,有什么方法可以访问并行端口和内核模块使用Python的parport?




快速谷歌搜索parport python出现了这个:

http://bigasterisk.com/parallel


也许这就是你要找的东西。


--- Heiko。


Isaac T Alston写道:

我想知道,有什么方法可以使用Python访问并行端口和内核模块parport吗? / blockquote>


或者你甚至可以尝试pyparallel:

http://pyserial.sourceforge.net/pyparallel.html



--- Heiko。


Heiko Wundram写道:

也许这就是你要找的东西。




谢谢你。我以前从来没有真正建造过这样的机器人或类似的东西,所以我很乐意接受任何建议!我听说过编程通过

USB很难,所以这就是我使用并口的原因(串口是

据说速度很慢发送大量数据(我认为))。我想我会用非常简单的东西开始

关闭,例如控制电机然后

升级到更高级的模型。

再次感谢。


问候,


-

Isaac


Basically, I''m thinking about building a robot which can be controlled by
programs which I write, I''m going to interface to the robot through the
parallel port (like in this tutorial here:
linuxfocus.org/English/May2001/article205.shtml). However, I know that this
will probably need to be done in low level C. Now, although I can code in
C, I don''t particularly want to :-) , instead I''d like to use Python. I''m
wondering, is there any way I can access the parallel port and the kernel
module parport using Python?

Many thanks.

Regards,

--
sleepingeliminator

解决方案

Isaac T Alston wrote:

I''m wondering, is there any way I can access the parallel port and
the kernel module parport using Python?



A quick Google search for "parport python" turned up this:

http://bigasterisk.com/parallel

Maybe it''s what you''re looking for.

--- Heiko.


Isaac T Alston wrote:

I''m wondering, is there any way I can access the parallel port and
the kernel module parport using Python?



Or you might even give pyparallel a try:

http://pyserial.sourceforge.net/pyparallel.html

I''ve used that before to control a psychology experiment setup, and it works
just fine, under Linux and under Windows.

--- Heiko.


Heiko Wundram wrote:

Maybe it''s what you''re looking for.



Thanks for that. I''ve never actually built a robot or anything like that
before, so I''m welcome to any advice I can get! I''ve heard programming via
USB is hard, so that''s why I''m using the parallel port (serial ports are
said to be slow when sending a lot of data (I think)). I think I''ll start
off with something very simple, for example controlling a motor and then
move up to more advance models.

Thanks again.

Regards,

--
Isaac


这篇关于机器人和并行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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