Usb interfacing
Author |
Message |
lufthansa747
|
Posted: Wed Jun 02, 2010 8:27 pm Post subject: Usb interfacing |
|
|
What is it you are trying to achieve?
i wanted to know if turing is able to interface through a usb port. i know it can do parallel but not sure about usb
Please specify what version of Turing you are using
4.1.1 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
chrisbrown
![](http://compsci.ca/v3/uploads/user_avatars/18814724584bcbb8192aae8.png)
|
Posted: Wed Jun 02, 2010 8:33 pm Post subject: RE:Usb interfacing |
|
|
Nope. You can access installed joysticks, but that's using Windows's implementation, not direct hardware access. |
|
|
|
|
![](images/spacer.gif) |
DtY
![](http://compsci.ca/v3/uploads/user_avatars/8576159234be48b7a8b0e8.png)
|
|
|
|
![](images/spacer.gif) |
BigBear
|
Posted: Wed Jun 02, 2010 9:06 pm Post subject: RE:Usb interfacing |
|
|
If you want to interface with a joystick chrisbrown is right and Here is a tutorial |
|
|
|
|
![](images/spacer.gif) |
lufthansa747
|
Posted: Wed Jun 02, 2010 10:01 pm Post subject: RE:Usb interfacing |
|
|
ok i am going to think about the interfacing with a joystick but had one question. DtY said i could get one of those cable would that give me the ability to have more input and outputs? because i am doing a computer engeniring project but because we are using parallel ports i am limited to 5 inputs and 8 outputs but i want to have more than that. is there any way i could get more? |
|
|
|
|
![](images/spacer.gif) |
chrisbrown
![](http://compsci.ca/v3/uploads/user_avatars/18814724584bcbb8192aae8.png)
|
Posted: Thu Jun 03, 2010 9:12 am Post subject: Re: RE:Usb interfacing |
|
|
lufthansa747 @ Wed Jun 02, 2010 10:01 pm wrote: because we are using parallel ports i am limited to 5 inputs and 8 outputs but i want to have more than that. is there any way i could get more?
If you have a parallel port already, DtY's link won't help you.
Let's say you have 1 output called A. You only have two option, A: off or A: on. Easy enough.
Now, two ouputs, A and B. By combining various logic gates (not necessarily AND), your possibilities are:
A: off AND B: off
A: off AND B: on
A: on AND B: off
A: on AND B: on
That's 4 outputs from 2 pins.
In general, the number of possible outputs is 2^n, where n is the number of output pins you have. There are two downsides to this method, however: first, the amount of circuitry required increases exponentially. Second, you can only use one output at a time. Using the 2-pin, 2-output method means you can always send data on each pin, regardless of what the others are doing. 2-pin, 4-output means you can only send data to one output at a time, as far as those two pins are concerned -- you can still use the others as you normally would.
If you want to pursue this option, I can show you how to develop eqations from truth tables, but I'm at work so I can't do it now. |
|
|
|
|
![](images/spacer.gif) |
imseakin
|
Posted: Tue May 29, 2012 12:07 pm Post subject: Re: RE:Usb interfacing |
|
|
DtY @ Wed Jun 02, 2010 8:50 pm wrote: Not really, but if you don't have a parallel port, you can order one of these: http://www.dealextreme.com/details.dx/sku.27180
I don't think that USB to Parallel port adapters work with Turing. I've tried it and since they don't have the same base hardware address as a built-in parallel port, Turing's parallel driver doesn't see the adapter.
Sorry |
|
|
|
|
![](images/spacer.gif) |
mirhagk
|
Posted: Tue May 29, 2012 12:38 pm Post subject: RE:Usb interfacing |
|
|
The original poster likely isn't even on this website anymore. If you are having problems with the USB to Parallel port adapter you can ask those questions (I see a problem right away if the USB is plugged into the computer as they won't actually be a parrallel port) |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|
|