开发者

Can a USB to parallel port adapter recognize a "high" pin?

I’m building a custom “robotish” machine that has 8 switches I need to interface with a laptop. The only input to the laptop is via USB.

Here’s my idea:

When the switch is closed, it sends a 5v signal to one of the input pins on a parallel to USB adapter. This adapter translates this to a USB signal and sends it to the computer, which will be listening fo开发者_如何学Gor it.

Here’s my question(s):

Will this even work? Will the USB adapter be able to tell the computer that pin 8 (or whatever) on the parallel port side of the adapter is high?

Thanks!


If pin8 is one of the data pins then yes (assuming the adapter supports bi-directional)

A lot of usb-serial/parralel adapters are very poorly made and have very very bad drivers so you might need to find one that somebody else has used.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜