如何使用计算机的并行端口/USB端口运行小型电子设备? [英] How to run small electronic devices using parellel port/USB Port of computer?

查看:77
本文介绍了如何使用计算机的并行端口/USB端口运行小型电子设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个应用程序来运行一辆小型遥控车.我想使用并行端口.但是我不知道该怎么做?有人可以告诉我简单的方法吗?
-谢谢您

I want to create an application to run a small remote control car.I want to use parellel port for that.But i don''t know how to do this?Can any one tell me the easy way to do this?
-Thank you

推荐答案

信息不足.您必须将端口连接到SOMETHING才能控制汽车.如何执行操作以及编写与该设备接口的代码完全取决于设备.

就我个人而言,我根本不会使用并行端口来做到这一点.
Not enough information. You have to connect the port to SOMETHING to control the car. How you do that and what code you write to interface with that device depends entirely on the device.

Personally, I wouldn''t use the parallel port to do this at all.


我更愿意使用SerialPort,我们已经为学生项目这样做了.您可以通过串行端口与微控制器通信,并利用微控制器来控制电动机.请记住,这也涉及硬件工作,因此您需要设置微控制器PCB.

http://msdn.microsoft.com/en-us/library/system. io.ports.serialport.aspx [ ^ ]

对于更高级的使用模式,Microsoft提供了一个开放源代码框架GadGeteer!

http://www.netmf.com/gadgeteer/ [
I would prefer SerialPort instead,we have done so for student projects. You can communicate to a micro controller through serial port, and make use of the micro controller to control the motors. Remember this involves in hardware work as well you need to set up micro controller PCB.

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx[^]

For more advanced usage patterns microsoft offers an open source framework GadGeteer !!

http://www.netmf.com/gadgeteer/[^]


Hope it helps!!

Mark it as answer if this helps!


这篇关于如何使用计算机的并行端口/USB端口运行小型电子设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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